Index: src/ia32/lithium-ia32.cc |
diff --git a/src/ia32/lithium-ia32.cc b/src/ia32/lithium-ia32.cc |
index 7329660e5898291c4456018ba6523ac121074615..9b61870781a3a56fb36537fd7b67a926cb64e162 100644 |
--- a/src/ia32/lithium-ia32.cc |
+++ b/src/ia32/lithium-ia32.cc |
@@ -1895,7 +1895,7 @@ LInstruction* LChunkBuilder::DoLoadKeyedSpecializedArrayElement( |
array_type == kExternalDoubleArray))); |
ASSERT(instr->key()->representation().IsInteger32()); |
LOperand* external_pointer = UseRegister(instr->external_pointer()); |
- LOperand* key = UseRegister(instr->key()); |
+ LOperand* key = UseRegisterOrConstant(instr->key()); |
LLoadKeyedSpecializedArrayElement* result = |
new LLoadKeyedSpecializedArrayElement(external_pointer, |
key); |
@@ -1950,7 +1950,7 @@ LInstruction* LChunkBuilder::DoStoreKeyedSpecializedArrayElement( |
ASSERT(instr->key()->representation().IsInteger32()); |
LOperand* external_pointer = UseRegister(instr->external_pointer()); |
- LOperand* key = UseRegister(instr->key()); |
+ LOperand* key = UseRegisterOrConstant(instr->key()); |
LOperand* temp = NULL; |
if (array_type == kExternalPixelArray) { |