Index: src/full-codegen/arm/full-codegen-arm.cc |
diff --git a/src/full-codegen/arm/full-codegen-arm.cc b/src/full-codegen/arm/full-codegen-arm.cc |
index d9d641141f8372a82fcf9b98b4f916999736306f..8ef0cd669d92be93d830dbaa3c4d6324e9419a3f 100644 |
--- a/src/full-codegen/arm/full-codegen-arm.cc |
+++ b/src/full-codegen/arm/full-codegen-arm.cc |
@@ -2172,49 +2172,6 @@ void FullCodeGenerator::VisitCallNew(CallNew* expr) { |
} |
-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()); |
- __ ldr(result_register(), |
- FieldMemOperand(result_register(), HeapObject::kMapOffset)); |
- __ ldr(result_register(), |
- FieldMemOperand(result_register(), Map::kPrototypeOffset)); |
- PushOperand(result_register()); |
- |
- // 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 r3. |
- VisitForAccumulatorValue(super_call_ref->new_target_var()); |
- __ mov(r3, result_register()); |
- |
- // Load function and argument count into r1 and r0. |
- __ mov(r0, Operand(arg_count)); |
- __ ldr(r1, MemOperand(sp, arg_count * kPointerSize)); |
- |
- __ Call(isolate()->builtins()->Construct(), RelocInfo::CODE_TARGET); |
- OperandStackDepthDecrement(arg_count + 1); |
- |
- RecordJSReturnSite(expr); |
- RestoreContext(); |
- context()->Plug(r0); |
-} |
- |
- |
void FullCodeGenerator::EmitIsSmi(CallRuntime* expr) { |
ZoneList<Expression*>* args = expr->arguments(); |
DCHECK(args->length() == 1); |