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

Unified Diff: vm/snapshot.cc

Issue 9124012: - Pass in the isolate parameter when creating handles. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: '' Created 8 years, 11 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 | « vm/snapshot.h ('k') | vm/snapshot_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/snapshot.cc
===================================================================
--- vm/snapshot.cc (revision 3046)
+++ vm/snapshot.cc (working copy)
@@ -67,17 +67,17 @@
// Read the class header information and lookup the class.
intptr_t class_header = ReadIntptrValue();
ASSERT((class_header & kSmiTagMask) != 0);
- Class& cls = Class::ZoneHandle();
+ Class& cls = Class::ZoneHandle(isolate(), Class::null());
cls ^= LookupInternalClass(class_header);
AddBackwardReference(object_id, &cls);
if (cls.IsNull()) {
// Read the library/class information and lookup the class.
- String& library_url = String::Handle();
+ String& library_url = String::Handle(isolate(), String::null());
library_url ^= ReadObjectImpl(class_header);
- String& class_name = String::Handle();
+ String& class_name = String::Handle(isolate(), String::null());
class_name ^= ReadObject();
const Library& library =
- Library::Handle(Library::LookupLibrary(library_url));
+ Library::Handle(isolate(), Library::LookupLibrary(library_url));
ASSERT(!library.IsNull());
cls ^= library.LookupClass(class_name);
}
@@ -172,11 +172,11 @@
// Read the class header information and lookup the class.
intptr_t class_header = ReadIntptrValue();
intptr_t tags = ReadIntptrValue();
- Class& cls = Class::Handle();
- Object& obj = Object::Handle();
+ Class& cls = Class::Handle(isolate(), Class::null());
+ Object& obj = Object::Handle(isolate(), Object::null());
if (SerializedHeaderData::decode(class_header) == kInstanceId) {
// Object is regular dart instance.
- Instance& result = Instance::ZoneHandle();
+ Instance& result = Instance::ZoneHandle(isolate(), Instance::null());
AddBackwardReference(object_id, &result);
cls ^= ReadObject();
« no previous file with comments | « vm/snapshot.h ('k') | vm/snapshot_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698