| Index: src/crankshaft/ia32/lithium-codegen-ia32.cc
|
| diff --git a/src/crankshaft/ia32/lithium-codegen-ia32.cc b/src/crankshaft/ia32/lithium-codegen-ia32.cc
|
| index 1fa61029b6b43af54850edfd01bdddf80f9fef2e..21ca69ca79da2b46c864234d207be98ed69e9256 100644
|
| --- a/src/crankshaft/ia32/lithium-codegen-ia32.cc
|
| +++ b/src/crankshaft/ia32/lithium-codegen-ia32.cc
|
| @@ -3774,7 +3774,6 @@ void LCodeGen::DoCallFunction(LCallFunction* instr) {
|
| DCHECK(ToRegister(instr->result()).is(eax));
|
|
|
| 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());
|
| @@ -3788,15 +3787,12 @@ void LCodeGen::DoCallFunction(LCallFunction* instr) {
|
| __ mov(vector_register, vector);
|
| __ mov(slot_register, Immediate(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(eax, arity);
|
| + CallCode(isolate()->builtins()->Call(), RelocInfo::CODE_TARGET, instr);
|
| }
|
| }
|
|
|
|
|