Chromium Code Reviews| Index: src/arm/lithium-arm.h |
| diff --git a/src/arm/lithium-arm.h b/src/arm/lithium-arm.h |
| index d26643a6ab2e8d1b330b5a631f0c622358d1d0e4..a33bdd2e899cf85945061cfdeab963ca8a978c99 100644 |
| --- a/src/arm/lithium-arm.h |
| +++ b/src/arm/lithium-arm.h |
| @@ -172,7 +172,12 @@ class LCodeGen; |
| V(TypeofIsAndBranch) \ |
| V(UnaryMathOperation) \ |
| V(UnknownOSRValue) \ |
| - V(ValueOf) |
| + V(ValueOf) \ |
| + V(ForInPrepareMap) \ |
| + V(ForInCacheArray) \ |
| + V(CheckMapValue) \ |
| + V(LoadFieldByIndex) |
| + |
| #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ |
| @@ -2064,6 +2069,62 @@ class LIn: public LTemplateInstruction<1, 2, 0> { |
| }; |
| +class LForInPrepareMap: public LTemplateInstruction<1, 1, 0> { |
| + public: |
| + LForInPrepareMap(LOperand* object) { |
| + inputs_[0] = object; |
| + } |
| + |
| + LOperand* object() { return inputs_[0]; } |
| + |
| + DECLARE_CONCRETE_INSTRUCTION(ForInPrepareMap, "for-in-prepare-map") |
| +}; |
| + |
| + |
| +class LForInCacheArray: public LTemplateInstruction<1, 1, 0> { |
| + public: |
| + LForInCacheArray(LOperand* map) { |
| + inputs_[0] = map; |
| + } |
| + |
| + LOperand* map() { return inputs_[0]; } |
| + |
| + DECLARE_CONCRETE_INSTRUCTION(ForInCacheArray, "for-in-cache-array") |
| + |
| + int idx() { |
| + return HForInCacheArray::cast(this->hydrogen_value())->idx(); |
| + } |
| +}; |
| + |
| + |
| +class LCheckMapValue: public LTemplateInstruction<1, 2, 0> { |
|
fschneider
2012/02/22 10:16:45
Since there is no output operand: <0, 2, 0>
|
| + public: |
| + LCheckMapValue(LOperand* value, LOperand* map) { |
| + inputs_[0] = value; |
| + inputs_[1] = map; |
| + } |
| + |
| + LOperand* value() { return inputs_[0]; } |
| + LOperand* map() { return inputs_[1]; } |
| + |
| + DECLARE_CONCRETE_INSTRUCTION(CheckMapValue, "check-map-value") |
| +}; |
| + |
| + |
| +class LLoadFieldByIndex: public LTemplateInstruction<1, 2, 0> { |
| + public: |
| + LLoadFieldByIndex(LOperand* object, LOperand* index) { |
| + inputs_[0] = object; |
| + inputs_[1] = index; |
| + } |
| + |
| + LOperand* object() { return inputs_[0]; } |
| + LOperand* index() { return inputs_[1]; } |
| + |
| + DECLARE_CONCRETE_INSTRUCTION(LoadFieldByIndex, "load-field-by-index") |
| +}; |
| + |
| + |
| class LChunkBuilder; |
| class LChunk: public ZoneObject { |
| public: |