Index: src/ia32/lithium-codegen-ia32.cc |
diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc |
index dccb55ff68f6f3c57d49fbe669bfcb8eb642d6a7..74baa28a25ef3619d2eb78d8706ad3d060e174c8 100644 |
--- a/src/ia32/lithium-codegen-ia32.cc |
+++ b/src/ia32/lithium-codegen-ia32.cc |
@@ -2773,15 +2773,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, |
@@ -3851,15 +3848,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, |