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

Unified Diff: runtime/vm/snapshot.cc

Issue 1384403002: Preparation for moving reusable handles to thread and more cleanups: isolate -> thread based handle… (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fixed import Created 5 years, 2 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/precompiler.cc ('k') | runtime/vm/stack_frame.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/snapshot.cc
diff --git a/runtime/vm/snapshot.cc b/runtime/vm/snapshot.cc
index c8e6d130a2a8a22b065c01c6c77ab2d289553f8d..e4c757dfe0b5c4a414046f6fb4ef5b288161a305 100644
--- a/runtime/vm/snapshot.cc
+++ b/runtime/vm/snapshot.cc
@@ -260,7 +260,7 @@ RawClass* SnapshotReader::ReadClassId(intptr_t object_id) {
if (cls.IsNull()) {
SetReadException("Invalid object found in message.");
}
- cls.EnsureIsFinalized(isolate());
+ cls.EnsureIsFinalized(thread());
return cls.raw();
}
@@ -291,7 +291,7 @@ RawFunction* SnapshotReader::ReadFunctionId(intptr_t object_id) {
if (cls_.IsNull()) {
SetReadException("Expected a class name, but found an invalid name.");
}
- cls_.EnsureIsFinalized(isolate());
+ cls_.EnsureIsFinalized(thread());
str_ ^= ReadObjectImpl(kAsInlinedObject);
func ^= cls_.LookupFunctionAllowPrivate(str_);
}
@@ -328,7 +328,7 @@ RawObject* SnapshotReader::ReadStaticImplicitClosure(intptr_t object_id,
OS::Print("Name of class not found %s\n", str_.ToCString());
SetReadException("Invalid Class object found in message.");
}
- cls_.EnsureIsFinalized(isolate());
+ cls_.EnsureIsFinalized(thread());
str_ ^= ReadObjectImpl(kAsInlinedObject);
func = cls_.LookupFunctionAllowPrivate(str_);
}
« no previous file with comments | « runtime/vm/precompiler.cc ('k') | runtime/vm/stack_frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698