Index: src/x64/macro-assembler-x64.cc |
=================================================================== |
--- src/x64/macro-assembler-x64.cc (revision 2231) |
+++ src/x64/macro-assembler-x64.cc (working copy) |
@@ -45,6 +45,14 @@ |
} |
+// TODO(x64): For now, the write barrier is disabled on x64 and we |
+// therefore generate no code. This should be fixed when the write |
+// barrier is enabled. |
+void MacroAssembler::RecordWrite(Register object, int offset, |
+ Register value, Register scratch) { |
+} |
+ |
+ |
void MacroAssembler::Assert(Condition cc, const char* msg) { |
if (FLAG_debug_code) Check(cc, msg); |
} |
@@ -350,6 +358,21 @@ |
} |
+void MacroAssembler::CmpHeapObject(Register heap_object_reg, |
+ Handle<Object> heap_object) { |
+ ASSERT(heap_object->IsHeapObject()); |
+ movq(kScratchRegister, heap_object, RelocInfo::EMBEDDED_OBJECT); |
+ cmpq(heap_object_reg, kScratchRegister); |
+} |
+ |
+ |
+void MacroAssembler::PushHeapObject(Handle<Object> heap_object) { |
+ ASSERT(heap_object->IsHeapObject()); |
+ movq(kScratchRegister, heap_object, RelocInfo::EMBEDDED_OBJECT); |
+ push(kScratchRegister); |
+} |
+ |
+ |
void MacroAssembler::CmpObjectType(Register heap_object, |
InstanceType type, |
Register map) { |