Revision: 9054
Author:   [email protected]
Date:     Mon Aug 29 04:56:48 2011
Log:      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
http://code.google.com/p/v8/source/detail?r=9054

Modified:
 /branches/bleeding_edge/src/mips/full-codegen-mips.cc

=======================================
--- /branches/bleeding_edge/src/mips/full-codegen-mips.cc Mon Aug 29 00:07:39 2011 +++ /branches/bleeding_edge/src/mips/full-codegen-mips.cc Mon Aug 29 04:56:48 2011
@@ -1500,9 +1500,7 @@

     // 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);
   }

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to