Index: src/mips/macro-assembler-mips.cc |
diff --git a/src/mips/macro-assembler-mips.cc b/src/mips/macro-assembler-mips.cc |
index 86aef38414b8c97d3d04b929c2ff39d8d8e2e15e..1b9ac2fbd3d6a0faa3906e3cc97dca70c84dd781 100644 |
--- a/src/mips/macro-assembler-mips.cc |
+++ b/src/mips/macro-assembler-mips.cc |
@@ -1473,19 +1473,7 @@ 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)); |
- lw(dst, FieldMemOperand(dst, Cell::kValueOffset)); |
- } else { |
- li(dst, Operand(value)); |
- } |
- } |
+ li(dst, Operand(value), mode); |
} |