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

Unified Diff: runtime/vm/raw_object.cc

Issue 503363005: - Add and enable concurrent sweeper. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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
Index: runtime/vm/raw_object.cc
===================================================================
--- runtime/vm/raw_object.cc (revision 39573)
+++ runtime/vm/raw_object.cc (working copy)
@@ -59,10 +59,13 @@
// Only reasonable to be called on heap objects.
ASSERT(IsHeapObject());
- RawClass* raw_class = isolate->class_table()->At(GetClassId());
+ intptr_t class_id = GetClassId();
+ RawClass* raw_class = isolate->class_table()->At(class_id);
+ ASSERT(raw_class->ptr()->id_ == class_id);
+
+ // Get the instance size out of the class.
intptr_t instance_size =
raw_class->ptr()->instance_size_in_words_ << kWordSizeLog2;
- intptr_t class_id = raw_class->ptr()->id_;
if (instance_size == 0) {
switch (class_id) {
« runtime/vm/heap.cc ('K') | « runtime/vm/pages.cc ('k') | runtime/vm/scavenger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698