| Index: runtime/vm/bootstrap_natives.cc
|
| ===================================================================
|
| --- runtime/vm/bootstrap_natives.cc (revision 4295)
|
| +++ runtime/vm/bootstrap_natives.cc (working copy)
|
| @@ -51,14 +51,21 @@
|
|
|
|
|
| void Bootstrap::SetupNativeResolver() {
|
| - Library& library = Library::Handle(Library::CoreLibrary());
|
| + Isolate* isolate = Isolate::Current();
|
| + Library& library = Library::Handle();
|
| +
|
| + library = isolate->object_store()->core_library();
|
| ASSERT(!library.IsNull());
|
| library.set_native_entry_resolver(
|
| reinterpret_cast<Dart_NativeEntryResolver>(NativeLookup));
|
| - library = Library::CoreImplLibrary();
|
| + library = isolate->object_store()->core_impl_library();
|
| ASSERT(!library.IsNull());
|
| library.set_native_entry_resolver(
|
| reinterpret_cast<Dart_NativeEntryResolver>(NativeLookup));
|
| + library = isolate->object_store()->mirrors_library();
|
| + ASSERT(!library.IsNull());
|
| + library.set_native_entry_resolver(
|
| + reinterpret_cast<Dart_NativeEntryResolver>(NativeLookup));
|
| }
|
|
|
| } // namespace dart
|
|
|