Index: src/ppc/code-stubs-ppc.cc |
diff --git a/src/ppc/code-stubs-ppc.cc b/src/ppc/code-stubs-ppc.cc |
index 399affc7f032a80cfca55f94019216fc12624e48..f2d475c251dc63a11f775ce9c75354ca63f981cc 100644 |
--- a/src/ppc/code-stubs-ppc.cc |
+++ b/src/ppc/code-stubs-ppc.cc |
@@ -2693,15 +2693,6 @@ void CallConstructStub::Generate(MacroAssembler* masm) { |
} |
-static void EmitLoadTypeFeedbackVector(MacroAssembler* masm, Register vector) { |
- __ LoadP(vector, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
- __ LoadP(vector, |
- FieldMemOperand(vector, JSFunction::kSharedFunctionInfoOffset)); |
- __ LoadP(vector, |
- FieldMemOperand(vector, SharedFunctionInfo::kFeedbackVectorOffset)); |
-} |
- |
- |
void CallICStub::HandleArrayCase(MacroAssembler* masm, Label* miss) { |
// r4 - function |
// r6 - slot id |
@@ -4477,21 +4468,21 @@ void StubFailureTrampolineStub::Generate(MacroAssembler* masm) { |
void LoadICTrampolineStub::Generate(MacroAssembler* masm) { |
- EmitLoadTypeFeedbackVector(masm, LoadWithVectorDescriptor::VectorRegister()); |
+ __ EmitLoadTypeFeedbackVector(LoadWithVectorDescriptor::VectorRegister()); |
LoadICStub stub(isolate(), state()); |
stub.GenerateForTrampoline(masm); |
} |
void KeyedLoadICTrampolineStub::Generate(MacroAssembler* masm) { |
- EmitLoadTypeFeedbackVector(masm, LoadWithVectorDescriptor::VectorRegister()); |
+ __ EmitLoadTypeFeedbackVector(LoadWithVectorDescriptor::VectorRegister()); |
KeyedLoadICStub stub(isolate(), state()); |
stub.GenerateForTrampoline(masm); |
} |
void CallICTrampolineStub::Generate(MacroAssembler* masm) { |
- EmitLoadTypeFeedbackVector(masm, r5); |
+ __ EmitLoadTypeFeedbackVector(r5); |
CallICStub stub(isolate(), state()); |
__ Jump(stub.GetCode(), RelocInfo::CODE_TARGET); |
} |
@@ -4717,14 +4708,14 @@ void KeyedLoadICStub::GenerateImpl(MacroAssembler* masm, bool in_frame) { |
void VectorStoreICTrampolineStub::Generate(MacroAssembler* masm) { |
- EmitLoadTypeFeedbackVector(masm, VectorStoreICDescriptor::VectorRegister()); |
+ __ EmitLoadTypeFeedbackVector(VectorStoreICDescriptor::VectorRegister()); |
VectorStoreICStub stub(isolate(), state()); |
stub.GenerateForTrampoline(masm); |
} |
void VectorKeyedStoreICTrampolineStub::Generate(MacroAssembler* masm) { |
- EmitLoadTypeFeedbackVector(masm, VectorStoreICDescriptor::VectorRegister()); |
+ __ EmitLoadTypeFeedbackVector(VectorStoreICDescriptor::VectorRegister()); |
VectorKeyedStoreICStub stub(isolate(), state()); |
stub.GenerateForTrampoline(masm); |
} |