| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 V(SmiUntag) \ | 142 V(SmiUntag) \ |
| 143 V(StackCheck) \ | 143 V(StackCheck) \ |
| 144 V(StoreContextSlot) \ | 144 V(StoreContextSlot) \ |
| 145 V(StoreGlobal) \ | 145 V(StoreGlobal) \ |
| 146 V(StoreKeyedFastElement) \ | 146 V(StoreKeyedFastElement) \ |
| 147 V(StoreKeyedGeneric) \ | 147 V(StoreKeyedGeneric) \ |
| 148 V(StoreNamedField) \ | 148 V(StoreNamedField) \ |
| 149 V(StoreNamedGeneric) \ | 149 V(StoreNamedGeneric) \ |
| 150 V(StorePixelArrayElement) \ | 150 V(StorePixelArrayElement) \ |
| 151 V(StringCharCodeAt) \ | 151 V(StringCharCodeAt) \ |
| 152 V(StringCharFromCode) \ |
| 152 V(StringLength) \ | 153 V(StringLength) \ |
| 153 V(SubI) \ | 154 V(SubI) \ |
| 154 V(TaggedToI) \ | 155 V(TaggedToI) \ |
| 155 V(Throw) \ | 156 V(Throw) \ |
| 156 V(Typeof) \ | 157 V(Typeof) \ |
| 157 V(TypeofIs) \ | 158 V(TypeofIs) \ |
| 158 V(TypeofIsAndBranch) \ | 159 V(TypeofIsAndBranch) \ |
| 159 V(IsConstructCall) \ | 160 V(IsConstructCall) \ |
| 160 V(IsConstructCallAndBranch) \ | 161 V(IsConstructCallAndBranch) \ |
| 161 V(UnaryMathOperation) \ | 162 V(UnaryMathOperation) \ |
| (...skipping 1462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1624 } | 1625 } |
| 1625 | 1626 |
| 1626 DECLARE_CONCRETE_INSTRUCTION(StringCharCodeAt, "string-char-code-at") | 1627 DECLARE_CONCRETE_INSTRUCTION(StringCharCodeAt, "string-char-code-at") |
| 1627 DECLARE_HYDROGEN_ACCESSOR(StringCharCodeAt) | 1628 DECLARE_HYDROGEN_ACCESSOR(StringCharCodeAt) |
| 1628 | 1629 |
| 1629 LOperand* string() { return inputs_[0]; } | 1630 LOperand* string() { return inputs_[0]; } |
| 1630 LOperand* index() { return inputs_[1]; } | 1631 LOperand* index() { return inputs_[1]; } |
| 1631 }; | 1632 }; |
| 1632 | 1633 |
| 1633 | 1634 |
| 1635 class LStringCharFromCode: public LTemplateInstruction<1, 1, 0> { |
| 1636 public: |
| 1637 explicit LStringCharFromCode(LOperand* char_code) { |
| 1638 inputs_[0] = char_code; |
| 1639 } |
| 1640 |
| 1641 DECLARE_CONCRETE_INSTRUCTION(StringCharFromCode, "string-char-from-code") |
| 1642 DECLARE_HYDROGEN_ACCESSOR(StringCharFromCode) |
| 1643 |
| 1644 LOperand* char_code() { return inputs_[0]; } |
| 1645 }; |
| 1646 |
| 1647 |
| 1634 class LStringLength: public LTemplateInstruction<1, 1, 0> { | 1648 class LStringLength: public LTemplateInstruction<1, 1, 0> { |
| 1635 public: | 1649 public: |
| 1636 explicit LStringLength(LOperand* string) { | 1650 explicit LStringLength(LOperand* string) { |
| 1637 inputs_[0] = string; | 1651 inputs_[0] = string; |
| 1638 } | 1652 } |
| 1639 | 1653 |
| 1640 DECLARE_CONCRETE_INSTRUCTION(StringLength, "string-length") | 1654 DECLARE_CONCRETE_INSTRUCTION(StringLength, "string-length") |
| 1641 DECLARE_HYDROGEN_ACCESSOR(StringLength) | 1655 DECLARE_HYDROGEN_ACCESSOR(StringLength) |
| 1642 | 1656 |
| 1643 LOperand* string() { return inputs_[0]; } | 1657 LOperand* string() { return inputs_[0]; } |
| (...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2063 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2077 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2064 }; | 2078 }; |
| 2065 | 2079 |
| 2066 #undef DECLARE_HYDROGEN_ACCESSOR | 2080 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2067 #undef DECLARE_INSTRUCTION | 2081 #undef DECLARE_INSTRUCTION |
| 2068 #undef DECLARE_CONCRETE_INSTRUCTION | 2082 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2069 | 2083 |
| 2070 } } // namespace v8::int | 2084 } } // namespace v8::int |
| 2071 | 2085 |
| 2072 #endif // V8_X64_LITHIUM_X64_H_ | 2086 #endif // V8_X64_LITHIUM_X64_H_ |
| OLD | NEW |