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

Unified Diff: runtime/vm/bootstrap_natives.cc

Issue 22303002: Auto create ApiLocalScope before calling native functions, this ensures that (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 4 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
===================================================================
--- runtime/vm/bootstrap_natives.cc (revision 25778)
+++ runtime/vm/bootstrap_natives.cc (working copy)
@@ -81,4 +81,10 @@
library.set_native_entry_resolver(resolver);
}
+
+bool Bootstrap::IsBootstapResolver(Dart_NativeEntryResolver resolver) {
+ return (resolver ==
+ reinterpret_cast<Dart_NativeEntryResolver>(BootstrapNatives::Lookup));
+}
+
} // namespace dart

Powered by Google App Engine
This is Rietveld 408576698