Index: src/crankshaft/arm/lithium-codegen-arm.cc |
diff --git a/src/crankshaft/arm/lithium-codegen-arm.cc b/src/crankshaft/arm/lithium-codegen-arm.cc |
index 5de5250a03bc96e707dbd8e61a6815b2b9da4e2c..961e0d46092d0722d5fd7e040c7c2a0721da3053 100644 |
--- a/src/crankshaft/arm/lithium-codegen-arm.cc |
+++ b/src/crankshaft/arm/lithium-codegen-arm.cc |
@@ -3816,6 +3816,7 @@ void LCodeGen::DoCallFunction(LCallFunction* instr) { |
DCHECK(ToRegister(instr->result()).is(r0)); |
int arity = instr->arity(); |
+ ConvertReceiverMode mode = instr->hydrogen()->convert_mode(); |
if (instr->hydrogen()->HasVectorAndSlot()) { |
Register slot_register = ToRegister(instr->temp_slot()); |
Register vector_register = ToRegister(instr->temp_vector()); |
@@ -3830,11 +3831,11 @@ void LCodeGen::DoCallFunction(LCallFunction* instr) { |
__ mov(slot_register, Operand(Smi::FromInt(index))); |
Handle<Code> ic = |
- CodeFactory::CallICInOptimizedCode(isolate(), arity).code(); |
+ CodeFactory::CallICInOptimizedCode(isolate(), arity, mode).code(); |
CallCode(ic, RelocInfo::CODE_TARGET, instr); |
} else { |
__ mov(r0, Operand(arity)); |
- CallCode(isolate()->builtins()->Call(), RelocInfo::CODE_TARGET, instr); |
+ CallCode(isolate()->builtins()->Call(mode), RelocInfo::CODE_TARGET, instr); |
} |
} |