Index: src/full-codegen/ia32/full-codegen-ia32.cc |
diff --git a/src/full-codegen/ia32/full-codegen-ia32.cc b/src/full-codegen/ia32/full-codegen-ia32.cc |
index 672a98349e18173f57ba98a794c13f3d40cb08c3..a37e12c73d56a4830138938d68e917f2b3e258e7 100644 |
--- a/src/full-codegen/ia32/full-codegen-ia32.cc |
+++ b/src/full-codegen/ia32/full-codegen-ia32.cc |
@@ -1744,7 +1744,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))); |