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:
mbrandy 2015-07-23 09:16:12 -07:00 committed by Commit bot
parent 9b032dc985
commit 6594c09fd3
3 changed files with 2 additions and 5 deletions

View File

@ -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;
} }

View File

@ -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;

View File

@ -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; }