Index: src/ia32/macro-assembler-ia32.cc |
=================================================================== |
--- src/ia32/macro-assembler-ia32.cc (revision 2497) |
+++ src/ia32/macro-assembler-ia32.cc (working copy) |
@@ -79,7 +79,7 @@ |
// Add the page header, array header, and array body size to the page |
// address. |
masm->add(Operand(object), Immediate(Page::kObjectStartOffset |
- + Array::kHeaderSize)); |
+ + FixedArray::kHeaderSize)); |
masm->add(object, Operand(scratch)); |
@@ -199,9 +199,10 @@ |
lea(dst, Operand(object, offset)); |
} else { |
// array access: calculate the destination address in the same manner as |
- // KeyedStoreIC::GenerateGeneric |
- lea(dst, |
- Operand(object, dst, times_2, Array::kHeaderSize - kHeapObjectTag)); |
+ // KeyedStoreIC::GenerateGeneric. Multiply a smi by 2 to get an offset |
+ // into an array of words. |
+ lea(dst, Operand(object, dst, times_2, |
+ FixedArray::kHeaderSize - kHeapObjectTag)); |
} |
// If we are already generating a shared stub, not inlining the |
// record write code isn't going to save us any memory. |