Index: src/ia32/macro-assembler-ia32.cc |
=================================================================== |
--- src/ia32/macro-assembler-ia32.cc (revision 8763) |
+++ src/ia32/macro-assembler-ia32.cc (working copy) |
@@ -263,6 +263,14 @@ |
} |
+void MacroAssembler::CompareRoot(Register with, Heap::RootListIndex index) { |
+ // see ROOT_ACCESSOR macro in factory.h |
+ Handle<Object> value(BitCast<Object**>( |
Kevin Millikin (Chromium)
2011/08/01 13:02:05
I don't think we need the BitCast here, the roots
Sven Panne
2011/08/01 13:13:25
Good point, I should have looked more closely at t
|
+ &isolate()->heap()->roots_address()[index])); |
+ cmp(with, value); |
+} |
+ |
+ |
void MacroAssembler::CmpObjectType(Register heap_object, |
InstanceType type, |
Register map) { |