Index: src/arm64/macro-assembler-arm64.cc |
diff --git a/src/arm64/macro-assembler-arm64.cc b/src/arm64/macro-assembler-arm64.cc |
index 83b33b7abab30ec76d01c7922403a5b0b1cf8f43..5f1e5c3795948bc5c8e17974f0998d35d7c0b932 100644 |
--- a/src/arm64/macro-assembler-arm64.cc |
+++ b/src/arm64/macro-assembler-arm64.cc |
@@ -1425,14 +1425,7 @@ void MacroAssembler::LoadTrueFalseRoots(Register true_root, |
void MacroAssembler::LoadHeapObject(Register result, |
Handle<HeapObject> object) { |
- AllowDeferredHandleDereference using_raw_address; |
- if (isolate()->heap()->InNewSpace(*object)) { |
- Handle<Cell> cell = isolate()->factory()->NewCell(object); |
- Mov(result, Operand(cell)); |
- Ldr(result, FieldMemOperand(result, Cell::kValueOffset)); |
- } else { |
- Mov(result, Operand(object)); |
- } |
+ Mov(result, Operand(object)); |
} |