Index: src/x64/full-codegen-x64.cc |
diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc |
index 65e60fb855368667302c9cab27e7dce5c1a3bca7..77d77a6f77528c53b6abdc66f39d3b36d8787d2d 100644 |
--- a/src/x64/full-codegen-x64.cc |
+++ b/src/x64/full-codegen-x64.cc |
@@ -3102,12 +3102,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(); |