| 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 fa35b5f08b56fe6e5b5c149330278cb047fbb081..bbc73d449613f7819c111930fefc06adf9ef93fc 100644
|
| --- a/src/full-codegen/mips64/full-codegen-mips64.cc
|
| +++ b/src/full-codegen/mips64/full-codegen-mips64.cc
|
| @@ -3197,6 +3197,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.
|
| + __ ld(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
|
| context()->Plug(v0);
|
| }
|
|
|
| @@ -3246,6 +3248,8 @@ void FullCodeGenerator::EmitSuperConstructorCall(Call* expr) {
|
|
|
| RecordJSReturnSite(expr);
|
|
|
| + // Restore context register.
|
| + __ ld(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
|
| context()->Plug(v0);
|
| }
|
|
|
| @@ -4184,9 +4188,10 @@ void FullCodeGenerator::EmitDefaultConstructorCallSuper(CallRuntime* expr) {
|
| CallConstructStub stub(isolate(), SUPER_CONSTRUCTOR_CALL);
|
| __ Call(stub.GetCode(), RelocInfo::CONSTRUCT_CALL);
|
|
|
| - __ Drop(1);
|
| + // Restore context register.
|
| + __ ld(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
|
|
|
| - context()->Plug(result_register());
|
| + context()->DropAndPlug(1, result_register());
|
| }
|
|
|
|
|
|
|