Index: src/crankshaft/mips/lithium-codegen-mips.cc |
diff --git a/src/crankshaft/mips/lithium-codegen-mips.cc b/src/crankshaft/mips/lithium-codegen-mips.cc |
index b18a2f9e457f64bd323f7dfb6e2f485660b04d11..efba8764efb1c0feb934a945b8273dff9e64e2df 100644 |
--- a/src/crankshaft/mips/lithium-codegen-mips.cc |
+++ b/src/crankshaft/mips/lithium-codegen-mips.cc |
@@ -3809,7 +3809,6 @@ void LCodeGen::DoCallFunction(LCallFunction* instr) { |
DCHECK(ToRegister(instr->result()).is(v0)); |
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()); |
@@ -3823,15 +3822,12 @@ void LCodeGen::DoCallFunction(LCallFunction* instr) { |
__ li(vector_register, vector); |
__ li(slot_register, Operand(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); |
+ __ li(a0, Operand(arity)); |
+ CallCode(isolate()->builtins()->Call(), RelocInfo::CODE_TARGET, instr); |
} |
} |