Index: src/ia32/full-codegen-ia32.cc |
diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc |
index a6ec56b28b0a88ddff7f82a33ee98a1b5f88ee0a..380b15e3b4efa2f580f3f3176b0e0c837e3a3c98 100644 |
--- a/src/ia32/full-codegen-ia32.cc |
+++ b/src/ia32/full-codegen-ia32.cc |
@@ -119,8 +119,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()); |
@@ -1104,15 +1102,10 @@ void FullCodeGenerator::VisitForInStatement(ForInStatement* stmt) { |
Label non_proxy; |
__ bind(&fixed_array); |
- Handle<Object> feedback = Handle<Object>( |
- Smi::FromInt(TypeFeedbackInfo::kForInFastCaseMarker), |
- isolate()); |
- StoreFeedbackVectorSlot(slot, feedback); |
- |
// No need for a write barrier, we are storing a Smi in the feedback vector. |
__ LoadHeapObject(ebx, FeedbackVector()); |
__ mov(FieldOperand(ebx, FixedArray::OffsetOfElementAt(slot)), |
- Immediate(Smi::FromInt(TypeFeedbackInfo::kForInSlowCaseMarker))); |
+ Immediate(TypeFeedbackInfo::MegamorphicSentinel(isolate()))); |
__ mov(ebx, Immediate(Smi::FromInt(1))); // Smi indicates slow check |
__ mov(ecx, Operand(esp, 0 * kPointerSize)); // Get enumerated object |
@@ -2666,9 +2659,6 @@ void FullCodeGenerator::EmitCallWithStub(Call* expr) { |
// Record source position for debugger. |
SetSourcePosition(expr->position()); |
- Handle<Object> uninitialized = |
- TypeFeedbackInfo::UninitializedSentinel(isolate()); |
- StoreFeedbackVectorSlot(expr->CallFeedbackSlot(), uninitialized); |
__ LoadHeapObject(ebx, FeedbackVector()); |
__ mov(edx, Immediate(Smi::FromInt(expr->CallFeedbackSlot()))); |
@@ -2846,9 +2836,6 @@ void FullCodeGenerator::VisitCallNew(CallNew* expr) { |
__ mov(edi, Operand(esp, arg_count * kPointerSize)); |
// Record call targets in unoptimized code. |
- Handle<Object> uninitialized = |
- TypeFeedbackInfo::UninitializedSentinel(isolate()); |
- StoreFeedbackVectorSlot(expr->CallNewFeedbackSlot(), uninitialized); |
__ LoadHeapObject(ebx, FeedbackVector()); |
__ mov(edx, Immediate(Smi::FromInt(expr->CallNewFeedbackSlot()))); |