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

Unified Diff: runtime/vm/assembler_ia32.cc

Issue 10441111: - Rename class index to class id. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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 | runtime/vm/assembler_macros_ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_ia32.cc
===================================================================
--- runtime/vm/assembler_ia32.cc (revision 8135)
+++ runtime/vm/assembler_ia32.cc (working copy)
@@ -1577,10 +1577,10 @@
void Assembler::LoadClassIndexOfObject(Register result, Register object) {
- ASSERT(RawObject::kClassTagBit == 16);
- ASSERT(RawObject::kClassTagSize == 16);
+ ASSERT(RawObject::kClassIdTagBit == 16);
+ ASSERT(RawObject::kClassIdTagSize == 16);
const intptr_t class_id_offset = Object::tags_offset() +
- RawObject::kClassTagBit / kBitsPerByte;
+ RawObject::kClassIdTagBit / kBitsPerByte;
movzxw(result, FieldAddress(object, class_id_offset));
}
@@ -1589,7 +1589,7 @@
const Class& clazz,
Register scratch) {
LoadClassIndexOfObject(scratch, object);
- cmpl(scratch, Immediate(clazz.index()));
+ cmpl(scratch, Immediate(clazz.id()));
}
« no previous file with comments | « no previous file | runtime/vm/assembler_macros_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698