Index: src/x64/lithium-codegen-x64.cc |
diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc |
index af4431fc0eda60b9e41879b41040e6a051271280..fa63023800f5e7028668a6e8a80688ea6b226904 100644 |
--- a/src/x64/lithium-codegen-x64.cc |
+++ b/src/x64/lithium-codegen-x64.cc |
@@ -162,9 +162,6 @@ bool LCodeGen::GeneratePrologue() { |
info_->is_classic_mode() && |
!info_->is_native()) { |
Label ok; |
- __ testq(rcx, rcx); |
- __ j(zero, &ok, Label::kNear); |
- |
StackArgumentsAccessor args(rsp, scope()->num_parameters()); |
__ movq(rcx, args.GetReceiverOperand()); |
@@ -3302,8 +3299,7 @@ void LCodeGen::DoApplyArguments(LApplyArguments* instr) { |
SafepointGenerator safepoint_generator( |
this, pointers, Safepoint::kLazyDeopt); |
ParameterCount actual(rax); |
- __ InvokeFunction(function, actual, CALL_FUNCTION, |
- safepoint_generator, CALL_AS_FUNCTION); |
+ __ InvokeFunction(function, actual, CALL_FUNCTION, safepoint_generator); |
} |
@@ -3371,7 +3367,6 @@ void LCodeGen::CallKnownFunction(Handle<JSFunction> function, |
int formal_parameter_count, |
int arity, |
LInstruction* instr, |
- CallKind call_kind, |
RDIState rdi_state) { |
bool dont_adapt_arguments = |
formal_parameter_count == SharedFunctionInfo::kDontAdaptArgumentsSentinel; |
@@ -3395,7 +3390,6 @@ void LCodeGen::CallKnownFunction(Handle<JSFunction> function, |
} |
// Invoke function. |
- __ SetCallKind(rcx, call_kind); |
if (function.is_identical_to(info()->closure())) { |
__ CallSelf(); |
} else { |
@@ -3410,8 +3404,7 @@ void LCodeGen::CallKnownFunction(Handle<JSFunction> function, |
this, pointers, Safepoint::kLazyDeopt); |
ParameterCount count(arity); |
ParameterCount expected(formal_parameter_count); |
- __ InvokeFunction( |
- function, expected, count, CALL_FUNCTION, generator, call_kind); |
+ __ InvokeFunction(function, expected, count, CALL_FUNCTION, generator); |
} |
} |
@@ -3422,7 +3415,6 @@ void LCodeGen::DoCallConstantFunction(LCallConstantFunction* instr) { |
instr->hydrogen()->formal_parameter_count(), |
instr->arity(), |
instr, |
- CALL_AS_FUNCTION, |
RDI_UNINITIALIZED); |
} |
@@ -3781,13 +3773,12 @@ void LCodeGen::DoInvokeFunction(LInvokeFunction* instr) { |
LPointerMap* pointers = instr->pointer_map(); |
SafepointGenerator generator(this, pointers, Safepoint::kLazyDeopt); |
ParameterCount count(instr->arity()); |
- __ InvokeFunction(rdi, count, CALL_FUNCTION, generator, CALL_AS_FUNCTION); |
+ __ InvokeFunction(rdi, count, CALL_FUNCTION, generator); |
} else { |
CallKnownFunction(known_function, |
instr->hydrogen()->formal_parameter_count(), |
instr->arity(), |
instr, |
- CALL_AS_FUNCTION, |
RDI_CONTAINS_TARGET); |
} |
} |
@@ -3850,7 +3841,6 @@ void LCodeGen::DoCallKnownGlobal(LCallKnownGlobal* instr) { |
instr->hydrogen()->formal_parameter_count(), |
instr->arity(), |
instr, |
- CALL_AS_FUNCTION, |
RDI_UNINITIALIZED); |
} |