PPC: VectorICs: Cleanup, remove unnecessary arguments from HandleArrayCases()
Port c29a4061c9
R=mvstanton@chromium.org, joransiu@ca.ibm.com, jyan@ca.ibm.com, michael_dawson@ca.ibm.com, dstence@us.ibm.com
BUG=
Review URL: https://codereview.chromium.org/1325103003
Cr-Commit-Position: refs/heads/master@{#30545}
This commit is contained in:
parent
d779181b88
commit
e5fc7fe5fd
@ -4569,11 +4569,10 @@ void LoadICStub::GenerateForTrampoline(MacroAssembler* masm) {
|
||||
}
|
||||
|
||||
|
||||
static void HandleArrayCases(MacroAssembler* masm, Register receiver,
|
||||
Register key, Register vector, Register slot,
|
||||
Register feedback, Register receiver_map,
|
||||
Register scratch1, Register scratch2,
|
||||
bool is_polymorphic, Label* miss) {
|
||||
static void HandleArrayCases(MacroAssembler* masm, Register feedback,
|
||||
Register receiver_map, Register scratch1,
|
||||
Register scratch2, bool is_polymorphic,
|
||||
Label* miss) {
|
||||
// feedback initially contains the feedback array
|
||||
Label next_loop, prepare_next;
|
||||
Label start_polymorphic;
|
||||
@ -4690,8 +4689,7 @@ void LoadICStub::GenerateImpl(MacroAssembler* masm, bool in_frame) {
|
||||
__ LoadP(scratch1, FieldMemOperand(feedback, HeapObject::kMapOffset));
|
||||
__ CompareRoot(scratch1, Heap::kFixedArrayMapRootIndex);
|
||||
__ bne(¬_array);
|
||||
HandleArrayCases(masm, receiver, name, vector, slot, feedback, receiver_map,
|
||||
scratch1, r10, true, &miss);
|
||||
HandleArrayCases(masm, feedback, receiver_map, scratch1, r10, true, &miss);
|
||||
|
||||
__ bind(¬_array);
|
||||
__ CompareRoot(feedback, Heap::kmegamorphic_symbolRootIndex);
|
||||
@ -4751,8 +4749,7 @@ void KeyedLoadICStub::GenerateImpl(MacroAssembler* masm, bool in_frame) {
|
||||
// We have a polymorphic element handler.
|
||||
Label polymorphic, try_poly_name;
|
||||
__ bind(&polymorphic);
|
||||
HandleArrayCases(masm, receiver, key, vector, slot, feedback, receiver_map,
|
||||
scratch1, r10, true, &miss);
|
||||
HandleArrayCases(masm, feedback, receiver_map, scratch1, r10, true, &miss);
|
||||
|
||||
__ bind(¬_array);
|
||||
// Is it generic?
|
||||
@ -4772,8 +4769,7 @@ void KeyedLoadICStub::GenerateImpl(MacroAssembler* masm, bool in_frame) {
|
||||
__ add(feedback, vector, r0);
|
||||
__ LoadP(feedback,
|
||||
FieldMemOperand(feedback, FixedArray::kHeaderSize + kPointerSize));
|
||||
HandleArrayCases(masm, receiver, key, vector, slot, feedback, receiver_map,
|
||||
scratch1, r10, false, &miss);
|
||||
HandleArrayCases(masm, feedback, receiver_map, scratch1, r10, false, &miss);
|
||||
|
||||
__ bind(&miss);
|
||||
KeyedLoadIC::GenerateMiss(masm);
|
||||
|
Loading…
Reference in New Issue
Block a user