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

Unified Diff: runtime/vm/object.cc

Issue 18737004: List class was not initialized properly (it has type parameters). Do not preinitialize it incorrect… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 5 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.cc
===================================================================
--- runtime/vm/object.cc (revision 24887)
+++ runtime/vm/object.cc (working copy)
@@ -1076,12 +1076,6 @@
type = Type::NewNonParameterizedType(cls);
object_store->set_string_type(type);
- cls = Class::New<Instance>(kIllegalCid);
- RegisterClass(cls, Symbols::List(), core_lib);
- cls.set_is_prefinalized();
- pending_classes.Add(cls, Heap::kOld);
- object_store->set_list_class(cls);
-
cls = object_store->bool_class();
type = Type::NewNonParameterizedType(cls);
object_store->set_bool_type(type);
@@ -2319,11 +2313,6 @@
}
-bool Class::IsListClass() const {
- return raw() == Isolate::Current()->object_store()->list_class();
-}
-
-
bool Class::IsCanonicalSignatureClass() const {
const Function& function = Function::Handle(signature_function());
return (!function.IsNull() && (function.signature_class() == raw()));

Powered by Google App Engine
This is Rietveld 408576698