| Index: src/crankshaft/x64/lithium-codegen-x64.cc
|
| diff --git a/src/crankshaft/x64/lithium-codegen-x64.cc b/src/crankshaft/x64/lithium-codegen-x64.cc
|
| index 5bd0a62198064be057ac6a1087578195ef77ea15..a7b4a5c7059038864419146788405797076b23b2 100644
|
| --- a/src/crankshaft/x64/lithium-codegen-x64.cc
|
| +++ b/src/crankshaft/x64/lithium-codegen-x64.cc
|
| @@ -3861,7 +3861,6 @@ void LCodeGen::DoCallFunction(LCallFunction* instr) {
|
| DCHECK(ToRegister(instr->result()).is(rax));
|
|
|
| int arity = instr->arity();
|
| - CallFunctionFlags flags = instr->hydrogen()->function_flags();
|
| if (instr->hydrogen()->HasVectorAndSlot()) {
|
| Register slot_register = ToRegister(instr->temp_slot());
|
| Register vector_register = ToRegister(instr->temp_vector());
|
| @@ -3875,15 +3874,12 @@ void LCodeGen::DoCallFunction(LCallFunction* instr) {
|
| __ Move(vector_register, vector);
|
| __ Move(slot_register, Smi::FromInt(index));
|
|
|
| - CallICState::CallType call_type =
|
| - (flags & CALL_AS_METHOD) ? CallICState::METHOD : CallICState::FUNCTION;
|
| -
|
| Handle<Code> ic =
|
| - CodeFactory::CallICInOptimizedCode(isolate(), arity, call_type).code();
|
| + CodeFactory::CallICInOptimizedCode(isolate(), arity).code();
|
| CallCode(ic, RelocInfo::CODE_TARGET, instr);
|
| } else {
|
| - CallFunctionStub stub(isolate(), arity, flags);
|
| - CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr);
|
| + __ Set(rax, arity);
|
| + CallCode(isolate()->builtins()->Call(), RelocInfo::CODE_TARGET, instr);
|
| }
|
| }
|
|
|
|
|