| 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 eeb0761b1bd021db19b1c5e2b9fba9bd715200e4..d886198f5629c4de5594b98e5f07dc42dbda39f8 100644
|
| --- a/src/full-codegen/mips64/full-codegen-mips64.cc
|
| +++ b/src/full-codegen/mips64/full-codegen-mips64.cc
|
| @@ -3085,7 +3085,7 @@ void FullCodeGenerator::VisitCallNew(CallNew* expr) {
|
|
|
| // Call the construct call builtin that handles allocation and
|
| // constructor invocation.
|
| - SetConstructCallPosition(expr);
|
| + SetConstructCallPosition(expr, arg_count);
|
|
|
| // Load function and argument count into a1 and a0.
|
| __ li(a0, Operand(arg_count));
|
| @@ -3121,7 +3121,7 @@ void FullCodeGenerator::EmitSuperConstructorCall(Call* expr) {
|
|
|
| // Call the construct call builtin that handles allocation and
|
| // constructor invocation.
|
| - SetConstructCallPosition(expr);
|
| + SetConstructCallPosition(expr, arg_count);
|
|
|
| // Load new target into a4.
|
| VisitForAccumulatorValue(super_call_ref->new_target_var());
|
| @@ -3875,6 +3875,10 @@ void FullCodeGenerator::EmitDefaultConstructorCallSuper(CallRuntime* expr) {
|
| VisitForStackValue(args->at(0));
|
| VisitForStackValue(args->at(1));
|
|
|
| + // Call the construct call builtin that handles allocation and
|
| + // constructor invocation.
|
| + SetConstructCallPosition(expr, 0);
|
| +
|
| // Load new target into a3.
|
| __ ld(a3, MemOperand(sp, 1 * kPointerSize));
|
|
|
|
|