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 1677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1688 | 1688 |
1689 DECLARE_CONCRETE_INSTRUCTION(StringAdd, "string-add") | 1689 DECLARE_CONCRETE_INSTRUCTION(StringAdd, "string-add") |
1690 DECLARE_HYDROGEN_ACCESSOR(StringAdd) | 1690 DECLARE_HYDROGEN_ACCESSOR(StringAdd) |
1691 | 1691 |
1692 LOperand* left() { return inputs_[0]; } | 1692 LOperand* left() { return inputs_[0]; } |
1693 LOperand* right() { return inputs_[1]; } | 1693 LOperand* right() { return inputs_[1]; } |
1694 }; | 1694 }; |
1695 | 1695 |
1696 | 1696 |
1697 | 1697 |
1698 class LStringCharCodeAt: public LTemplateInstruction<1, 2, 0> { | 1698 class LStringCharCodeAt: public LTemplateInstruction<1, 2, 1> { |
1699 public: | 1699 public: |
1700 LStringCharCodeAt(LOperand* string, LOperand* index) { | 1700 LStringCharCodeAt(LOperand* string, LOperand* index, LOperand* temp) { |
1701 inputs_[0] = string; | 1701 inputs_[0] = string; |
1702 inputs_[1] = index; | 1702 inputs_[1] = index; |
| 1703 temps_[0] = temp; |
1703 } | 1704 } |
1704 | 1705 |
1705 DECLARE_CONCRETE_INSTRUCTION(StringCharCodeAt, "string-char-code-at") | 1706 DECLARE_CONCRETE_INSTRUCTION(StringCharCodeAt, "string-char-code-at") |
1706 DECLARE_HYDROGEN_ACCESSOR(StringCharCodeAt) | 1707 DECLARE_HYDROGEN_ACCESSOR(StringCharCodeAt) |
1707 | 1708 |
1708 LOperand* string() { return inputs_[0]; } | 1709 LOperand* string() { return inputs_[0]; } |
1709 LOperand* index() { return inputs_[1]; } | 1710 LOperand* index() { return inputs_[1]; } |
1710 }; | 1711 }; |
1711 | 1712 |
1712 | 1713 |
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2197 | 2198 |
2198 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2199 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2199 }; | 2200 }; |
2200 | 2201 |
2201 #undef DECLARE_HYDROGEN_ACCESSOR | 2202 #undef DECLARE_HYDROGEN_ACCESSOR |
2202 #undef DECLARE_CONCRETE_INSTRUCTION | 2203 #undef DECLARE_CONCRETE_INSTRUCTION |
2203 | 2204 |
2204 } } // namespace v8::internal | 2205 } } // namespace v8::internal |
2205 | 2206 |
2206 #endif // V8_ARM_LITHIUM_ARM_H_ | 2207 #endif // V8_ARM_LITHIUM_ARM_H_ |
OLD | NEW |