Chromium Code Reviews| Index: src/arm/lithium-arm.h |
| diff --git a/src/arm/lithium-arm.h b/src/arm/lithium-arm.h |
| index a919a1d3bec6adf39acd0dac337cf32c869a3f99..0aa79a4b0ea150d36a92cb92e570f0128282e670 100644 |
| --- a/src/arm/lithium-arm.h |
| +++ b/src/arm/lithium-arm.h |
| @@ -179,7 +179,8 @@ class LCodeGen; |
| V(CheckMapValue) \ |
| V(LoadFieldByIndex) \ |
| V(DateField) \ |
| - V(WrapReceiver) |
| + V(WrapReceiver) \ |
| + V(Drop) |
| #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ |
| @@ -534,9 +535,15 @@ class LArgumentsLength: public LTemplateInstruction<1, 1, 0> { |
| class LArgumentsElements: public LTemplateInstruction<1, 0, 0> { |
| public: |
| - LArgumentsElements() { } |
| + explicit LArgumentsElements(bool from_inlined) |
|
Kevin Millikin (Chromium)
2012/04/11 12:54:41
The flag could be gotten from the hydrogen_value()
|
| + : from_inlined_(from_inlined) { } |
| + |
| + bool from_inlined() const { return from_inlined_; } |
| DECLARE_CONCRETE_INSTRUCTION(ArgumentsElements, "arguments-elements") |
| + |
| + private: |
| + bool from_inlined_; |
| }; |
| @@ -1378,6 +1385,19 @@ class LPushArgument: public LTemplateInstruction<0, 1, 0> { |
| }; |
| +class LDrop: public LTemplateInstruction<0, 0, 0> { |
| + public: |
| + explicit LDrop(int count) : count_(count) { } |
| + |
| + int count() const { return count_; } |
| + |
| + DECLARE_CONCRETE_INSTRUCTION(Drop, "drop") |
| + |
| + private: |
| + int count_; |
| +}; |
| + |
| + |
| class LThisFunction: public LTemplateInstruction<1, 0, 0> { |
| public: |
| DECLARE_CONCRETE_INSTRUCTION(ThisFunction, "this-function") |