Index: src/crankshaft/ppc/lithium-codegen-ppc.cc |
diff --git a/src/crankshaft/ppc/lithium-codegen-ppc.cc b/src/crankshaft/ppc/lithium-codegen-ppc.cc |
index 5bec2c705d55236db7a292cfe1d0f863ebc5ab60..112d1ec8f003cc5d558381c5d54dca333c2cf885 100644 |
--- a/src/crankshaft/ppc/lithium-codegen-ppc.cc |
+++ b/src/crankshaft/ppc/lithium-codegen-ppc.cc |
@@ -4051,7 +4051,6 @@ void LCodeGen::DoCallFunction(LCallFunction* instr) { |
DCHECK(ToRegister(instr->result()).is(r3)); |
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()); |
@@ -4065,15 +4064,12 @@ void LCodeGen::DoCallFunction(LCallFunction* instr) { |
__ Move(vector_register, vector); |
__ LoadSmiLiteral(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); |
+ __ mov(r3, Operand(arity)); |
+ CallCode(isolate()->builtins()->Call(), RelocInfo::CODE_TARGET, instr); |
} |
} |