Index: src/arm/full-codegen-arm.cc |
diff --git a/src/arm/full-codegen-arm.cc b/src/arm/full-codegen-arm.cc |
index 24ac4ffd2293e14f146106f5276ed367406835ec..760afba63c732780e6650fc7cdc5f672c1fcd173 100644 |
--- a/src/arm/full-codegen-arm.cc |
+++ b/src/arm/full-codegen-arm.cc |
@@ -131,8 +131,6 @@ void FullCodeGenerator::Generate() { |
handler_table_ = |
isolate()->factory()->NewFixedArray(function()->handler_count(), TENURED); |
- InitializeFeedbackVector(); |
- |
profiling_counter_ = isolate()->factory()->NewCell( |
Handle<Smi>(Smi::FromInt(FLAG_interrupt_budget), isolate())); |
SetFunctionPosition(function()); |
@@ -1167,12 +1165,8 @@ void FullCodeGenerator::VisitForInStatement(ForInStatement* stmt) { |
Label non_proxy; |
__ bind(&fixed_array); |
- Handle<Object> feedback = Handle<Object>( |
- Smi::FromInt(TypeFeedbackInfo::kForInFastCaseMarker), |
- isolate()); |
- StoreFeedbackVectorSlot(slot, feedback); |
__ Move(r1, FeedbackVector()); |
- __ mov(r2, Operand(Smi::FromInt(TypeFeedbackInfo::kForInSlowCaseMarker))); |
+ __ mov(r2, Operand(TypeFeedbackInfo::MegamorphicSentinel(isolate()))); |
__ str(r2, FieldMemOperand(r1, FixedArray::OffsetOfElementAt(slot))); |
__ mov(r1, Operand(Smi::FromInt(1))); // Smi indicates slow check |
@@ -2714,9 +2708,6 @@ void FullCodeGenerator::EmitCallWithStub(Call* expr) { |
// Record source position for debugger. |
SetSourcePosition(expr->position()); |
- Handle<Object> uninitialized = |
- TypeFeedbackInfo::UninitializedSentinel(isolate()); |
- StoreFeedbackVectorSlot(expr->CallFeedbackSlot(), uninitialized); |
__ Move(r2, FeedbackVector()); |
__ mov(r3, Operand(Smi::FromInt(expr->CallFeedbackSlot()))); |
@@ -2903,9 +2894,6 @@ void FullCodeGenerator::VisitCallNew(CallNew* expr) { |
__ ldr(r1, MemOperand(sp, arg_count * kPointerSize)); |
// Record call targets in unoptimized code. |
- Handle<Object> uninitialized = |
- TypeFeedbackInfo::UninitializedSentinel(isolate()); |
- StoreFeedbackVectorSlot(expr->CallNewFeedbackSlot(), uninitialized); |
__ Move(r2, FeedbackVector()); |
__ mov(r3, Operand(Smi::FromInt(expr->CallNewFeedbackSlot()))); |