Reviewers: danno, Paul Lind, kisg,
Message:
This patch fixes issue: http://code.google.com/p/v8/issues/detail?id=2115
Description:
[MIPS] Fixed illegal instrucion use on Loongson in code for Math.random().
BUG=
TEST=
Please review this at https://chromiumcodereview.appspot.com/10383044/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M src/mips/lithium-codegen-mips.cc
Index: src/mips/lithium-codegen-mips.cc
diff --git a/src/mips/lithium-codegen-mips.cc
b/src/mips/lithium-codegen-mips.cc
index
762e15cee1eb59c45a7d3110ef491c5fb687f852..122fd1ef4c29aca625dcdda34e0e6ea7ffc72f5c
100644
--- a/src/mips/lithium-codegen-mips.cc
+++ b/src/mips/lithium-codegen-mips.cc
@@ -3225,7 +3225,7 @@ void LCodeGen::DoRandom(LRandom* instr) {
// 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 @@ void LCodeGen::DoRandom(LRandom* instr) {
// 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