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

Unified Diff: runtime/vm/bootstrap_natives.cc

Issue 9420038: Heartbeat implementation of dart:mirrors. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 9 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/bootstrap_natives.h ('k') | runtime/vm/bootstrap_nocorelib.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « runtime/vm/bootstrap_natives.h ('k') | runtime/vm/bootstrap_nocorelib.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698