Index: src/full-codegen/x64/full-codegen-x64.cc |
diff --git a/src/full-codegen/x64/full-codegen-x64.cc b/src/full-codegen/x64/full-codegen-x64.cc |
index a26094dd1ece80d3c8c7a12afd88e2c6808ddc5d..b40d4445457391c4158f176eede494bc9bdab633 100644 |
--- a/src/full-codegen/x64/full-codegen-x64.cc |
+++ b/src/full-codegen/x64/full-codegen-x64.cc |
@@ -2070,48 +2070,6 @@ void FullCodeGenerator::VisitCallNew(CallNew* expr) { |
context()->Plug(rax); |
} |
- |
-void FullCodeGenerator::EmitSuperConstructorCall(Call* expr) { |
- SuperCallReference* super_call_ref = |
- expr->expression()->AsSuperCallReference(); |
- DCHECK_NOT_NULL(super_call_ref); |
- |
- // Push the super constructor target on the stack (may be null, |
- // but the Construct builtin can deal with that properly). |
- VisitForAccumulatorValue(super_call_ref->this_function_var()); |
- __ AssertFunction(result_register()); |
- __ movp(result_register(), |
- FieldOperand(result_register(), HeapObject::kMapOffset)); |
- PushOperand(FieldOperand(result_register(), Map::kPrototypeOffset)); |
- |
- // Push the arguments ("left-to-right") on the stack. |
- ZoneList<Expression*>* args = expr->arguments(); |
- int arg_count = args->length(); |
- for (int i = 0; i < arg_count; i++) { |
- VisitForStackValue(args->at(i)); |
- } |
- |
- // Call the construct call builtin that handles allocation and |
- // constructor invocation. |
- SetConstructCallPosition(expr); |
- |
- // Load new target into rdx. |
- VisitForAccumulatorValue(super_call_ref->new_target_var()); |
- __ movp(rdx, result_register()); |
- |
- // Load function and argument count into rdi and rax. |
- __ Set(rax, arg_count); |
- __ movp(rdi, Operand(rsp, arg_count * kPointerSize)); |
- |
- __ Call(isolate()->builtins()->Construct(), RelocInfo::CODE_TARGET); |
- OperandStackDepthDecrement(arg_count + 1); |
- |
- RecordJSReturnSite(expr); |
- RestoreContext(); |
- context()->Plug(rax); |
-} |
- |
- |
void FullCodeGenerator::EmitIsSmi(CallRuntime* expr) { |
ZoneList<Expression*>* args = expr->arguments(); |
DCHECK(args->length() == 1); |