Index: src/x64/lithium-x64.cc |
diff --git a/src/x64/lithium-x64.cc b/src/x64/lithium-x64.cc |
index ac48b09af9c23219295064906f76b785f0bcf113..d9daaacca0bbbdbb29f79756ebb330d1ddf5524e 100644 |
--- a/src/x64/lithium-x64.cc |
+++ b/src/x64/lithium-x64.cc |
@@ -1613,9 +1613,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(), arg_reg_1); |
- LRandom* result = new(zone()) LRandom(global_object); |
- return MarkAsCall(DefineFixedDouble(result, xmm1), 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, xmm1); |
} |