| Index: src/full-codegen/s390/full-codegen-s390.cc
|
| diff --git a/src/full-codegen/s390/full-codegen-s390.cc b/src/full-codegen/s390/full-codegen-s390.cc
|
| index 1e2283e1b3985cffaf7da526b249fc9273bb0006..a1fa6efa0c13074556aef5bbe19670a01f3080fb 100644
|
| --- a/src/full-codegen/s390/full-codegen-s390.cc
|
| +++ b/src/full-codegen/s390/full-codegen-s390.cc
|
| @@ -1825,7 +1825,10 @@ void FullCodeGenerator::EmitGeneratorResume(
|
| __ LoadP(r4, FieldMemOperand(r3, JSGeneratorObject::kReceiverOffset));
|
| __ push(r4);
|
|
|
| - // 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.
|
| __ LoadP(r5, FieldMemOperand(r6, JSFunction::kSharedFunctionInfoOffset));
|
| __ LoadW(
|
| r5, FieldMemOperand(r5, SharedFunctionInfo::kFormalParameterCountOffset));
|
|
|