| Index: runtime/vm/bootstrap_natives.cc
|
| ===================================================================
|
| --- runtime/vm/bootstrap_natives.cc (revision 5107)
|
| +++ runtime/vm/bootstrap_natives.cc (working copy)
|
| @@ -51,7 +51,10 @@
|
|
|
|
|
| void Bootstrap::SetupNativeResolver() {
|
| - Library& library = Library::Handle(Library::CoreLibrary());
|
| + Isolate* isolate = Isolate::Current();
|
| + Library& library = Library::Handle();
|
| +
|
| + library = Library::CoreLibrary();
|
| ASSERT(!library.IsNull());
|
| library.set_native_entry_resolver(
|
| reinterpret_cast<Dart_NativeEntryResolver>(NativeLookup));
|
| @@ -61,6 +64,11 @@
|
| library.set_native_entry_resolver(
|
| reinterpret_cast<Dart_NativeEntryResolver>(NativeLookup));
|
|
|
| + library = Library::MirrorsLibrary();
|
| + ASSERT(!library.IsNull());
|
| + library.set_native_entry_resolver(
|
| + reinterpret_cast<Dart_NativeEntryResolver>(NativeLookup));
|
| +
|
| library = Library::IsolateLibrary();
|
| ASSERT(!library.IsNull());
|
| library.set_native_entry_resolver(
|
|
|