Index: src/arm/builtins-arm.cc |
diff --git a/src/arm/builtins-arm.cc b/src/arm/builtins-arm.cc |
index ca3c8ea2105aebcc641cbf357740201555552158..7f15dd90cf69493b82012fd3aeddb9620f63567b 100644 |
--- a/src/arm/builtins-arm.cc |
+++ b/src/arm/builtins-arm.cc |
@@ -295,12 +295,10 @@ static void CallRuntimePassFunction( |
FrameScope scope(masm, StackFrame::INTERNAL); |
// Push a copy of the function onto the stack. |
__ push(r1); |
- // Push call kind information and function as parameter to the runtime call. |
- __ Push(r5, r1); |
+ // Push function as parameter to the runtime call. |
+ __ Push(r1); |
__ CallRuntime(function_id, 1); |
- // Restore call kind information. |
- __ pop(r5); |
// Restore receiver. |
__ pop(r1); |
} |
@@ -609,11 +607,10 @@ static void Generate_JSConstructStubHelper(MacroAssembler* masm, |
masm->isolate()->builtins()->HandleApiCallConstruct(); |
ParameterCount expected(0); |
__ InvokeCode(code, expected, expected, |
- RelocInfo::CODE_TARGET, CALL_FUNCTION, CALL_AS_METHOD); |
+ RelocInfo::CODE_TARGET, CALL_FUNCTION); |
} else { |
ParameterCount actual(r0); |
- __ InvokeFunction(r1, actual, CALL_FUNCTION, |
- NullCallWrapper(), CALL_AS_METHOD); |
+ __ InvokeFunction(r1, actual, CALL_FUNCTION, NullCallWrapper()); |
} |
// Store offset of return address for deoptimizer. |
@@ -750,8 +747,7 @@ static void Generate_JSEntryTrampolineHelper(MacroAssembler* masm, |
__ CallStub(&stub); |
} else { |
ParameterCount actual(r0); |
- __ InvokeFunction(r1, actual, CALL_FUNCTION, |
- NullCallWrapper(), CALL_AS_METHOD); |
+ __ InvokeFunction(r1, actual, CALL_FUNCTION, NullCallWrapper()); |
} |
// Exit the JS frame and remove the parameters (except function), and |
// return. |
@@ -783,14 +779,12 @@ static void CallCompileOptimized(MacroAssembler* masm, bool concurrent) { |
FrameScope scope(masm, StackFrame::INTERNAL); |
// Push a copy of the function onto the stack. |
__ push(r1); |
- // Push call kind information and function as parameter to the runtime call. |
- __ Push(r5, r1); |
+ // Push function as parameter to the runtime call. |
+ __ Push(r1); |
// Whether to compile in a background thread. |
__ Push(masm->isolate()->factory()->ToBoolean(concurrent)); |
__ CallRuntime(Runtime::kCompileOptimized, 2); |
- // Restore call kind information. |
- __ pop(r5); |
// Restore receiver. |
__ pop(r1); |
} |
@@ -1151,7 +1145,6 @@ void Builtins::Generate_FunctionCall(MacroAssembler* masm) { |
__ b(eq, &function); |
// Expected number of arguments is 0 for CALL_NON_FUNCTION. |
__ mov(r2, Operand::Zero()); |
- __ SetCallKind(r5, CALL_AS_METHOD); |
__ cmp(r4, Operand(1)); |
__ b(ne, &non_proxy); |
@@ -1178,15 +1171,13 @@ void Builtins::Generate_FunctionCall(MacroAssembler* masm) { |
FieldMemOperand(r3, SharedFunctionInfo::kFormalParameterCountOffset)); |
__ SmiUntag(r2); |
__ ldr(r3, FieldMemOperand(r1, JSFunction::kCodeEntryOffset)); |
- __ SetCallKind(r5, CALL_AS_FUNCTION); |
__ cmp(r2, r0); // Check formal and actual parameter counts. |
__ Jump(masm->isolate()->builtins()->ArgumentsAdaptorTrampoline(), |
RelocInfo::CODE_TARGET, |
ne); |
ParameterCount expected(0); |
- __ InvokeCode(r3, expected, expected, JUMP_FUNCTION, |
- NullCallWrapper(), CALL_AS_FUNCTION); |
+ __ InvokeCode(r3, expected, expected, JUMP_FUNCTION, NullCallWrapper()); |
} |
@@ -1324,8 +1315,7 @@ void Builtins::Generate_FunctionApply(MacroAssembler* masm) { |
__ ldr(r1, MemOperand(fp, kFunctionOffset)); |
__ CompareObjectType(r1, r2, r2, JS_FUNCTION_TYPE); |
__ b(ne, &call_proxy); |
- __ InvokeFunction(r1, actual, CALL_FUNCTION, |
- NullCallWrapper(), CALL_AS_FUNCTION); |
+ __ InvokeFunction(r1, actual, CALL_FUNCTION, NullCallWrapper()); |
frame_scope.GenerateLeaveFrame(); |
__ add(sp, sp, Operand(3 * kPointerSize)); |
@@ -1336,7 +1326,6 @@ void Builtins::Generate_FunctionApply(MacroAssembler* masm) { |
__ push(r1); // add function proxy as last argument |
__ add(r0, r0, Operand(1)); |
__ mov(r2, Operand::Zero()); |
- __ SetCallKind(r5, CALL_AS_FUNCTION); |
__ GetBuiltinEntry(r3, Builtins::CALL_FUNCTION_PROXY); |
__ Call(masm->isolate()->builtins()->ArgumentsAdaptorTrampoline(), |
RelocInfo::CODE_TARGET); |
@@ -1380,7 +1369,6 @@ void Builtins::Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm) { |
// -- r1 : function (passed through to callee) |
// -- r2 : expected number of arguments |
// -- r3 : code entry to call |
- // -- r5 : call kind information |
// ----------------------------------- |
Label invoke, dont_adapt_arguments; |