Index: src/ppc/code-stubs-ppc.cc |
diff --git a/src/ppc/code-stubs-ppc.cc b/src/ppc/code-stubs-ppc.cc |
index 1f381534b7d541bc05f76624666dfdc7017cf0b2..ee4f5e960d23b16ce12b2275011c320a15d36440 100644 |
--- a/src/ppc/code-stubs-ppc.cc |
+++ b/src/ppc/code-stubs-ppc.cc |
@@ -1719,7 +1719,6 @@ static void GenerateRecordCallTarget(MacroAssembler* masm) { |
// r5 : feedback vector |
// r6 : 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()); |
@@ -1742,7 +1741,7 @@ static void GenerateRecordCallTarget(MacroAssembler* masm) { |
Register weak_value = r10; |
__ LoadP(weak_value, FieldMemOperand(r8, WeakCell::kValueOffset)); |
__ cmp(r4, weak_value); |
- __ beq(&done_increment_count); |
+ __ beq(&done); |
__ CompareRoot(r8, Heap::kmegamorphic_symbolRootIndex); |
__ beq(&done); |
__ LoadP(feedback_map, FieldMemOperand(r8, HeapObject::kMapOffset)); |
@@ -1765,7 +1764,7 @@ static void GenerateRecordCallTarget(MacroAssembler* masm) { |
__ LoadNativeContextSlot(Context::ARRAY_FUNCTION_INDEX, r8); |
__ cmp(r4, r8); |
__ bne(&megamorphic); |
- __ b(&done_increment_count); |
+ __ b(&done); |
__ bind(&miss); |
@@ -1795,32 +1794,22 @@ static void GenerateRecordCallTarget(MacroAssembler* masm) { |
// slot. |
CreateAllocationSiteStub create_stub(masm->isolate()); |
CallStubInRecordCallTarget(masm, &create_stub); |
- __ b(&done_initialize_count); |
+ __ b(&done); |
__ bind(¬_array_function); |
CreateWeakCellStub weak_cell_stub(masm->isolate()); |
CallStubInRecordCallTarget(masm, &weak_cell_stub); |
- __ bind(&done_initialize_count); |
- // Initialize the call counter. |
- __ LoadSmiLiteral(r8, Smi::FromInt(1)); |
- __ SmiToPtrArrayOffset(r7, r6); |
- __ add(r7, r5, r7); |
- __ StoreP(r8, FieldMemOperand(r7, count_offset), r0); |
- __ b(&done); |
- |
- __ bind(&done_increment_count); |
+ __ bind(&done); |
- // Increment the call count for monomorphic function calls. |
+ // Increment the call count for all function calls. |
__ SmiToPtrArrayOffset(r8, r6); |
__ add(r8, r5, r8); |
__ LoadP(r7, FieldMemOperand(r8, count_offset)); |
__ AddSmiLiteral(r7, r7, Smi::FromInt(1), r0); |
__ StoreP(r7, FieldMemOperand(r8, count_offset), r0); |
- |
- __ bind(&done); |
} |