Index: src/ia32/full-codegen-ia32.cc |
diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc |
index 357c2df1ced91c522b9ede778957b9ccbb1b1307..be870ffa0f9cd0b71cfe5a33c28b8089b8016a28 100644 |
--- a/src/ia32/full-codegen-ia32.cc |
+++ b/src/ia32/full-codegen-ia32.cc |
@@ -139,6 +139,7 @@ void FullCodeGenerator::Generate() { |
info->set_prologue_offset(masm_->pc_offset()); |
__ Prologue(info->IsCodePreAgingActive()); |
+ __ push(Immediate(FeedbackVector())); |
info->AddNoFrameRange(0, masm_->pc_offset()); |
{ Comment cmnt(masm_, "[ Allocate locals"); |
@@ -2076,7 +2077,7 @@ void FullCodeGenerator::VisitYield(Yield* expr) { |
__ mov(ecx, esi); |
__ RecordWriteField(eax, JSGeneratorObject::kContextOffset, ecx, edx, |
kDontSaveFPRegs); |
- __ lea(ebx, Operand(ebp, StandardFrameConstants::kExpressionsOffset)); |
+ __ lea(ebx, Operand(ebp, JavaScriptFrameConstants::kLocal0Offset)); |
__ cmp(esp, ebx); |
__ j(equal, &post_runtime); |
__ push(eax); // generator object |
@@ -2258,6 +2259,11 @@ void FullCodeGenerator::EmitGeneratorResume(Expression *generator, |
__ push(esi); // Callee's context. |
__ push(edi); // Callee's JS Function. |
+ // Callee's type feedback vector. |
+ __ mov(edx, FieldOperand(edi, JSFunction::kSharedFunctionInfoOffset)); |
+ __ mov(edx, FieldOperand(edx, SharedFunctionInfo::kFeedbackVectorOffset)); |
+ __ push(edx); |
+ |
// Load the operand stack size. |
__ mov(edx, FieldOperand(ebx, JSGeneratorObject::kOperandStackOffset)); |
__ mov(edx, FieldOperand(edx, FixedArray::kLengthOffset)); |