Index: src/mips/lithium-mips.cc |
diff --git a/src/mips/lithium-mips.cc b/src/mips/lithium-mips.cc |
index 34e5838557a0ee528fad7b574c42be8aad570f08..5dbef8d5b68faae93eecb0355ca14f6c44231a53 100644 |
--- a/src/mips/lithium-mips.cc |
+++ b/src/mips/lithium-mips.cc |
@@ -1640,6 +1640,19 @@ LInstruction* LChunkBuilder::DoPower(HPower* instr) { |
} |
+LInstruction* LChunkBuilder::DoRandom(HRandom* instr) { |
+ ASSERT(instr->representation().IsDouble()); |
+ ASSERT(instr->global_object()->representation().IsTagged()); |
+ 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); |
+} |
+ |
+ |
LInstruction* LChunkBuilder::DoCompareGeneric(HCompareGeneric* instr) { |
ASSERT(instr->left()->representation().IsTagged()); |
ASSERT(instr->right()->representation().IsTagged()); |