Index: src/crankshaft/ppc/lithium-codegen-ppc.cc |
diff --git a/src/crankshaft/ppc/lithium-codegen-ppc.cc b/src/crankshaft/ppc/lithium-codegen-ppc.cc |
index 112d1ec8f003cc5d558381c5d54dca333c2cf885..27cfa6b417e09d2dcf2d20ed6bb9c3eeda9d8ca1 100644 |
--- a/src/crankshaft/ppc/lithium-codegen-ppc.cc |
+++ b/src/crankshaft/ppc/lithium-codegen-ppc.cc |
@@ -4051,6 +4051,7 @@ void LCodeGen::DoCallFunction(LCallFunction* instr) { |
DCHECK(ToRegister(instr->result()).is(r3)); |
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()); |
@@ -4065,11 +4066,11 @@ void LCodeGen::DoCallFunction(LCallFunction* instr) { |
__ LoadSmiLiteral(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 { |
__ mov(r3, Operand(arity)); |
- CallCode(isolate()->builtins()->Call(), RelocInfo::CODE_TARGET, instr); |
+ CallCode(isolate()->builtins()->Call(mode), RelocInfo::CODE_TARGET, instr); |
} |
} |