| 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 1665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1676 } | 1676 } |
| 1677 | 1677 |
| 1678 DECLARE_CONCRETE_INSTRUCTION(StringAdd, "string-add") | 1678 DECLARE_CONCRETE_INSTRUCTION(StringAdd, "string-add") |
| 1679 DECLARE_HYDROGEN_ACCESSOR(StringAdd) | 1679 DECLARE_HYDROGEN_ACCESSOR(StringAdd) |
| 1680 | 1680 |
| 1681 LOperand* left() { return inputs_[0]; } | 1681 LOperand* left() { return inputs_[0]; } |
| 1682 LOperand* right() { return inputs_[1]; } | 1682 LOperand* right() { return inputs_[1]; } |
| 1683 }; | 1683 }; |
| 1684 | 1684 |
| 1685 | 1685 |
| 1686 class LStringCharCodeAt: public LTemplateInstruction<1, 2, 0> { | 1686 class LStringCharCodeAt: public LTemplateInstruction<1, 2, 1> { |
| 1687 public: | 1687 public: |
| 1688 LStringCharCodeAt(LOperand* string, LOperand* index) { | 1688 LStringCharCodeAt(LOperand* string, LOperand* index, LOperand* temp) { |
| 1689 inputs_[0] = string; | 1689 inputs_[0] = string; |
| 1690 inputs_[1] = index; | 1690 inputs_[1] = index; |
| 1691 temps_[0] = temp; |
| 1691 } | 1692 } |
| 1692 | 1693 |
| 1693 DECLARE_CONCRETE_INSTRUCTION(StringCharCodeAt, "string-char-code-at") | 1694 DECLARE_CONCRETE_INSTRUCTION(StringCharCodeAt, "string-char-code-at") |
| 1694 DECLARE_HYDROGEN_ACCESSOR(StringCharCodeAt) | 1695 DECLARE_HYDROGEN_ACCESSOR(StringCharCodeAt) |
| 1695 | 1696 |
| 1696 LOperand* string() { return inputs_[0]; } | 1697 LOperand* string() { return inputs_[0]; } |
| 1697 LOperand* index() { return inputs_[1]; } | 1698 LOperand* index() { return inputs_[1]; } |
| 1698 }; | 1699 }; |
| 1699 | 1700 |
| 1700 | 1701 |
| (...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2180 | 2181 |
| 2181 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2182 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2182 }; | 2183 }; |
| 2183 | 2184 |
| 2184 #undef DECLARE_HYDROGEN_ACCESSOR | 2185 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2185 #undef DECLARE_CONCRETE_INSTRUCTION | 2186 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2186 | 2187 |
| 2187 } } // namespace v8::int | 2188 } } // namespace v8::int |
| 2188 | 2189 |
| 2189 #endif // V8_X64_LITHIUM_X64_H_ | 2190 #endif // V8_X64_LITHIUM_X64_H_ |
| OLD | NEW |