Index: src/ia32/stub-cache-ia32.cc |
=================================================================== |
--- src/ia32/stub-cache-ia32.cc (revision 2493) |
+++ src/ia32/stub-cache-ia32.cc (working copy) |
@@ -266,15 +266,13 @@ |
__ mov(dst, FieldOperand(src, offset)); |
} else { |
// Calculate the offset into the properties array. |
- int offset = index * kPointerSize + Array::kHeaderSize; |
+ int offset = index * kPointerSize + FixedArray::kHeaderSize; |
__ mov(dst, FieldOperand(src, JSObject::kPropertiesOffset)); |
__ mov(dst, FieldOperand(dst, offset)); |
} |
} |
- |
- |
void StubCompiler::GenerateLoadMiss(MacroAssembler* masm, Code::Kind kind) { |
ASSERT(kind == Code::LOAD_IC || kind == Code::KEYED_LOAD_IC); |
Code* code = NULL; |
@@ -349,7 +347,7 @@ |
__ RecordWrite(receiver_reg, offset, name_reg, scratch); |
} else { |
// Write to the properties array. |
- int offset = index * kPointerSize + Array::kHeaderSize; |
+ int offset = index * kPointerSize + FixedArray::kHeaderSize; |
// Get the properties array (optimistically). |
__ mov(scratch, FieldOperand(receiver_reg, JSObject::kPropertiesOffset)); |
__ mov(FieldOperand(scratch, offset), eax); |