Index: src/crankshaft/x87/lithium-codegen-x87.cc |
diff --git a/src/crankshaft/x87/lithium-codegen-x87.cc b/src/crankshaft/x87/lithium-codegen-x87.cc |
index c43641ee32aebf060bcdf327e6bb056453e08a7c..f8304a63216af64ccd650abad2acbbf32896d149 100644 |
--- a/src/crankshaft/x87/lithium-codegen-x87.cc |
+++ b/src/crankshaft/x87/lithium-codegen-x87.cc |
@@ -4161,6 +4161,7 @@ void LCodeGen::DoCallFunction(LCallFunction* instr) { |
DCHECK(ToRegister(instr->result()).is(eax)); |
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()); |
@@ -4175,11 +4176,11 @@ void LCodeGen::DoCallFunction(LCallFunction* instr) { |
__ mov(slot_register, Immediate(Smi::FromInt(index))); |
Handle<Code> ic = |
- CodeFactory::CallICInOptimizedCode(isolate(), arity).code(); |
+ CodeFactory::CallICInOptimizedCode(isolate(), arity, mode).code(); |
CallCode(ic, RelocInfo::CODE_TARGET, instr); |
} else { |
__ Set(eax, arity); |
- CallCode(isolate()->builtins()->Call(), RelocInfo::CODE_TARGET, instr); |
+ CallCode(isolate()->builtins()->Call(mode), RelocInfo::CODE_TARGET, instr); |
} |
} |