Index: src/full-codegen/mips64/full-codegen-mips64.cc |
diff --git a/src/full-codegen/mips64/full-codegen-mips64.cc b/src/full-codegen/mips64/full-codegen-mips64.cc |
index 47ad4c5f0f99e5806d8fc0df2c0e35b21acbc461..9f32a88ce72170e75ad5eec05729e81bc38bc84a 100644 |
--- a/src/full-codegen/mips64/full-codegen-mips64.cc |
+++ b/src/full-codegen/mips64/full-codegen-mips64.cc |
@@ -1974,6 +1974,7 @@ void FullCodeGenerator::VisitYield(Yield* expr) { |
Label l_next, l_call; |
Register load_receiver = LoadDescriptor::ReceiverRegister(); |
Register load_name = LoadDescriptor::NameRegister(); |
+ |
// Initial send value is undefined. |
__ LoadRoot(a0, Heap::kUndefinedValueRootIndex); |
__ Branch(&l_next); |
@@ -2086,6 +2087,13 @@ void FullCodeGenerator::EmitGeneratorResume(Expression *generator, |
VisitForAccumulatorValue(value); |
__ pop(a1); |
+ // Store input value into generator object. |
+ __ sd(result_register(), |
+ FieldMemOperand(a1, JSGeneratorObject::kInputOffset)); |
+ __ mov(a2, result_register()); |
+ __ RecordWriteField(a1, JSGeneratorObject::kInputOffset, a2, a3, |
+ kRAHasBeenSaved, kDontSaveFPRegs); |
+ |
// Load suspended function and context. |
__ ld(cp, FieldMemOperand(a1, JSGeneratorObject::kContextOffset)); |
__ ld(a4, FieldMemOperand(a1, JSGeneratorObject::kFunctionOffset)); |