Index: src/x64/macro-assembler-x64.cc |
diff --git a/src/x64/macro-assembler-x64.cc b/src/x64/macro-assembler-x64.cc |
index cd6b90ce956d9c46de5d407655bfb07b292b5b06..888dbbec481db90662cde0e18cb5fd97fae0fd76 100644 |
--- a/src/x64/macro-assembler-x64.cc |
+++ b/src/x64/macro-assembler-x64.cc |
@@ -2966,15 +2966,8 @@ void MacroAssembler::Push(Handle<Object> source) { |
void MacroAssembler::MoveHeapObject(Register result, |
Handle<Object> object) { |
- AllowDeferredHandleDereference using_raw_address; |
DCHECK(object->IsHeapObject()); |
- if (isolate()->heap()->InNewSpace(*object)) { |
- Handle<Cell> cell = isolate()->factory()->NewCell(object); |
- Move(result, cell, RelocInfo::CELL); |
- movp(result, Operand(result, 0)); |
- } else { |
- Move(result, object, RelocInfo::EMBEDDED_OBJECT); |
- } |
+ Move(result, object, RelocInfo::EMBEDDED_OBJECT); |
} |