| Index: src/mips64/full-codegen-mips64.cc
|
| diff --git a/src/mips64/full-codegen-mips64.cc b/src/mips64/full-codegen-mips64.cc
|
| index 900837f7b1dd50ec6cd5d516108ab78c0336c9bf..eed57afc65d43749473ba95c61ffeb6e24617ec4 100644
|
| --- a/src/mips64/full-codegen-mips64.cc
|
| +++ b/src/mips64/full-codegen-mips64.cc
|
| @@ -3189,12 +3189,8 @@ void FullCodeGenerator::VisitCallNew(CallNew* expr) {
|
| // Push constructor on the stack. If it's not a function it's used as
|
| // receiver for CALL_NON_FUNCTION, otherwise the value on the stack is
|
| // ignored.
|
| - if (expr->expression()->IsSuperReference()) {
|
| - EmitLoadSuperConstructor(expr->expression()->AsSuperReference());
|
| - __ Push(result_register());
|
| - } else {
|
| - VisitForStackValue(expr->expression());
|
| - }
|
| + DCHECK(!expr->expression()->IsSuperReference());
|
| + VisitForStackValue(expr->expression());
|
|
|
| // Push the arguments ("left-to-right") on the stack.
|
| ZoneList<Expression*>* args = expr->arguments();
|
| @@ -3202,6 +3198,7 @@ void FullCodeGenerator::VisitCallNew(CallNew* expr) {
|
| for (int i = 0; i < arg_count; i++) {
|
| VisitForStackValue(args->at(i));
|
| }
|
| +
|
| // Call the construct call builtin that handles allocation and
|
| // constructor invocation.
|
| SetSourcePosition(expr->position());
|
|
|