| Index: src/mips/lithium-mips.cc
|
| diff --git a/src/mips/lithium-mips.cc b/src/mips/lithium-mips.cc
|
| index 9476f4def9d7909c7f0483a2a69375665d97c4ef..4dc80226f295efd8850efa45c319867cffb4ff90 100644
|
| --- a/src/mips/lithium-mips.cc
|
| +++ b/src/mips/lithium-mips.cc
|
| @@ -1624,9 +1624,13 @@ LInstruction* LChunkBuilder::DoPower(HPower* instr) {
|
| LInstruction* LChunkBuilder::DoRandom(HRandom* instr) {
|
| ASSERT(instr->representation().IsDouble());
|
| ASSERT(instr->global_object()->representation().IsTagged());
|
| - LOperand* global_object = UseFixed(instr->global_object(), a0);
|
| - LRandom* result = new(zone()) LRandom(global_object);
|
| - return MarkAsCall(DefineFixedDouble(result, f0), instr);
|
| + LOperand* global_object = UseTempRegister(instr->global_object());
|
| + LOperand* scratch = TempRegister();
|
| + LOperand* scratch2 = TempRegister();
|
| + LOperand* scratch3 = TempRegister();
|
| + LRandom* result = new(zone()) LRandom(
|
| + global_object, scratch, scratch2, scratch3);
|
| + return DefineFixedDouble(result, f0);
|
| }
|
|
|
|
|
|
|