Index: src/full-codegen/mips/full-codegen-mips.cc |
diff --git a/src/full-codegen/mips/full-codegen-mips.cc b/src/full-codegen/mips/full-codegen-mips.cc |
index 2818bf1457ee7c8f9330cf1ded1dcabdb919ff65..67e36b8dba34bae2cb18b9d09263af7a5feedeeb 100644 |
--- a/src/full-codegen/mips/full-codegen-mips.cc |
+++ b/src/full-codegen/mips/full-codegen-mips.cc |
@@ -2087,6 +2087,13 @@ void FullCodeGenerator::EmitGeneratorResume(Expression *generator, |
VisitForAccumulatorValue(value); |
__ pop(a1); |
+ // Store input value into generator object. |
+ __ sw(result_register(), |
+ FieldMemOperand(a1, JSGeneratorObject::kInputOffset)); |
+ __ mov(a2, result_register()); |
+ __ RecordWriteField(a1, JSGeneratorObject::kInputOffset, a2, a3, |
+ kRAHasBeenSaved, kDontSaveFPRegs); |
+ |
// Load suspended function and context. |
__ lw(cp, FieldMemOperand(a1, JSGeneratorObject::kContextOffset)); |
__ lw(t0, FieldMemOperand(a1, JSGeneratorObject::kFunctionOffset)); |