Index: src/arm64/full-codegen-arm64.cc |
diff --git a/src/arm64/full-codegen-arm64.cc b/src/arm64/full-codegen-arm64.cc |
index 1d24b91dbb846fd0e85300c7405c2b143c41f2f0..14a219d2aebd80f05118d648c4c67e3cf32b22fa 100644 |
--- a/src/arm64/full-codegen-arm64.cc |
+++ b/src/arm64/full-codegen-arm64.cc |
@@ -2906,12 +2906,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(); |