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

Unified Diff: runtime/vm/object.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/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index 2be8c9452e0997ad2781b317bf121dbe56c09c9c..4949390b70f3f35385b9d5bf04c426d35df03c11 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -10691,8 +10691,8 @@ bool LibraryPrefix::LoadLibrary() const {
const String& lib_url = String::Handle(zone, deferred_lib.url());
Dart_LibraryTagHandler handler = isolate->library_tag_handler();
handler(Dart_kImportTag,
- Api::NewHandle(isolate, importer()),
- Api::NewHandle(isolate, lib_url.raw()));
+ Api::NewHandle(thread, importer()),
+ Api::NewHandle(thread, lib_url.raw()));
} else {
// Another load request is in flight.
ASSERT(deferred_lib.LoadRequested());

Powered by Google App Engine
This is Rietveld 408576698