| Index: src/ia32/lithium-ia32.h
|
| diff --git a/src/ia32/lithium-ia32.h b/src/ia32/lithium-ia32.h
|
| index d96764f3b5edbe465a97a9f57cae60a25a36457c..3a609c991a10b5df94ea3f5ef7953fead5fd4a60 100644
|
| --- a/src/ia32/lithium-ia32.h
|
| +++ b/src/ia32/lithium-ia32.h
|
| @@ -1462,13 +1462,22 @@ class LPower V8_FINAL : public LTemplateInstruction<1, 2, 0> {
|
| };
|
|
|
|
|
| -class LRandom V8_FINAL : public LTemplateInstruction<1, 1, 0> {
|
| +class LRandom V8_FINAL : public LTemplateInstruction<1, 1, 3> {
|
| public:
|
| - explicit LRandom(LOperand* global_object) {
|
| + 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() { return inputs_[0]; }
|
| + 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)
|
|
|