Index: src/x87/macro-assembler-x87.cc |
diff --git a/src/x87/macro-assembler-x87.cc b/src/x87/macro-assembler-x87.cc |
index ef9691242ae843b491afd1ec5c3411441256845e..a75fc5fa98bd1403bcdd8ff4d53a7485f505c0ca 100644 |
--- a/src/x87/macro-assembler-x87.cc |
+++ b/src/x87/macro-assembler-x87.cc |
@@ -2534,37 +2534,15 @@ int MacroAssembler::SafepointRegisterStackIndex(int reg_code) { |
void MacroAssembler::LoadHeapObject(Register result, |
Handle<HeapObject> object) { |
- AllowDeferredHandleDereference embedding_raw_address; |
- if (isolate()->heap()->InNewSpace(*object)) { |
- Handle<Cell> cell = isolate()->factory()->NewCell(object); |
- mov(result, Operand::ForCell(cell)); |
- } else { |
- mov(result, object); |
- } |
+ mov(result, object); |
} |
void MacroAssembler::CmpHeapObject(Register reg, Handle<HeapObject> object) { |
- AllowDeferredHandleDereference using_raw_address; |
- if (isolate()->heap()->InNewSpace(*object)) { |
- Handle<Cell> cell = isolate()->factory()->NewCell(object); |
- cmp(reg, Operand::ForCell(cell)); |
- } else { |
- cmp(reg, object); |
- } |
-} |
- |
- |
-void MacroAssembler::PushHeapObject(Handle<HeapObject> object) { |
- AllowDeferredHandleDereference using_raw_address; |
- if (isolate()->heap()->InNewSpace(*object)) { |
- Handle<Cell> cell = isolate()->factory()->NewCell(object); |
- push(Operand::ForCell(cell)); |
- } else { |
- Push(object); |
- } |
+ cmp(reg, object); |
} |
+void MacroAssembler::PushHeapObject(Handle<HeapObject> object) { Push(object); } |
void MacroAssembler::CmpWeakValue(Register value, Handle<WeakCell> cell, |
Register scratch) { |