| Index: src/mips/code-stubs-mips.cc
|
| diff --git a/src/mips/code-stubs-mips.cc b/src/mips/code-stubs-mips.cc
|
| index f8f177ccf6601ed1dd5e1560ec2f40803e64542c..8ac008e1e0cc3a7af203ffda65f2a67307e5caac 100644
|
| --- a/src/mips/code-stubs-mips.cc
|
| +++ b/src/mips/code-stubs-mips.cc
|
| @@ -1782,7 +1782,6 @@ static void GenerateRecordCallTarget(MacroAssembler* masm) {
|
| // a2 : feedback vector
|
| // a3 : slot in feedback vector (Smi)
|
| Label initialize, done, miss, megamorphic, not_array_function;
|
| - Label done_initialize_count, done_increment_count;
|
|
|
| DCHECK_EQ(*TypeFeedbackVector::MegamorphicSentinel(masm->isolate()),
|
| masm->isolate()->heap()->megamorphic_symbol());
|
| @@ -1801,7 +1800,7 @@ static void GenerateRecordCallTarget(MacroAssembler* masm) {
|
| Register feedback_map = t1;
|
| Register weak_value = t4;
|
| __ lw(weak_value, FieldMemOperand(t2, WeakCell::kValueOffset));
|
| - __ Branch(&done_increment_count, eq, a1, Operand(weak_value));
|
| + __ Branch(&done, eq, a1, Operand(weak_value));
|
| __ LoadRoot(at, Heap::kmegamorphic_symbolRootIndex);
|
| __ Branch(&done, eq, t2, Operand(at));
|
| __ lw(feedback_map, FieldMemOperand(t2, HeapObject::kMapOffset));
|
| @@ -1823,7 +1822,7 @@ static void GenerateRecordCallTarget(MacroAssembler* masm) {
|
| // Make sure the function is the Array() function
|
| __ LoadNativeContextSlot(Context::ARRAY_FUNCTION_INDEX, t2);
|
| __ Branch(&megamorphic, ne, a1, Operand(t2));
|
| - __ jmp(&done_increment_count);
|
| + __ jmp(&done);
|
|
|
| __ bind(&miss);
|
|
|
| @@ -1850,28 +1849,19 @@ static void GenerateRecordCallTarget(MacroAssembler* masm) {
|
| // slot.
|
| CreateAllocationSiteStub create_stub(masm->isolate());
|
| CallStubInRecordCallTarget(masm, &create_stub);
|
| - __ Branch(&done_initialize_count);
|
| + __ Branch(&done);
|
|
|
| __ bind(¬_array_function);
|
| CreateWeakCellStub weak_cell_stub(masm->isolate());
|
| CallStubInRecordCallTarget(masm, &weak_cell_stub);
|
|
|
| - __ bind(&done_initialize_count);
|
| - // Initialize the call counter.
|
| - __ Lsa(at, a2, a3, kPointerSizeLog2 - kSmiTagSize);
|
| - __ li(t0, Operand(Smi::FromInt(1)));
|
| - __ Branch(USE_DELAY_SLOT, &done);
|
| - __ sw(t0, FieldMemOperand(at, FixedArray::kHeaderSize + kPointerSize));
|
| -
|
| - __ bind(&done_increment_count);
|
| + __ bind(&done);
|
|
|
| - // Increment the call count for monomorphic function calls.
|
| + // Increment the call count for all function calls.
|
| __ Lsa(at, a2, a3, kPointerSizeLog2 - kSmiTagSize);
|
| __ lw(t0, FieldMemOperand(at, FixedArray::kHeaderSize + kPointerSize));
|
| __ Addu(t0, t0, Operand(Smi::FromInt(1)));
|
| __ sw(t0, FieldMemOperand(at, FixedArray::kHeaderSize + kPointerSize));
|
| -
|
| - __ bind(&done);
|
| }
|
|
|
|
|
|
|