Index: src/crankshaft/mips/lithium-codegen-mips.cc |
diff --git a/src/crankshaft/mips/lithium-codegen-mips.cc b/src/crankshaft/mips/lithium-codegen-mips.cc |
index 33c9afa9e2cffe6f78ea9b9b8fdba8458304c29c..667fcbe92c3dcb5a9dd5557f26f90f98bef647be 100644 |
--- a/src/crankshaft/mips/lithium-codegen-mips.cc |
+++ b/src/crankshaft/mips/lithium-codegen-mips.cc |
@@ -4439,7 +4439,7 @@ void LCodeGen::DoDeferredNumberTagIU(LInstruction* instr, |
if (FLAG_inline_new) { |
__ LoadRoot(tmp3, Heap::kHeapNumberMapRootIndex); |
- __ AllocateHeapNumber(dst, tmp1, tmp2, tmp3, &slow, DONT_TAG_RESULT); |
+ __ AllocateHeapNumber(dst, tmp1, tmp2, tmp3, &slow); |
__ Branch(&done); |
} |
@@ -4463,16 +4463,13 @@ void LCodeGen::DoDeferredNumberTagIU(LInstruction* instr, |
__ CallRuntimeSaveDoubles(Runtime::kAllocateHeapNumber); |
RecordSafepointWithRegisters( |
instr->pointer_map(), 0, Safepoint::kNoLazyDeopt); |
- __ Subu(v0, v0, kHeapObjectTag); |
__ StoreToSafepointRegisterSlot(v0, dst); |
} |
- |
// Done. Put the value in dbl_scratch into the value of the allocated heap |
// number. |
__ bind(&done); |
- __ sdc1(dbl_scratch, MemOperand(dst, HeapNumber::kValueOffset)); |
- __ Addu(dst, dst, kHeapObjectTag); |
+ __ sdc1(dbl_scratch, FieldMemOperand(dst, HeapNumber::kValueOffset)); |
} |
@@ -4497,16 +4494,13 @@ void LCodeGen::DoNumberTagD(LNumberTagD* instr) { |
DeferredNumberTagD* deferred = new(zone()) DeferredNumberTagD(this, instr); |
if (FLAG_inline_new) { |
__ LoadRoot(scratch, Heap::kHeapNumberMapRootIndex); |
- // We want the untagged address first for performance |
- __ AllocateHeapNumber(reg, temp1, temp2, scratch, deferred->entry(), |
- DONT_TAG_RESULT); |
+ __ AllocateHeapNumber(reg, temp1, temp2, scratch, deferred->entry()); |
} else { |
__ Branch(deferred->entry()); |
} |
__ bind(deferred->exit()); |
- __ sdc1(input_reg, MemOperand(reg, HeapNumber::kValueOffset)); |
+ __ sdc1(input_reg, FieldMemOperand(reg, HeapNumber::kValueOffset)); |
// Now that we have finished with the object's real address tag it |
- __ Addu(reg, reg, kHeapObjectTag); |
} |
@@ -4527,7 +4521,6 @@ void LCodeGen::DoDeferredNumberTagD(LNumberTagD* instr) { |
__ CallRuntimeSaveDoubles(Runtime::kAllocateHeapNumber); |
RecordSafepointWithRegisters( |
instr->pointer_map(), 0, Safepoint::kNoLazyDeopt); |
- __ Subu(v0, v0, kHeapObjectTag); |
__ StoreToSafepointRegisterSlot(v0, reg); |
} |
@@ -5075,7 +5068,7 @@ void LCodeGen::DoAllocate(LAllocate* instr) { |
Register scratch2 = ToRegister(instr->temp2()); |
// Allocate memory for the object. |
- AllocationFlags flags = TAG_OBJECT; |
+ AllocationFlags flags = NO_ALLOCATION_FLAGS; |
if (instr->hydrogen()->MustAllocateDoubleAligned()) { |
flags = static_cast<AllocationFlags>(flags | DOUBLE_ALIGNMENT); |
} |