Index: src/full-codegen/x87/full-codegen-x87.cc |
diff --git a/src/full-codegen/x87/full-codegen-x87.cc b/src/full-codegen/x87/full-codegen-x87.cc |
index 4e9330d2dbd98a362dbf6bbeed27515f804173eb..4c67161c63739b6360010c4b41b89ae39a8f675f 100644 |
--- a/src/full-codegen/x87/full-codegen-x87.cc |
+++ b/src/full-codegen/x87/full-codegen-x87.cc |
@@ -1051,8 +1051,8 @@ void FullCodeGenerator::VisitForInStatement(ForInStatement* stmt) { |
__ bind(&fixed_array); |
// No need for a write barrier, we are storing a Smi in the feedback vector. |
- __ LoadHeapObject(ebx, FeedbackVector()); |
- int vector_index = FeedbackVector()->GetIndex(slot); |
+ __ EmitLoadTypeFeedbackVector(ebx); |
+ int vector_index = SmiFromSlot(slot)->value(); |
__ mov(FieldOperand(ebx, FixedArray::OffsetOfElementAt(vector_index)), |
Immediate(TypeFeedbackVector::MegamorphicSentinel(isolate()))); |
@@ -3065,7 +3065,7 @@ void FullCodeGenerator::VisitCallNew(CallNew* expr) { |
__ mov(edi, Operand(esp, arg_count * kPointerSize)); |
// Record call targets in unoptimized code. |
- __ LoadHeapObject(ebx, FeedbackVector()); |
+ __ EmitLoadTypeFeedbackVector(ebx); |
__ mov(edx, Immediate(SmiFromSlot(expr->CallNewFeedbackSlot()))); |
CallConstructStub stub(isolate(), RECORD_CONSTRUCTOR_TARGET); |
@@ -3105,7 +3105,7 @@ void FullCodeGenerator::EmitSuperConstructorCall(Call* expr) { |
__ mov(edi, Operand(esp, arg_count * kPointerSize)); |
// Record call targets in unoptimized code. |
- __ LoadHeapObject(ebx, FeedbackVector()); |
+ __ EmitLoadTypeFeedbackVector(ebx); |
__ mov(edx, Immediate(SmiFromSlot(expr->CallFeedbackSlot()))); |
CallConstructStub stub(isolate(), SUPER_CALL_RECORD_TARGET); |