PPC: Eliminate redundant descriptor ElementTransitionAndStoreDescriptor.
Port 26ffee2c71
Original commit message:
It's just the same as StoreTransitionDescriptor.
R=mvstanton@chromium.org, dstence@us.ibm.com, michael_dawson@ca.ibm.com
BUG=
Review URL: https://codereview.chromium.org/1246143004
Cr-Commit-Position: refs/heads/master@{#29819}
This commit is contained in:
parent
9b032dc985
commit
6594c09fd3
@ -33,7 +33,7 @@ Register* PropertyAccessCompiler::store_calling_convention() {
|
|||||||
// receiver, name, scratch1, scratch2, scratch3.
|
// receiver, name, scratch1, scratch2, scratch3.
|
||||||
Register receiver = StoreDescriptor::ReceiverRegister();
|
Register receiver = StoreDescriptor::ReceiverRegister();
|
||||||
Register name = StoreDescriptor::NameRegister();
|
Register name = StoreDescriptor::NameRegister();
|
||||||
DCHECK(r6.is(ElementTransitionAndStoreDescriptor::MapRegister()));
|
DCHECK(r6.is(StoreTransitionDescriptor::MapRegister()));
|
||||||
static Register registers[] = {receiver, name, r6, r7, r8};
|
static Register registers[] = {receiver, name, r6, r7, r8};
|
||||||
return registers;
|
return registers;
|
||||||
}
|
}
|
||||||
|
@ -63,7 +63,7 @@ Handle<Code> PropertyICCompiler::CompilePolymorphic(MapHandleList* maps,
|
|||||||
// Polymorphic keyed stores may use the map register
|
// Polymorphic keyed stores may use the map register
|
||||||
Register map_reg = scratch1();
|
Register map_reg = scratch1();
|
||||||
DCHECK(kind() != Code::KEYED_STORE_IC ||
|
DCHECK(kind() != Code::KEYED_STORE_IC ||
|
||||||
map_reg.is(ElementTransitionAndStoreDescriptor::MapRegister()));
|
map_reg.is(StoreTransitionDescriptor::MapRegister()));
|
||||||
|
|
||||||
int receiver_count = maps->length();
|
int receiver_count = maps->length();
|
||||||
int number_of_handled_maps = 0;
|
int number_of_handled_maps = 0;
|
||||||
|
@ -47,9 +47,6 @@ const Register StoreGlobalViaContextDescriptor::NameRegister() { return r6; }
|
|||||||
const Register StoreGlobalViaContextDescriptor::ValueRegister() { return r3; }
|
const Register StoreGlobalViaContextDescriptor::ValueRegister() { return r3; }
|
||||||
|
|
||||||
|
|
||||||
const Register ElementTransitionAndStoreDescriptor::MapRegister() { return r6; }
|
|
||||||
|
|
||||||
|
|
||||||
const Register InstanceofDescriptor::left() { return r3; }
|
const Register InstanceofDescriptor::left() { return r3; }
|
||||||
const Register InstanceofDescriptor::right() { return r4; }
|
const Register InstanceofDescriptor::right() { return r4; }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user