Chromium Code Reviews| Index: runtime/vm/object.cc |
| diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc |
| index a710676a88e38865175cb5bcc5a90af0be2f8f7b..8c9687b01e39517809a4d22d0b931a9f01db9416 100644 |
| --- a/runtime/vm/object.cc |
| +++ b/runtime/vm/object.cc |
| @@ -560,8 +560,6 @@ RawError* Object::Init(Isolate* isolate) { |
| Library::InitCoreLibrary(isolate); |
| Library& core_lib = Library::Handle(Library::CoreLibrary()); |
| ASSERT(!core_lib.IsNull()); |
| - Library& core_impl_lib = Library::Handle(Library::CoreImplLibrary()); |
| - ASSERT(!core_impl_lib.IsNull()); |
| const GrowableObjectArray& pending_classes = |
| GrowableObjectArray::Handle(GrowableObjectArray::New(Heap::kOld)); |
| @@ -573,9 +571,6 @@ RawError* Object::Init(Isolate* isolate) { |
| // Now that the symbol table is initialized and that the core dictionary as |
| // well as the core implementation dictionary have been setup, preallocate |
| // remaining classes and register them by name in the dictionaries. |
| - const Script& impl_script = Script::Handle( |
| - Bootstrap::LoadCoreImplScript(false)); |
| - |
| String& name = String::Handle(); |
| cls = Class::New<Bool>(); |
| object_store->set_bool_class(cls); |
| @@ -627,14 +622,14 @@ RawError* Object::Init(Isolate* isolate) { |
| cls = Class::New<Stacktrace>(); |
| object_store->set_stacktrace_class(cls); |
| name = Symbols::Stacktrace(); |
| - RegisterClass(cls, name, core_impl_lib); |
| + RegisterClass(cls, name, core_lib); |
| pending_classes.Add(cls, Heap::kOld); |
| // Super type set below, after Object is allocated. |
| cls = Class::New<JSRegExp>(); |
| object_store->set_jsregexp_class(cls); |
| name = Symbols::JSSyntaxRegExp(); |
| - RegisterClass(cls, name, core_impl_lib); |
| + RegisterPrivateClass(cls, name, core_lib); |
| pending_classes.Add(cls, Heap::kOld); |
| // Initialize the base interfaces used by the core VM classes. |
| @@ -903,15 +898,6 @@ RawError* Object::Init(Isolate* isolate) { |
| if (!error.IsNull()) { |
| return error.raw(); |
| } |
| - error = Bootstrap::Compile(core_impl_lib, impl_script); |
| - if (!error.IsNull()) { |
| - return error.raw(); |
| - } |
| - patch_script = Bootstrap::LoadCoreImplScript(true); |
| - error = core_impl_lib.Patch(patch_script); |
| - if (!error.IsNull()) { |
| - return error.raw(); |
| - } |
| const Script& collection_script = |
| Script::Handle(Bootstrap::LoadCollectionScript(false)); |
| const Library& collection_lib = |
| @@ -5855,19 +5841,7 @@ void Library::InitCoreLibrary(Isolate* isolate) { |
| const Library& core_lib = |
| Library::Handle(Library::NewLibraryHelper(core_lib_url, false)); |
| core_lib.Register(); |
| - const Namespace& core_ns = Namespace::Handle( |
| - Namespace::New(core_lib, Array::Handle(), Array::Handle())); |
| isolate->object_store()->set_core_library(core_lib); |
| - const String& core_impl_lib_url = |
| - String::Handle(Symbols::New("dart:coreimpl")); |
| - const Library& core_impl_lib = |
| - Library::Handle(Library::NewLibraryHelper(core_impl_lib_url, false)); |
| - isolate->object_store()->set_core_impl_library(core_impl_lib); |
| - core_impl_lib.Register(); |
| - const Namespace& impl_ns = Namespace::Handle( |
| - Namespace::New(core_impl_lib, Array::Handle(), Array::Handle())); |
| - core_lib.AddImport(impl_ns); |
| - core_impl_lib.AddImport(core_ns); |
| Library::InitMathLibrary(isolate); |
| const Library& math_lib = Library::Handle(Library::MathLibrary()); |
| const Namespace& math_ns = Namespace::Handle( |
| @@ -5878,9 +5852,7 @@ void Library::InitCoreLibrary(Isolate* isolate) { |
| const Namespace& collection_ns = Namespace::Handle( |
| Namespace::New(collection_lib, Array::Handle(), Array::Handle())); |
| core_lib.AddImport(math_ns); |
| - core_impl_lib.AddImport(math_ns); |
| core_lib.AddImport(collection_ns); |
| - core_impl_lib.AddImport(collection_ns); |
| isolate->object_store()->set_root_library(Library::Handle()); |
| // Hook up predefined classes without setting their library pointers. These |
| @@ -5907,10 +5879,6 @@ void Library::InitMathLibrary(Isolate* isolate) { |
| const String& url = String::Handle(Symbols::New("dart:math")); |
| const Library& lib = Library::Handle(Library::NewLibraryHelper(url, true)); |
| lib.Register(); |
| - const Library& core_impl_lib = Library::Handle(Library::CoreImplLibrary()); |
| - const Namespace& impl_ns = Namespace::Handle( |
| - Namespace::New(core_impl_lib, Array::Handle(), Array::Handle())); |
| - lib.AddImport(impl_ns); |
| isolate->object_store()->set_math_library(lib); |
| } |
| @@ -6061,11 +6029,6 @@ RawLibrary* Library::CoreLibrary() { |
| } |
| -RawLibrary* Library::CoreImplLibrary() { |
| - return Isolate::Current()->object_store()->core_impl_library(); |
| -} |
| - |
| - |
| RawLibrary* Library::CollectionLibrary() { |
|
floitsch
2012/11/12 16:31:56
2 collection-libraries.
Anders Johnsen
2012/11/12 16:58:38
Bad merge.
|
| return Isolate::Current()->object_store()->collection_library(); |
| } |