Index: src/arm64/code-stubs-arm64.cc |
diff --git a/src/arm64/code-stubs-arm64.cc b/src/arm64/code-stubs-arm64.cc |
index f4cf4705fd7895485ddf719e76c7bb611cb51c15..f0bc691e835934466eb3a9ac577b317450d10e3b 100644 |
--- a/src/arm64/code-stubs-arm64.cc |
+++ b/src/arm64/code-stubs-arm64.cc |
@@ -2827,10 +2827,6 @@ void CallICStub::Generate(MacroAssembler* masm) { |
// x1 - function |
// x3 - slot id (Smi) |
// x2 - vector |
- const int with_types_offset = |
- FixedArray::OffsetOfElementAt(TypeFeedbackVector::kWithTypesIndex); |
- const int generic_offset = |
- FixedArray::OffsetOfElementAt(TypeFeedbackVector::kGenericCountIndex); |
Label extra_checks_or_miss, call, call_function; |
int argc = arg_count(); |
ParameterCount actual(argc); |
@@ -2908,13 +2904,6 @@ void CallICStub::Generate(MacroAssembler* masm) { |
Operand::UntagSmiAndScale(index, kPointerSizeLog2)); |
__ LoadRoot(x5, Heap::kmegamorphic_symbolRootIndex); |
__ Str(x5, FieldMemOperand(x4, FixedArray::kHeaderSize)); |
- // We have to update statistics for runtime profiling. |
- __ Ldr(x4, FieldMemOperand(feedback_vector, with_types_offset)); |
- __ Subs(x4, x4, Operand(Smi::FromInt(1))); |
- __ Str(x4, FieldMemOperand(feedback_vector, with_types_offset)); |
- __ Ldr(x4, FieldMemOperand(feedback_vector, generic_offset)); |
- __ Adds(x4, x4, Operand(Smi::FromInt(1))); |
- __ Str(x4, FieldMemOperand(feedback_vector, generic_offset)); |
__ Bind(&call); |
__ Mov(x0, argc); |
@@ -2942,11 +2931,6 @@ void CallICStub::Generate(MacroAssembler* masm) { |
__ Cmp(x4, x5); |
__ B(ne, &miss); |
- // Update stats. |
- __ Ldr(x4, FieldMemOperand(feedback_vector, with_types_offset)); |
- __ Adds(x4, x4, Operand(Smi::FromInt(1))); |
- __ Str(x4, FieldMemOperand(feedback_vector, with_types_offset)); |
- |
// Initialize the call counter. |
__ Mov(x5, Smi::FromInt(CallICNexus::kCallCountIncrement)); |
__ Adds(x4, feedback_vector, |