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

Unified Diff: runtime/vm/parser.cc

Issue 9956133: Remove many calls to Isolate::Current() in the dart embedding api by (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/object.h ('k') | runtime/vm/unit_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/parser.cc
===================================================================
--- runtime/vm/parser.cc (revision 6189)
+++ runtime/vm/parser.cc (working copy)
@@ -3393,14 +3393,15 @@
intptr_t token_pos,
const String& url,
const Array& import_map) {
- Dart_LibraryTagHandler handler = Isolate::Current()->library_tag_handler();
+ Isolate* isolate = Isolate::Current();
+ Dart_LibraryTagHandler handler = isolate->library_tag_handler();
if (handler == NULL) {
ErrorMsg(token_pos, "no library handler registered");
}
Dart_Handle result = handler(tag,
- Api::NewLocalHandle(library_),
- Api::NewLocalHandle(url),
- Api::NewLocalHandle(import_map));
+ Api::NewLocalHandle(isolate, library_),
+ Api::NewLocalHandle(isolate, url),
+ Api::NewLocalHandle(isolate, import_map));
if (Dart_IsError(result)) {
Error& prev_error = Error::Handle();
prev_error ^= Api::UnwrapHandle(result);
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/unit_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698