Index: src/full-codegen/ppc/full-codegen-ppc.cc |
diff --git a/src/full-codegen/ppc/full-codegen-ppc.cc b/src/full-codegen/ppc/full-codegen-ppc.cc |
index 7da09fc560bdc6a349dfc24d178d730d20ead736..9767faa17371793e3a673e1ad2c38829394dd7aa 100644 |
--- a/src/full-codegen/ppc/full-codegen-ppc.cc |
+++ b/src/full-codegen/ppc/full-codegen-ppc.cc |
@@ -1802,11 +1802,10 @@ void FullCodeGenerator::VisitYield(Yield* expr) { |
__ b(&suspend); |
__ bind(&continuation); |
- // When we arrive here, the stack top is the resume mode and |
- // result_register() holds the input value (the argument given to the |
- // respective resume operation). |
+ // When we arrive here, r3 holds the generator object. |
__ RecordGeneratorContinuation(); |
- __ pop(r4); |
+ __ LoadP(r4, FieldMemOperand(r3, JSGeneratorObject::kResumeModeOffset)); |
+ __ LoadP(r3, FieldMemOperand(r3, JSGeneratorObject::kInputOffset)); |
STATIC_ASSERT(JSGeneratorObject::kNext < JSGeneratorObject::kReturn); |
STATIC_ASSERT(JSGeneratorObject::kThrow > JSGeneratorObject::kReturn); |
__ CmpSmiLiteral(r4, Smi::FromInt(JSGeneratorObject::kReturn), r0); |