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

Unified Diff: runtime/vm/snapshot.cc

Issue 10693071: Use VM type cast and save handles. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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/parser.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/snapshot.cc
===================================================================
--- runtime/vm/snapshot.cc (revision 9315)
+++ runtime/vm/snapshot.cc (working copy)
@@ -106,7 +106,7 @@
intptr_t class_header = ReadIntptrValue();
ASSERT((class_header & kSmiTagMask) != 0);
Class& cls = Class::ZoneHandle(isolate(), Class::null());
- cls ^= LookupInternalClass(class_header);
+ cls = LookupInternalClass(class_header);
AddBackRef(object_id, &cls, kIsDeserialized);
if (cls.IsNull()) {
// Read the library/class information and lookup the class.
@@ -114,7 +114,7 @@
library_ = Library::LookupLibrary(str_);
ASSERT(!library_.IsNull());
str_ ^= ReadObjectImpl();
- cls ^= library_.LookupClass(str_);
+ cls = library_.LookupClass(str_);
}
ASSERT(!cls.IsNull());
return cls.raw();
@@ -181,7 +181,7 @@
return result.raw();
} else {
ASSERT((class_header & kSmiTagMask) != 0);
- cls_ ^= LookupInternalClass(class_header);
+ cls_ = LookupInternalClass(class_header);
ASSERT(!cls_.IsNull());
}
@@ -576,7 +576,7 @@
return result->raw();
} else {
ASSERT((class_header & kSmiTagMask) != 0);
- cls_ ^= LookupInternalClass(class_header);
+ cls_ = LookupInternalClass(class_header);
ASSERT(!cls_.IsNull());
}
switch (cls_.instance_kind()) {
« no previous file with comments | « runtime/vm/parser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698