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

Unified Diff: runtime/vm/object.cc

Issue 12026019: Revert "Add dart:collection_dev library." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/object_store.h » ('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 256c41d600c0e36c225ac7578e8ce256f6efbe1d..b5d5a4c32292a43c8df25b8470c24c1c3e1cc4c2 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -955,15 +955,6 @@ RawError* Object::Init(Isolate* isolate) {
if (!error.IsNull()) {
return error.raw();
}
- const Script& collection_dev_script =
- Script::Handle(Bootstrap::LoadCollectionDevScript(false));
- const Library& collection_dev_lib =
- Library::Handle(Library::CollectionDevLibrary());
- ASSERT(!collection_dev_lib.IsNull());
- error = Bootstrap::Compile(collection_dev_lib, collection_dev_script);
- if (!error.IsNull()) {
- return error.raw();
- }
const Script& math_script = Script::Handle(Bootstrap::LoadMathScript(false));
const Library& math_lib = Library::Handle(Library::MathLibrary());
ASSERT(!math_lib.IsNull());
@@ -6158,14 +6149,8 @@ void Library::InitCoreLibrary(Isolate* isolate) {
Library::Handle(Library::CollectionLibrary());
const Namespace& collection_ns = Namespace::Handle(
Namespace::New(collection_lib, Array::Handle(), Array::Handle()));
- Library::InitCollectionDevLibrary(isolate);
- const Library& collection_dev_lib =
- Library::Handle(Library::CollectionDevLibrary());
- const Namespace& collection_dev_ns = Namespace::Handle(
- Namespace::New(collection_dev_lib, Array::Handle(), Array::Handle()));
core_lib.AddImport(math_ns);
core_lib.AddImport(collection_ns);
- core_lib.AddImport(collection_dev_ns);
isolate->object_store()->set_root_library(Library::Handle());
// Hook up predefined classes without setting their library pointers. These
@@ -6188,14 +6173,6 @@ void Library::InitCollectionLibrary(Isolate* isolate) {
}
-void Library::InitCollectionDevLibrary(Isolate* isolate) {
- const String& url = String::Handle(Symbols::New("dart:collection-dev"));
- const Library& lib = Library::Handle(Library::NewLibraryHelper(url, true));
- lib.Register();
- isolate->object_store()->set_collection_dev_library(lib);
-}
-
-
void Library::InitMathLibrary(Isolate* isolate) {
const String& url = String::Handle(Symbols::New("dart:math"));
const Library& lib = Library::Handle(Library::NewLibraryHelper(url, true));
@@ -6384,11 +6361,6 @@ RawLibrary* Library::CollectionLibrary() {
}
-RawLibrary* Library::CollectionDevLibrary() {
- return Isolate::Current()->object_store()->collection_dev_library();
-}
-
-
RawLibrary* Library::MathLibrary() {
return Isolate::Current()->object_store()->math_library();
}
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/object_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698