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

Unified Diff: runtime/vm/bootstrap_natives.cc

Issue 9422019: isolates refactor: this change introduces 'dart:isolate' as a library. This is a (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: '' Created 8 years, 10 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/bootstrap_natives.cc
diff --git a/runtime/vm/bootstrap_natives.cc b/runtime/vm/bootstrap_natives.cc
index 2c0d9175ce61d114e86be30aea25fa2ba18a1e73..1fefbd8974490aa214adb1bc120297aaa8f251ab 100644
--- a/runtime/vm/bootstrap_natives.cc
+++ b/runtime/vm/bootstrap_natives.cc
@@ -51,11 +51,20 @@ static Dart_NativeFunction NativeLookup(Dart_Handle name,
void Bootstrap::SetupNativeResolver() {
- Library& library = Library::Handle(Library::CoreLibrary());
+ Isolate* isolate = Isolate::Current();
+ Library& library = Library::Handle();
+
+ library = isolate->object_store()->core_library();
Ivan Posva 2012/02/25 00:14:38 Why were these changes here needed?
Siggi Cherem (dart-lang) 2012/02/25 02:10:38 Reverted. I was integrating the changes from Todd
+ ASSERT(!library.IsNull());
+ library.set_native_entry_resolver(
+ reinterpret_cast<Dart_NativeEntryResolver>(NativeLookup));
+
+ library = isolate->object_store()->core_impl_library();
ASSERT(!library.IsNull());
library.set_native_entry_resolver(
reinterpret_cast<Dart_NativeEntryResolver>(NativeLookup));
- library = Library::CoreImplLibrary();
+
+ library = isolate->object_store()->isolate_library();
ASSERT(!library.IsNull());
library.set_native_entry_resolver(
reinterpret_cast<Dart_NativeEntryResolver>(NativeLookup));

Powered by Google App Engine
This is Rietveld 408576698