| Index: src/full-codegen/mips/full-codegen-mips.cc
|
| diff --git a/src/full-codegen/mips/full-codegen-mips.cc b/src/full-codegen/mips/full-codegen-mips.cc
|
| index 35747a6087be9657c3e94e7a6759798c99d69198..2f35ef5a3069031e92a5ca5e6add07282c966b1a 100644
|
| --- a/src/full-codegen/mips/full-codegen-mips.cc
|
| +++ b/src/full-codegen/mips/full-codegen-mips.cc
|
| @@ -3195,6 +3195,8 @@ void FullCodeGenerator::VisitCallNew(CallNew* expr) {
|
| CallConstructStub stub(isolate(), RECORD_CONSTRUCTOR_TARGET);
|
| __ Call(stub.GetCode(), RelocInfo::CONSTRUCT_CALL);
|
| PrepareForBailoutForId(expr->ReturnId(), TOS_REG);
|
| + // Restore context register.
|
| + __ lw(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
|
| context()->Plug(v0);
|
| }
|
|
|
| @@ -3244,6 +3246,8 @@ void FullCodeGenerator::EmitSuperConstructorCall(Call* expr) {
|
|
|
| RecordJSReturnSite(expr);
|
|
|
| + // Restore context register.
|
| + __ lw(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
|
| context()->Plug(v0);
|
| }
|
|
|
| @@ -4180,9 +4184,10 @@ void FullCodeGenerator::EmitDefaultConstructorCallSuper(CallRuntime* expr) {
|
| CallConstructStub stub(isolate(), SUPER_CONSTRUCTOR_CALL);
|
| __ Call(stub.GetCode(), RelocInfo::CONSTRUCT_CALL);
|
|
|
| - __ Drop(1);
|
| + // Restore context register.
|
| + __ lw(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
|
|
|
| - context()->Plug(result_register());
|
| + context()->DropAndPlug(1, result_register());
|
| }
|
|
|
|
|
|
|