Index: runtime/vm/bootstrap_natives.cc |
diff --git a/runtime/vm/bootstrap_natives.cc b/runtime/vm/bootstrap_natives.cc |
index 07c492804792a93bb1513837506a617a723ee6fc..09cb75607951e2f9f91dee7dcf66531374b12f39 100644 |
--- a/runtime/vm/bootstrap_natives.cc |
+++ b/runtime/vm/bootstrap_natives.cc |
@@ -10,6 +10,7 @@ |
#include "vm/dart_api_impl.h" |
#include "vm/object.h" |
#include "vm/object_store.h" |
+#include "vm/service_isolate.h" |
namespace dart { |
@@ -129,6 +130,12 @@ void Bootstrap::SetupNativeResolver() { |
ASSERT(!library.IsNull()); |
library.set_native_entry_resolver(resolver); |
library.set_native_entry_symbol_resolver(symbol_resolver); |
+ |
+ library = Library::VMServiceLibrary(); |
+ ASSERT(!library.IsNull()); |
+ library.set_native_entry_resolver( |
+ reinterpret_cast<Dart_NativeEntryResolver>( |
+ &ServiceIsolate::NativeResolver)); |
} |