| 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 V(SmiUntag) \ | 144 V(SmiUntag) \ |
| 145 V(StackCheck) \ | 145 V(StackCheck) \ |
| 146 V(StoreContextSlot) \ | 146 V(StoreContextSlot) \ |
| 147 V(StoreGlobal) \ | 147 V(StoreGlobal) \ |
| 148 V(StoreKeyedFastElement) \ | 148 V(StoreKeyedFastElement) \ |
| 149 V(StoreKeyedGeneric) \ | 149 V(StoreKeyedGeneric) \ |
| 150 V(StoreNamedField) \ | 150 V(StoreNamedField) \ |
| 151 V(StoreNamedGeneric) \ | 151 V(StoreNamedGeneric) \ |
| 152 V(StorePixelArrayElement) \ | 152 V(StorePixelArrayElement) \ |
| 153 V(StringCharCodeAt) \ | 153 V(StringCharCodeAt) \ |
| 154 V(StringCharFromCode) \ |
| 154 V(StringLength) \ | 155 V(StringLength) \ |
| 155 V(SubI) \ | 156 V(SubI) \ |
| 156 V(TaggedToI) \ | 157 V(TaggedToI) \ |
| 157 V(Throw) \ | 158 V(Throw) \ |
| 158 V(Typeof) \ | 159 V(Typeof) \ |
| 159 V(TypeofIs) \ | 160 V(TypeofIs) \ |
| 160 V(TypeofIsAndBranch) \ | 161 V(TypeofIsAndBranch) \ |
| 161 V(UnaryMathOperation) \ | 162 V(UnaryMathOperation) \ |
| 162 V(UnknownOSRValue) \ | 163 V(UnknownOSRValue) \ |
| 163 V(ValueOf) | 164 V(ValueOf) |
| (...skipping 1544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1708 } | 1709 } |
| 1709 | 1710 |
| 1710 DECLARE_CONCRETE_INSTRUCTION(StringCharCodeAt, "string-char-code-at") | 1711 DECLARE_CONCRETE_INSTRUCTION(StringCharCodeAt, "string-char-code-at") |
| 1711 DECLARE_HYDROGEN_ACCESSOR(StringCharCodeAt) | 1712 DECLARE_HYDROGEN_ACCESSOR(StringCharCodeAt) |
| 1712 | 1713 |
| 1713 LOperand* string() { return inputs_[0]; } | 1714 LOperand* string() { return inputs_[0]; } |
| 1714 LOperand* index() { return inputs_[1]; } | 1715 LOperand* index() { return inputs_[1]; } |
| 1715 }; | 1716 }; |
| 1716 | 1717 |
| 1717 | 1718 |
| 1719 class LStringCharFromCode: public LTemplateInstruction<1, 1, 0> { |
| 1720 public: |
| 1721 explicit LStringCharFromCode(LOperand* char_code) { |
| 1722 inputs_[0] = char_code; |
| 1723 } |
| 1724 |
| 1725 DECLARE_CONCRETE_INSTRUCTION(StringCharFromCode, "string-char-from-code") |
| 1726 DECLARE_HYDROGEN_ACCESSOR(StringCharFromCode) |
| 1727 |
| 1728 LOperand* char_code() { return inputs_[0]; } |
| 1729 }; |
| 1730 |
| 1731 |
| 1718 class LStringLength: public LTemplateInstruction<1, 1, 0> { | 1732 class LStringLength: public LTemplateInstruction<1, 1, 0> { |
| 1719 public: | 1733 public: |
| 1720 explicit LStringLength(LOperand* string) { | 1734 explicit LStringLength(LOperand* string) { |
| 1721 inputs_[0] = string; | 1735 inputs_[0] = string; |
| 1722 } | 1736 } |
| 1723 | 1737 |
| 1724 DECLARE_CONCRETE_INSTRUCTION(StringLength, "string-length") | 1738 DECLARE_CONCRETE_INSTRUCTION(StringLength, "string-length") |
| 1725 DECLARE_HYDROGEN_ACCESSOR(StringLength) | 1739 DECLARE_HYDROGEN_ACCESSOR(StringLength) |
| 1726 | 1740 |
| 1727 LOperand* string() { return inputs_[0]; } | 1741 LOperand* string() { return inputs_[0]; } |
| (...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2136 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2150 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2137 }; | 2151 }; |
| 2138 | 2152 |
| 2139 #undef DECLARE_HYDROGEN_ACCESSOR | 2153 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2140 #undef DECLARE_INSTRUCTION | 2154 #undef DECLARE_INSTRUCTION |
| 2141 #undef DECLARE_CONCRETE_INSTRUCTION | 2155 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2142 | 2156 |
| 2143 } } // namespace v8::internal | 2157 } } // namespace v8::internal |
| 2144 | 2158 |
| 2145 #endif // V8_IA32_LITHIUM_IA32_H_ | 2159 #endif // V8_IA32_LITHIUM_IA32_H_ |
| OLD | NEW |