Index: src/full-codegen/arm/full-codegen-arm.cc |
diff --git a/src/full-codegen/arm/full-codegen-arm.cc b/src/full-codegen/arm/full-codegen-arm.cc |
index c8ff99d1e2d6391f6c73a93370b4f13700cb2e7a..a6a681bdfae05f34d5e415d7cef7aa20f0f21aa8 100644 |
--- a/src/full-codegen/arm/full-codegen-arm.cc |
+++ b/src/full-codegen/arm/full-codegen-arm.cc |
@@ -2086,6 +2086,13 @@ void FullCodeGenerator::EmitGeneratorResume(Expression *generator, |
VisitForAccumulatorValue(value); |
__ pop(r1); |
+ // Store input value into generator object. |
+ __ str(result_register(), |
+ FieldMemOperand(r1, JSGeneratorObject::kInputOffset)); |
+ __ mov(r2, result_register()); |
+ __ RecordWriteField(r1, JSGeneratorObject::kInputOffset, r2, r3, |
+ kLRHasBeenSaved, kDontSaveFPRegs); |
+ |
// Load suspended function and context. |
__ ldr(cp, FieldMemOperand(r1, JSGeneratorObject::kContextOffset)); |
__ ldr(r4, FieldMemOperand(r1, JSGeneratorObject::kFunctionOffset)); |