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 eeb0dd8cd47de003be0d8b3d90812c1168295468..d5fa982c63cf8f838f44e1f4913aabe1c6d06b84 100644 |
--- a/src/full-codegen/mips64/full-codegen-mips64.cc |
+++ b/src/full-codegen/mips64/full-codegen-mips64.cc |
@@ -1905,7 +1905,10 @@ void FullCodeGenerator::EmitGeneratorResume(Expression *generator, |
__ ld(a2, FieldMemOperand(a1, JSGeneratorObject::kReceiverOffset)); |
__ push(a2); |
- // Push holes for the rest of the arguments to the generator function. |
+ // Push holes for arguments to generator function. Since the parser forced |
+ // context allocation for any variables in generators, the actual argument |
+ // values have already been copied into the context and these dummy values |
+ // will never be used. |
__ ld(a3, FieldMemOperand(a4, JSFunction::kSharedFunctionInfoOffset)); |
// The argument count is stored as int32_t on 64-bit platforms. |
// TODO(plind): Smi on 32-bit platforms. |