| Index: src/hydrogen-instructions.h
|
| diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h
|
| index f177c95fa641fab512f9bd4c66cc07f3b5963438..51108683ea91880eefeb436126ec4b5262b4700f 100644
|
| --- a/src/hydrogen-instructions.h
|
| +++ b/src/hydrogen-instructions.h
|
| @@ -146,6 +146,7 @@ class LChunkBuilder;
|
| V(Parameter) \
|
| V(Power) \
|
| V(PushArgument) \
|
| + V(Random) \
|
| V(RegExpLiteral) \
|
| V(Return) \
|
| V(Sar) \
|
| @@ -2998,6 +2999,23 @@ class HPower: public HTemplateInstruction<2> {
|
| };
|
|
|
|
|
| +class HRandom: public HTemplateInstruction<1> {
|
| + public:
|
| + explicit HRandom(HValue* global_object) {
|
| + SetOperandAt(0, global_object);
|
| + set_representation(Representation::Double());
|
| + }
|
| +
|
| + HValue* global_object() { return OperandAt(0); }
|
| +
|
| + virtual Representation RequiredInputRepresentation(int index) {
|
| + return Representation::Tagged();
|
| + }
|
| +
|
| + DECLARE_CONCRETE_INSTRUCTION(Random)
|
| +};
|
| +
|
| +
|
| class HAdd: public HArithmeticBinaryOperation {
|
| public:
|
| HAdd(HValue* context, HValue* left, HValue* right)
|
|
|