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

Unified Diff: vm/assembler_macros_x64.cc

Issue 9965042: - Add a class index to the classes. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 8 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: vm/assembler_macros_x64.cc
===================================================================
--- vm/assembler_macros_x64.cc (revision 6994)
+++ vm/assembler_macros_x64.cc (working copy)
@@ -51,8 +51,11 @@
__ StoreIntoObject(instance_reg,
FieldAddress(instance_reg, Instance::class_offset()),
class_reg);
- __ movq(FieldAddress(instance_reg, Object::tags_offset()),
- Immediate(RawObject::SizeTag::encode(instance_size)));
+ intptr_t tags = 0;
+ tags = RawObject::SizeTag::update(instance_size, tags);
+ ASSERT(cls.index() != kIllegalObjectKind);
+ tags = RawObject::ClassTag::update(cls.index(), tags);
+ __ movq(FieldAddress(instance_reg, Object::tags_offset()), Immediate(tags));
} else {
__ jmp(failure);
}
« no previous file with comments | « vm/assembler_macros_ia32.cc ('k') | vm/class_table.h » ('j') | vm/raw_object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698