Index: src/crankshaft/arm64/lithium-codegen-arm64.cc |
diff --git a/src/crankshaft/arm64/lithium-codegen-arm64.cc b/src/crankshaft/arm64/lithium-codegen-arm64.cc |
index 20f5be0fba4c22d9df30fa2cb9930331e7311c56..e8bb05dbbcecf67ab44ac8ef856b56a1fc557531 100644 |
--- a/src/crankshaft/arm64/lithium-codegen-arm64.cc |
+++ b/src/crankshaft/arm64/lithium-codegen-arm64.cc |
@@ -371,7 +371,6 @@ void LCodeGen::DoCallFunction(LCallFunction* instr) { |
DCHECK(ToRegister(instr->result()).Is(x0)); |
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()); |
@@ -385,15 +384,12 @@ void LCodeGen::DoCallFunction(LCallFunction* instr) { |
__ Mov(vector_register, vector); |
__ Mov(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); |
+ __ Mov(x0, arity); |
+ CallCode(isolate()->builtins()->Call(), RelocInfo::CODE_TARGET, instr); |
} |
RecordPushedArgumentsDelta(instr->hydrogen()->argument_delta()); |
} |