Index: src/arm/lithium-codegen-arm.cc |
diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc |
index f6750a299d9434201c7986c0d06bae43e1aad6a4..cc3262a055b65ff8119900f2a6950109877f302f 100644 |
--- a/src/arm/lithium-codegen-arm.cc |
+++ b/src/arm/lithium-codegen-arm.cc |
@@ -3363,7 +3363,7 @@ void LCodeGen::DoStoreKeyedFastElement(LStoreKeyedFastElement* instr) { |
if (instr->hydrogen()->NeedsWriteBarrier()) { |
// Compute address of modified element and store it into key register. |
- __ add(key, scratch, Operand(FixedArray::kHeaderSize)); |
+ __ add(key, scratch, Operand(FixedArray::kHeaderSize - 1)); |
Erik Corry
2011/10/05 10:48:20
Instead of 1 how about kHeapObjectTag?
|
__ RecordWrite(elements, key, value, kLRHasBeenSaved, kSaveFPRegs); |
} |
} |