Index: src/ia32/lithium-codegen-ia32.cc |
diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc |
index 9e4bada4f4d653ece4ecca4744f20c7cd48a103b..0e959217e062d06ebfff318fdd9af0a145c5f6d7 100644 |
--- a/src/ia32/lithium-codegen-ia32.cc |
+++ b/src/ia32/lithium-codegen-ia32.cc |
@@ -2035,7 +2035,10 @@ void LCodeGen::DoLoadKeyedFastElement(LLoadKeyedFastElement* instr) { |
ASSERT(result.is(elements)); |
// Load the result. |
- __ mov(result, FieldOperand(elements, key, times_4, FixedArray::kHeaderSize)); |
+ __ mov(result, FieldOperand(elements, |
+ key, |
+ times_pointer_size, |
+ FixedArray::kHeaderSize)); |
// Check for the hole value. |
__ cmp(result, Factory::the_hole_value()); |
@@ -2661,13 +2664,20 @@ void LCodeGen::DoStoreKeyedFastElement(LStoreKeyedFastElement* instr) { |
ToInteger32(const_operand) * kPointerSize + FixedArray::kHeaderSize; |
__ mov(FieldOperand(elements, offset), value); |
} else { |
- __ mov(FieldOperand(elements, key, times_4, FixedArray::kHeaderSize), |
+ __ mov(FieldOperand(elements, |
+ key, |
+ times_pointer_size, |
+ FixedArray::kHeaderSize), |
value); |
} |
if (instr->hydrogen()->NeedsWriteBarrier()) { |
// Compute address of modified element and store it into key register. |
- __ lea(key, FieldOperand(elements, key, times_4, FixedArray::kHeaderSize)); |
+ __ lea(key, |
+ FieldOperand(elements, |
+ key, |
+ times_pointer_size, |
+ FixedArray::kHeaderSize)); |
__ RecordWrite(elements, key, value); |
} |
} |