| Index: src/a64/lithium-a64.h
|
| diff --git a/src/a64/lithium-a64.h b/src/a64/lithium-a64.h
|
| index 84659552e9851b859bd01c8330046193853ab1a5..4096c0e2a306f594fa898b18541ec56e783affb8 100644
|
| --- a/src/a64/lithium-a64.h
|
| +++ b/src/a64/lithium-a64.h
|
| @@ -158,6 +158,7 @@ class LCodeGen;
|
| V(Parameter) \
|
| V(Power) \
|
| V(PushArgument) \
|
| + V(Random) \
|
| V(RegExpLiteral) \
|
| V(Return) \
|
| V(SeqStringSetChar) \
|
| @@ -612,6 +613,19 @@ class LAllocate: public LTemplateInstruction<1, 1, 2> {
|
| };
|
|
|
|
|
| +class LRandom: public LTemplateInstruction<1, 1, 0> {
|
| + public:
|
| + explicit LRandom(LOperand* global_object) {
|
| + inputs_[0] = global_object;
|
| + }
|
| +
|
| + LOperand* global_object() { return inputs_[0]; }
|
| +
|
| + DECLARE_CONCRETE_INSTRUCTION(Random, "random")
|
| + DECLARE_HYDROGEN_ACCESSOR(Random)
|
| +};
|
| +
|
| +
|
| class LRegExpLiteral: public LTemplateInstruction<1, 0, 0> {
|
| public:
|
| DECLARE_CONCRETE_INSTRUCTION(RegExpLiteral, "regexp-literal")
|
|
|