| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 V(SmiUntag) \ | 145 V(SmiUntag) \ |
| 146 V(StackCheck) \ | 146 V(StackCheck) \ |
| 147 V(StoreContextSlot) \ | 147 V(StoreContextSlot) \ |
| 148 V(StoreGlobalCell) \ | 148 V(StoreGlobalCell) \ |
| 149 V(StoreGlobalGeneric) \ | 149 V(StoreGlobalGeneric) \ |
| 150 V(StoreKeyedFastElement) \ | 150 V(StoreKeyedFastElement) \ |
| 151 V(StoreKeyedGeneric) \ | 151 V(StoreKeyedGeneric) \ |
| 152 V(StoreKeyedSpecializedArrayElement) \ | 152 V(StoreKeyedSpecializedArrayElement) \ |
| 153 V(StoreNamedField) \ | 153 V(StoreNamedField) \ |
| 154 V(StoreNamedGeneric) \ | 154 V(StoreNamedGeneric) \ |
| 155 V(StringAdd) \ |
| 155 V(StringCharCodeAt) \ | 156 V(StringCharCodeAt) \ |
| 156 V(StringCharFromCode) \ | 157 V(StringCharFromCode) \ |
| 157 V(StringLength) \ | 158 V(StringLength) \ |
| 158 V(SubI) \ | 159 V(SubI) \ |
| 159 V(TaggedToI) \ | 160 V(TaggedToI) \ |
| 160 V(Throw) \ | 161 V(Throw) \ |
| 161 V(ToFastProperties) \ | 162 V(ToFastProperties) \ |
| 162 V(Typeof) \ | 163 V(Typeof) \ |
| 163 V(TypeofIs) \ | 164 V(TypeofIs) \ |
| 164 V(TypeofIsAndBranch) \ | 165 V(TypeofIsAndBranch) \ |
| (...skipping 1534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1699 | 1700 |
| 1700 LOperand* external_pointer() { return inputs_[0]; } | 1701 LOperand* external_pointer() { return inputs_[0]; } |
| 1701 LOperand* key() { return inputs_[1]; } | 1702 LOperand* key() { return inputs_[1]; } |
| 1702 LOperand* value() { return inputs_[2]; } | 1703 LOperand* value() { return inputs_[2]; } |
| 1703 ExternalArrayType array_type() const { | 1704 ExternalArrayType array_type() const { |
| 1704 return hydrogen()->array_type(); | 1705 return hydrogen()->array_type(); |
| 1705 } | 1706 } |
| 1706 }; | 1707 }; |
| 1707 | 1708 |
| 1708 | 1709 |
| 1710 class LStringAdd: public LTemplateInstruction<1, 2, 0> { |
| 1711 public: |
| 1712 LStringAdd(LOperand* left, LOperand* right) { |
| 1713 inputs_[0] = left; |
| 1714 inputs_[1] = right; |
| 1715 } |
| 1716 |
| 1717 DECLARE_CONCRETE_INSTRUCTION(StringAdd, "string-add") |
| 1718 DECLARE_HYDROGEN_ACCESSOR(StringAdd) |
| 1719 |
| 1720 LOperand* left() { return inputs_[0]; } |
| 1721 LOperand* right() { return inputs_[1]; } |
| 1722 }; |
| 1723 |
| 1724 |
| 1725 |
| 1709 class LStringCharCodeAt: public LTemplateInstruction<1, 2, 0> { | 1726 class LStringCharCodeAt: public LTemplateInstruction<1, 2, 0> { |
| 1710 public: | 1727 public: |
| 1711 LStringCharCodeAt(LOperand* string, LOperand* index) { | 1728 LStringCharCodeAt(LOperand* string, LOperand* index) { |
| 1712 inputs_[0] = string; | 1729 inputs_[0] = string; |
| 1713 inputs_[1] = index; | 1730 inputs_[1] = index; |
| 1714 } | 1731 } |
| 1715 | 1732 |
| 1716 DECLARE_CONCRETE_INSTRUCTION(StringCharCodeAt, "string-char-code-at") | 1733 DECLARE_CONCRETE_INSTRUCTION(StringCharCodeAt, "string-char-code-at") |
| 1717 DECLARE_HYDROGEN_ACCESSOR(StringCharCodeAt) | 1734 DECLARE_HYDROGEN_ACCESSOR(StringCharCodeAt) |
| 1718 | 1735 |
| (...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2173 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2190 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2174 }; | 2191 }; |
| 2175 | 2192 |
| 2176 #undef DECLARE_HYDROGEN_ACCESSOR | 2193 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2177 #undef DECLARE_INSTRUCTION | 2194 #undef DECLARE_INSTRUCTION |
| 2178 #undef DECLARE_CONCRETE_INSTRUCTION | 2195 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2179 | 2196 |
| 2180 } } // namespace v8::internal | 2197 } } // namespace v8::internal |
| 2181 | 2198 |
| 2182 #endif // V8_ARM_LITHIUM_ARM_H_ | 2199 #endif // V8_ARM_LITHIUM_ARM_H_ |
| OLD | NEW |