Index: src/x64/macro-assembler-x64.cc |
=================================================================== |
--- src/x64/macro-assembler-x64.cc (revision 2993) |
+++ src/x64/macro-assembler-x64.cc (working copy) |
@@ -63,6 +63,13 @@ |
} |
+void MacroAssembler::CompareRoot(Operand with, |
+ Heap::RootListIndex index) { |
+ LoadRoot(kScratchRegister, index); |
+ cmpq(with, kScratchRegister); |
+} |
+ |
+ |
static void RecordWriteHelper(MacroAssembler* masm, |
Register object, |
Register addr, |