Index: src/full-codegen/x87/full-codegen-x87.cc |
diff --git a/src/full-codegen/x87/full-codegen-x87.cc b/src/full-codegen/x87/full-codegen-x87.cc |
index d978b6b2fe240fcd3f8999ed8141fd99db152b81..3ece5b5d9944a37996ee74b574ee034e8ff18043 100644 |
--- a/src/full-codegen/x87/full-codegen-x87.cc |
+++ b/src/full-codegen/x87/full-codegen-x87.cc |
@@ -1741,7 +1741,7 @@ void FullCodeGenerator::VisitYield(Yield* expr) { |
// When we arrive here, eax holds the generator object. |
__ RecordGeneratorContinuation(); |
__ mov(ebx, FieldOperand(eax, JSGeneratorObject::kResumeModeOffset)); |
- __ mov(eax, FieldOperand(eax, JSGeneratorObject::kInputOffset)); |
+ __ mov(eax, FieldOperand(eax, JSGeneratorObject::kInputOrDebugPosOffset)); |
STATIC_ASSERT(JSGeneratorObject::kNext < JSGeneratorObject::kReturn); |
STATIC_ASSERT(JSGeneratorObject::kThrow > JSGeneratorObject::kReturn); |
__ cmp(ebx, Immediate(Smi::FromInt(JSGeneratorObject::kReturn))); |