Index: runtime/vm/assembler_ia32.cc |
=================================================================== |
--- runtime/vm/assembler_ia32.cc (revision 8286) |
+++ runtime/vm/assembler_ia32.cc (working copy) |
@@ -1578,6 +1578,16 @@ |
} |
+void Assembler::LoadClassById(Register result, Register class_id) { |
+ ASSERT(result != class_id); |
+ movl(result, FieldAddress(CTX, Context::isolate_offset())); |
+ const intptr_t table_offset_in_isolate = |
+ Isolate::class_table_offset() + ClassTable::table_offset(); |
+ movl(result, Address(result, table_offset_in_isolate)); |
+ movl(result, Address(result, class_id, TIMES_4, 0)); |
+} |
+ |
+ |
void Assembler::LoadClass(Register result, |
Register object, |
Register scratch) { |