Revision: 11523
Author: [email protected]
Date: Mon May 7 10:31:14 2012
Log: MIPS: Fixed illegal instruction use on Loongson in code for
Math.random().
BUG=v8:2115
TEST=mjsunit/string-case,mjsunit/regress/regress-110509,mjsunit/math-floor
Review URL: https://chromiumcodereview.appspot.com/10383044
Patch from Akos Palfi <[email protected]>.
http://code.google.com/p/v8/source/detail?r=11523
Modified:
/branches/bleeding_edge/src/mips/lithium-codegen-mips.cc
=======================================
--- /branches/bleeding_edge/src/mips/lithium-codegen-mips.cc Thu May 3
08:13:04 2012
+++ /branches/bleeding_edge/src/mips/lithium-codegen-mips.cc Mon May 7
10:31:14 2012
@@ -3225,7 +3225,7 @@
// state[0] = 18273 * (state[0] & 0xFFFF) + (state[0] >> 16)
__ And(a3, a1, Operand(0xFFFF));
__ li(t0, Operand(18273));
- __ mul(a3, a3, t0);
+ __ Mul(a3, a3, t0);
__ srl(a1, a1, 16);
__ Addu(a1, a3, a1);
// Save state[0].
@@ -3234,7 +3234,7 @@
// state[1] = 36969 * (state[1] & 0xFFFF) + (state[1] >> 16)
__ And(a3, a0, Operand(0xFFFF));
__ li(t0, Operand(36969));
- __ mul(a3, a3, t0);
+ __ Mul(a3, a3, t0);
__ srl(a0, a0, 16),
__ Addu(a0, a3, a0);
// Save state[1].
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev