Index: runtime/vm/object.cc |
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc |
index c56f558d1df0933d4fe59267f7eed3d008c6aa0f..686735928aafd2c152d867e798685c419c64f8a2 100644 |
--- a/runtime/vm/object.cc |
+++ b/runtime/vm/object.cc |
@@ -518,17 +518,6 @@ void Object::MakeUnusedSpaceTraversable(const Object& obj, |
} |
-RawClass* Object::CreateAndRegisterInterface(const char* cname, |
- const Script& script, |
- const Library& lib) { |
- const String& name = String::Handle(Symbols::New(cname)); |
- const Class& cls = Class::Handle( |
- Class::NewInterface(name, script, Scanner::kDummyTokenIndex)); |
- lib.AddClass(cls); |
- return cls.raw(); |
-} |
- |
- |
void Object::RegisterClass(const Class& cls, |
const String& name, |
const Library& lib) { |
@@ -891,7 +880,9 @@ RawError* Object::Init(Isolate* isolate) { |
type = Type::NewNonParameterizedType(cls); |
object_store->set_string_type(type); |
- cls = CreateAndRegisterInterface("List", script, core_lib); |
+ name = Symbols::New("List"); |
+ cls = Class::New<Instance>(name, script, Scanner::kDummyTokenIndex); |
+ RegisterClass(cls, name, core_lib); |
pending_classes.Add(cls, Heap::kOld); |
object_store->set_list_class(cls); |