| 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 d5758231f10b99c85fbfbf63d903711625382f72..0e77efe0de128edebe60af1930ab035add047999 100644
|
| --- a/src/full-codegen/arm/full-codegen-arm.cc
|
| +++ b/src/full-codegen/arm/full-codegen-arm.cc
|
| @@ -3867,39 +3867,6 @@ void FullCodeGenerator::EmitCall(CallRuntime* expr) {
|
| }
|
|
|
|
|
| -void FullCodeGenerator::EmitCallFunction(CallRuntime* expr) {
|
| - ZoneList<Expression*>* args = expr->arguments();
|
| - DCHECK(args->length() >= 2);
|
| -
|
| - int arg_count = args->length() - 2; // 2 ~ receiver and function.
|
| - for (int i = 0; i < arg_count + 1; i++) {
|
| - VisitForStackValue(args->at(i));
|
| - }
|
| - VisitForAccumulatorValue(args->last()); // Function.
|
| -
|
| - PrepareForBailoutForId(expr->CallId(), NO_REGISTERS);
|
| - Label runtime, done;
|
| - // Check for non-function argument (including proxy).
|
| - __ JumpIfSmi(r0, &runtime);
|
| - __ CompareObjectType(r0, r1, r1, JS_FUNCTION_TYPE);
|
| - __ b(ne, &runtime);
|
| -
|
| - // InvokeFunction requires the function in r1. Move it in there.
|
| - __ mov(r1, result_register());
|
| - ParameterCount count(arg_count);
|
| - __ InvokeFunction(r1, count, CALL_FUNCTION, NullCallWrapper());
|
| - __ ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
|
| - __ jmp(&done);
|
| -
|
| - __ bind(&runtime);
|
| - __ push(r0);
|
| - __ CallRuntime(Runtime::kCallFunction, args->length());
|
| - __ bind(&done);
|
| -
|
| - context()->Plug(r0);
|
| -}
|
| -
|
| -
|
| void FullCodeGenerator::EmitDefaultConstructorCallSuper(CallRuntime* expr) {
|
| ZoneList<Expression*>* args = expr->arguments();
|
| DCHECK(args->length() == 2);
|
|
|