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

Unified Diff: runtime/vm/parser.cc

Issue 1473403003: Move ApiLocalScope out of class ApiState into class Thread so that the API local handles and zone e… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: self-code-review Created 5 years, 1 month 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/parser.cc
diff --git a/runtime/vm/parser.cc b/runtime/vm/parser.cc
index 26f2ad7adb095eb5f22a4e1473c56684e15d4ad5..077a504891014b52adf06375346e4f0153f633e7 100644
--- a/runtime/vm/parser.cc
+++ b/runtime/vm/parser.cc
@@ -5823,8 +5823,8 @@ RawObject* Parser::CallLibraryTagHandler(Dart_LibraryTag tag,
I->BlockClassFinalization();
Api::Scope api_scope(T);
Dart_Handle result = handler(tag,
- Api::NewHandle(I, library_.raw()),
- Api::NewHandle(I, url.raw()));
+ Api::NewHandle(T, library_.raw()),
+ Api::NewHandle(T, url.raw()));
I->UnblockClassFinalization();
if (Dart_IsError(result)) {
// In case of an error we append an explanatory error message to the

Powered by Google App Engine
This is Rietveld 408576698