Index: src/mips/lithium-mips.h |
diff --git a/src/mips/lithium-mips.h b/src/mips/lithium-mips.h |
index 2996c78ba4d204fbc5aaf62695312d3e3137d2d9..452963b16968739d3a40c57b55bc2a7e01f3441c 100644 |
--- a/src/mips/lithium-mips.h |
+++ b/src/mips/lithium-mips.h |
@@ -154,6 +154,7 @@ class LCodeGen; |
V(Parameter) \ |
V(Power) \ |
V(PushArgument) \ |
+ V(Random) \ |
V(RegExpLiteral) \ |
V(Return) \ |
V(SeqStringGetChar) \ |
@@ -1460,6 +1461,28 @@ class LPower V8_FINAL : public LTemplateInstruction<1, 2, 0> { |
}; |
+class LRandom V8_FINAL : public LTemplateInstruction<1, 1, 3> { |
+ public: |
+ LRandom(LOperand* global_object, |
+ LOperand* scratch, |
+ LOperand* scratch2, |
+ LOperand* scratch3) { |
+ inputs_[0] = global_object; |
+ temps_[0] = scratch; |
+ temps_[1] = scratch2; |
+ temps_[2] = scratch3; |
+ } |
+ |
+ LOperand* global_object() const { return inputs_[0]; } |
+ LOperand* scratch() const { return temps_[0]; } |
+ LOperand* scratch2() const { return temps_[1]; } |
+ LOperand* scratch3() const { return temps_[2]; } |
+ |
+ DECLARE_CONCRETE_INSTRUCTION(Random, "random") |
+ DECLARE_HYDROGEN_ACCESSOR(Random) |
+}; |
+ |
+ |
class LArithmeticD V8_FINAL : public LTemplateInstruction<1, 2, 0> { |
public: |
LArithmeticD(Token::Value op, LOperand* left, LOperand* right) |