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 921d9b69eb3021441994bdcc3bf02701b2e0f583..db1fe213a48754f9e8ebcdf0ce6b1d89934ee8f0 100644 |
--- a/src/crankshaft/ppc/lithium-codegen-ppc.cc |
+++ b/src/crankshaft/ppc/lithium-codegen-ppc.cc |
@@ -3853,37 +3853,6 @@ void LCodeGen::DoCallJSFunction(LCallJSFunction* instr) { |
} |
-void LCodeGen::DoCallFunction(LCallFunction* instr) { |
- HCallFunction* hinstr = instr->hydrogen(); |
- DCHECK(ToRegister(instr->context()).is(cp)); |
- DCHECK(ToRegister(instr->function()).is(r4)); |
- DCHECK(ToRegister(instr->result()).is(r3)); |
- |
- int arity = instr->arity(); |
- ConvertReceiverMode mode = hinstr->convert_mode(); |
- if (hinstr->HasVectorAndSlot()) { |
- Register slot_register = ToRegister(instr->temp_slot()); |
- Register vector_register = ToRegister(instr->temp_vector()); |
- DCHECK(slot_register.is(r6)); |
- DCHECK(vector_register.is(r5)); |
- |
- AllowDeferredHandleDereference vector_structure_check; |
- Handle<TypeFeedbackVector> vector = hinstr->feedback_vector(); |
- int index = vector->GetIndex(hinstr->slot()); |
- |
- __ Move(vector_register, vector); |
- __ LoadSmiLiteral(slot_register, Smi::FromInt(index)); |
- |
- Handle<Code> ic = |
- CodeFactory::CallICInOptimizedCode(isolate(), arity, mode).code(); |
- CallCode(ic, RelocInfo::CODE_TARGET, instr); |
- } else { |
- __ mov(r3, Operand(arity)); |
- CallCode(isolate()->builtins()->Call(mode), RelocInfo::CODE_TARGET, instr); |
- } |
-} |
- |
- |
void LCodeGen::DoCallNewArray(LCallNewArray* instr) { |
DCHECK(ToRegister(instr->context()).is(cp)); |
DCHECK(ToRegister(instr->constructor()).is(r4)); |