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

Unified Diff: runtime/vm/object.cc

Issue 11417051: Make List an abstract class. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase Created 8 years, 1 month 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
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698