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

Unified Diff: vm/snapshot.cc

Issue 10861023: Currently we use a generated number as the class id for object class, this change tries to pin it t… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 4 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
« vm/raw_object_snapshot.cc ('K') | « vm/raw_object_snapshot.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/snapshot.cc
===================================================================
--- vm/snapshot.cc (revision 11008)
+++ vm/snapshot.cc (working copy)
@@ -414,7 +414,8 @@
ASSERT(kind_ == Snapshot::kFull);
ASSERT(isolate()->no_gc_scope_depth() != 0);
if (class_id < kNumPredefinedCids) {
- return Class::GetClass(class_id, is_signature_class);
+ ASSERT(class_id >= kInstanceCid && class_id <= kWeakPropertyCid);
srdjan 2012/08/21 00:57:39 Add parenthesis
siva 2012/08/21 01:23:29 Done.
+ return isolate()->class_table()->At(class_id);
}
cls_ = Object::class_class();
RawClass* obj = reinterpret_cast<RawClass*>(
« vm/raw_object_snapshot.cc ('K') | « vm/raw_object_snapshot.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698