Index: src/crankshaft/mips64/lithium-codegen-mips64.cc |
diff --git a/src/crankshaft/mips64/lithium-codegen-mips64.cc b/src/crankshaft/mips64/lithium-codegen-mips64.cc |
index 972d50dfd0539a2df31db59fb7cc00fec8322e85..1757a24f4f81c0fdab98a279394feb9e6c3957d6 100644 |
--- a/src/crankshaft/mips64/lithium-codegen-mips64.cc |
+++ b/src/crankshaft/mips64/lithium-codegen-mips64.cc |
@@ -4645,7 +4645,7 @@ void LCodeGen::DoDeferredNumberTagIU(LInstruction* instr, |
if (FLAG_inline_new) { |
__ LoadRoot(tmp3, Heap::kHeapNumberMapRootIndex); |
- __ AllocateHeapNumber(dst, tmp1, tmp2, tmp3, &slow, TAG_RESULT); |
+ __ AllocateHeapNumber(dst, tmp1, tmp2, tmp3, &slow); |
__ Branch(&done); |
} |
@@ -4700,15 +4700,12 @@ void LCodeGen::DoNumberTagD(LNumberTagD* 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)); |
- // Now that we have finished with the object's real address tag it |
- __ Daddu(reg, reg, kHeapObjectTag); |
+ __ sdc1(input_reg, FieldMemOperand(reg, HeapNumber::kValueOffset)); |
} |
@@ -4729,7 +4726,6 @@ void LCodeGen::DoDeferredNumberTagD(LNumberTagD* instr) { |
__ CallRuntimeSaveDoubles(Runtime::kAllocateHeapNumber); |
RecordSafepointWithRegisters( |
instr->pointer_map(), 0, Safepoint::kNoLazyDeopt); |
- __ Dsubu(v0, v0, kHeapObjectTag); |
__ StoreToSafepointRegisterSlot(v0, reg); |
} |
@@ -5276,7 +5272,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); |
} |