Index: src/mips64/macro-assembler-mips64.cc |
diff --git a/src/mips64/macro-assembler-mips64.cc b/src/mips64/macro-assembler-mips64.cc |
index 536c74f41b32741758a68397d44a32876bdcae4c..118385bc76b0a0bac84197bbb9c3d24dff5ede94 100644 |
--- a/src/mips64/macro-assembler-mips64.cc |
+++ b/src/mips64/macro-assembler-mips64.cc |
@@ -1583,18 +1583,11 @@ void MacroAssembler::Usdc1(FPURegister fd, const MemOperand& rs, |
} |
void MacroAssembler::li(Register dst, Handle<Object> value, LiFlags mode) { |
- AllowDeferredHandleDereference smi_check; |
if (value->IsSmi()) { |
li(dst, Operand(value), mode); |
} else { |
DCHECK(value->IsHeapObject()); |
- if (isolate()->heap()->InNewSpace(*value)) { |
- Handle<Cell> cell = isolate()->factory()->NewCell(value); |
- li(dst, Operand(cell)); |
- ld(dst, FieldMemOperand(dst, Cell::kValueOffset)); |
- } else { |
- li(dst, Operand(value)); |
- } |
+ li(dst, Operand(value)); |
} |
} |