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

Unified Diff: vm/assembler_macros_ia32.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, 9 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 | « no previous file | vm/class_table.h » ('j') | vm/class_table.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/assembler_macros_ia32.cc
===================================================================
--- vm/assembler_macros_ia32.cc (revision 5947)
+++ vm/assembler_macros_ia32.cc (working copy)
@@ -47,8 +47,11 @@
__ StoreIntoObject(instance_reg,
FieldAddress(instance_reg, Instance::class_offset()),
class_reg);
- __ movl(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);
+ __ movl(FieldAddress(instance_reg, Object::tags_offset()), Immediate(tags));
} else {
__ jmp(failure);
}
« no previous file with comments | « no previous file | vm/class_table.h » ('j') | vm/class_table.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698