Index: src/x64/builtins-x64.cc |
diff --git a/src/x64/builtins-x64.cc b/src/x64/builtins-x64.cc |
index 940d262eb5b4933b6849b9408fe0ac7123dfa270..514cec8c1f9b7814f365b43e5201b0b73ea17cc2 100644 |
--- a/src/x64/builtins-x64.cc |
+++ b/src/x64/builtins-x64.cc |
@@ -79,14 +79,10 @@ static void CallRuntimePassFunction( |
FrameScope scope(masm, StackFrame::INTERNAL); |
// Push a copy of the function onto the stack. |
__ push(rdi); |
- // Push call kind information. |
- __ push(rcx); |
// Function is also the parameter to the runtime call. |
__ push(rdi); |
__ CallRuntime(function_id, 1); |
- // Restore call kind information. |
- __ pop(rcx); |
// Restore receiver. |
__ pop(rdi); |
} |
@@ -375,11 +371,10 @@ static void Generate_JSConstructStubHelper(MacroAssembler* masm, |
masm->isolate()->builtins()->HandleApiCallConstruct(); |
ParameterCount expected(0); |
__ InvokeCode(code, expected, expected, RelocInfo::CODE_TARGET, |
- CALL_FUNCTION, NullCallWrapper(), CALL_AS_METHOD); |
+ CALL_FUNCTION, NullCallWrapper()); |
} else { |
ParameterCount actual(rax); |
- __ InvokeFunction(rdi, actual, CALL_FUNCTION, |
- NullCallWrapper(), CALL_AS_METHOD); |
+ __ InvokeFunction(rdi, actual, CALL_FUNCTION, NullCallWrapper()); |
} |
// Store offset of return address for deoptimizer. |
@@ -549,8 +544,7 @@ static void Generate_JSEntryTrampolineHelper(MacroAssembler* masm, |
} else { |
ParameterCount actual(rax); |
// Function must be in rdi. |
- __ InvokeFunction(rdi, actual, CALL_FUNCTION, |
- NullCallWrapper(), CALL_AS_METHOD); |
+ __ InvokeFunction(rdi, actual, CALL_FUNCTION, NullCallWrapper()); |
} |
// Exit the internal frame. Notice that this also removes the empty |
// context and the function left on the stack by the code |
@@ -583,16 +577,12 @@ static void CallCompileOptimized(MacroAssembler* masm, |
FrameScope scope(masm, StackFrame::INTERNAL); |
// Push a copy of the function onto the stack. |
__ push(rdi); |
- // Push call kind information. |
- __ push(rcx); |
// Function is also the parameter to the runtime call. |
__ push(rdi); |
// Whether to compile in a background thread. |
__ Push(masm->isolate()->factory()->ToBoolean(concurrent)); |
__ CallRuntime(Runtime::kCompileOptimized, 2); |
- // Restore call kind information. |
- __ pop(rcx); |
// Restore receiver. |
__ pop(rdi); |
} |
@@ -890,7 +880,6 @@ void Builtins::Generate_FunctionCall(MacroAssembler* masm) { |
__ testq(rdx, rdx); |
__ j(zero, &function); |
__ Set(rbx, 0); |
- __ SetCallKind(rcx, CALL_AS_METHOD); |
__ cmpq(rdx, Immediate(1)); |
__ j(not_equal, &non_proxy); |
@@ -917,15 +906,13 @@ void Builtins::Generate_FunctionCall(MacroAssembler* masm) { |
FieldOperand(rdx, |
SharedFunctionInfo::kFormalParameterCountOffset)); |
__ movq(rdx, FieldOperand(rdi, JSFunction::kCodeEntryOffset)); |
- __ SetCallKind(rcx, CALL_AS_FUNCTION); |
__ cmpq(rax, rbx); |
__ j(not_equal, |
masm->isolate()->builtins()->ArgumentsAdaptorTrampoline(), |
RelocInfo::CODE_TARGET); |
ParameterCount expected(0); |
- __ InvokeCode(rdx, expected, expected, JUMP_FUNCTION, |
- NullCallWrapper(), CALL_AS_FUNCTION); |
+ __ InvokeCode(rdx, expected, expected, JUMP_FUNCTION, NullCallWrapper()); |
} |
@@ -1069,8 +1056,7 @@ void Builtins::Generate_FunctionApply(MacroAssembler* masm) { |
__ movq(rdi, Operand(rbp, kFunctionOffset)); |
__ CmpObjectType(rdi, JS_FUNCTION_TYPE, rcx); |
__ j(not_equal, &call_proxy); |
- __ InvokeFunction(rdi, actual, CALL_FUNCTION, |
- NullCallWrapper(), CALL_AS_FUNCTION); |
+ __ InvokeFunction(rdi, actual, CALL_FUNCTION, NullCallWrapper()); |
frame_scope.GenerateLeaveFrame(); |
__ ret(3 * kPointerSize); // remove this, receiver, and arguments |
@@ -1080,7 +1066,6 @@ void Builtins::Generate_FunctionApply(MacroAssembler* masm) { |
__ push(rdi); // add function proxy as last argument |
__ incq(rax); |
__ Set(rbx, 0); |
- __ SetCallKind(rcx, CALL_AS_FUNCTION); |
__ GetBuiltinEntry(rdx, Builtins::CALL_FUNCTION_PROXY); |
__ call(masm->isolate()->builtins()->ArgumentsAdaptorTrampoline(), |
RelocInfo::CODE_TARGET); |
@@ -1318,7 +1303,6 @@ void Builtins::Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm) { |
// ----------- S t a t e ------------- |
// -- rax : actual number of arguments |
// -- rbx : expected number of arguments |
- // -- rcx : call kind information |
// -- rdx : code entry to call |
// ----------------------------------- |