| Index: src/crankshaft/ia32/lithium-codegen-ia32.cc
|
| diff --git a/src/crankshaft/ia32/lithium-codegen-ia32.cc b/src/crankshaft/ia32/lithium-codegen-ia32.cc
|
| index ded1282b0304d2ba9b29e4d2683deea3d849d331..0d22debd47f52873490b2ab7e7dfcc0403eec582 100644
|
| --- a/src/crankshaft/ia32/lithium-codegen-ia32.cc
|
| +++ b/src/crankshaft/ia32/lithium-codegen-ia32.cc
|
| @@ -3754,6 +3754,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());
|
| @@ -3768,11 +3769,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);
|
| }
|
| }
|
|
|
|
|