This caused an occasional failure in the Threading2 cctest running in debug mode with --always-opt.
BUG=
TEST=
Review URL: http://codereview.chromium.org/
7779007
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9054
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
// Update the write barrier for the array store with v0 as the scratch
// register.
- __ li(a2, Operand(offset));
- // TODO(PJ): double check this RecordWrite call.
- __ RecordWrite(a1, a2, result_register());
+ __ RecordWrite(a1, Operand(offset), a2, result_register());
PrepareForBailoutForId(expr->GetIdForElement(i), NO_REGISTERS);
}