Commit 054b737e authored by yangguo@chromium.org's avatar yangguo@chromium.org

MIPS: Fixed a RecordWrite call in the FullCodeGenerator.

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
parent 5c327225
......@@ -1500,9 +1500,7 @@ void FullCodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) {
// 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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment