| Index: src/ia32/lithium-codegen-ia32.cc
|
| diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc
|
| index 7468d310a3d7721b01495aa16294a3aa79ff7ee3..c4d39a08341513e98e3a790f2a58a742e285dab4 100644
|
| --- a/src/ia32/lithium-codegen-ia32.cc
|
| +++ b/src/ia32/lithium-codegen-ia32.cc
|
| @@ -2751,15 +2751,12 @@ void LCodeGen::DoAccessArgumentsAt(LAccessArgumentsAt* instr) {
|
|
|
| void LCodeGen::DoLoadKeyedExternalArray(LLoadKeyed* instr) {
|
| ElementsKind elements_kind = instr->elements_kind();
|
| - LOperand* key = instr->key();
|
| - if (!key->IsConstantOperand() &&
|
| - ExternalArrayOpRequiresTemp(instr->hydrogen()->key()->representation(),
|
| - elements_kind)) {
|
| - __ SmiUntag(ToRegister(key));
|
| + if (ExternalArrayOpRequiresTemp<HLoadKeyed>(instr->hydrogen())) {
|
| + __ SmiUntag(ToRegister(instr->key()));
|
| }
|
| Operand operand(BuildFastArrayOperand(
|
| instr->elements(),
|
| - key,
|
| + instr->key(),
|
| instr->hydrogen()->key()->representation(),
|
| elements_kind,
|
| 0,
|
| @@ -3829,15 +3826,12 @@ void LCodeGen::DoBoundsCheck(LBoundsCheck* instr) {
|
|
|
| void LCodeGen::DoStoreKeyedExternalArray(LStoreKeyed* instr) {
|
| ElementsKind elements_kind = instr->elements_kind();
|
| - LOperand* key = instr->key();
|
| - if (!key->IsConstantOperand() &&
|
| - ExternalArrayOpRequiresTemp(instr->hydrogen()->key()->representation(),
|
| - elements_kind)) {
|
| - __ SmiUntag(ToRegister(key));
|
| + if (ExternalArrayOpRequiresTemp<HStoreKeyed>(instr->hydrogen())) {
|
| + __ SmiUntag(ToRegister(instr->key()));
|
| }
|
| Operand operand(BuildFastArrayOperand(
|
| instr->elements(),
|
| - key,
|
| + instr->key(),
|
| instr->hydrogen()->key()->representation(),
|
| elements_kind,
|
| 0,
|
|
|