| Index: src/crankshaft/x64/lithium-codegen-x64.cc
|
| diff --git a/src/crankshaft/x64/lithium-codegen-x64.cc b/src/crankshaft/x64/lithium-codegen-x64.cc
|
| index 42eb097e53942799c296f6dbbf1d3ec4933ad3ad..a6d8fdb2180fb1c7f9c778dea8aa98971c17f37b 100644
|
| --- a/src/crankshaft/x64/lithium-codegen-x64.cc
|
| +++ b/src/crankshaft/x64/lithium-codegen-x64.cc
|
| @@ -3843,6 +3843,7 @@ void LCodeGen::DoCallFunction(LCallFunction* instr) {
|
| DCHECK(ToRegister(instr->result()).is(rax));
|
|
|
| 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());
|
| @@ -3857,11 +3858,11 @@ void LCodeGen::DoCallFunction(LCallFunction* instr) {
|
| __ Move(slot_register, 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(rax, arity);
|
| - CallCode(isolate()->builtins()->Call(), RelocInfo::CODE_TARGET, instr);
|
| + CallCode(isolate()->builtins()->Call(mode), RelocInfo::CODE_TARGET, instr);
|
| }
|
| }
|
|
|
|
|