Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Unified Diff: runtime/vm/object_test.cc

Issue 167683002: Simplify type argument instantiation cache lookup by introducing an array (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/vm/object_test.cc
===================================================================
--- runtime/vm/object_test.cc (revision 32709)
+++ runtime/vm/object_test.cc (working copy)
@@ -1814,6 +1814,10 @@
EXPECT_EQ(0, Object::empty_array().Length());
+ EXPECT_EQ(1, Object::zero_array().Length());
+ element = Object::zero_array().At(0);
+ EXPECT(Smi::Cast(element).IsZero());
+
array.MakeImmutable();
Object& obj = Object::Handle(array.raw());
EXPECT(obj.IsArray());

Powered by Google App Engine
This is Rietveld 408576698