OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_X87_LITHIUM_X87_H_ | 5 #ifndef V8_X87_LITHIUM_X87_H_ |
6 #define V8_X87_LITHIUM_X87_H_ | 6 #define V8_X87_LITHIUM_X87_H_ |
7 | 7 |
8 #include "src/hydrogen.h" | 8 #include "src/hydrogen.h" |
9 #include "src/lithium-allocator.h" | 9 #include "src/lithium-allocator.h" |
10 #include "src/lithium.h" | 10 #include "src/lithium.h" |
(...skipping 1781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1792 | 1792 |
1793 int count() const { return count_; } | 1793 int count() const { return count_; } |
1794 | 1794 |
1795 DECLARE_CONCRETE_INSTRUCTION(Drop, "drop") | 1795 DECLARE_CONCRETE_INSTRUCTION(Drop, "drop") |
1796 | 1796 |
1797 private: | 1797 private: |
1798 int count_; | 1798 int count_; |
1799 }; | 1799 }; |
1800 | 1800 |
1801 | 1801 |
1802 class LStoreCodeEntry V8_FINAL: public LTemplateInstruction<0, 1, 1> { | 1802 class LStoreCodeEntry V8_FINAL: public LTemplateInstruction<0, 2, 0> { |
1803 public: | 1803 public: |
1804 LStoreCodeEntry(LOperand* function, LOperand* code_object) { | 1804 LStoreCodeEntry(LOperand* function, LOperand* code_object) { |
1805 inputs_[0] = function; | 1805 inputs_[0] = function; |
1806 temps_[0] = code_object; | 1806 inputs_[1] = code_object; |
1807 } | 1807 } |
1808 | 1808 |
1809 LOperand* function() { return inputs_[0]; } | 1809 LOperand* function() { return inputs_[0]; } |
1810 LOperand* code_object() { return temps_[0]; } | 1810 LOperand* code_object() { return inputs_[1]; } |
1811 | 1811 |
1812 virtual void PrintDataTo(StringStream* stream); | 1812 virtual void PrintDataTo(StringStream* stream); |
1813 | 1813 |
1814 DECLARE_CONCRETE_INSTRUCTION(StoreCodeEntry, "store-code-entry") | 1814 DECLARE_CONCRETE_INSTRUCTION(StoreCodeEntry, "store-code-entry") |
1815 DECLARE_HYDROGEN_ACCESSOR(StoreCodeEntry) | 1815 DECLARE_HYDROGEN_ACCESSOR(StoreCodeEntry) |
1816 }; | 1816 }; |
1817 | 1817 |
1818 | 1818 |
1819 class LInnerAllocatedObject V8_FINAL: public LTemplateInstruction<1, 2, 0> { | 1819 class LInnerAllocatedObject V8_FINAL: public LTemplateInstruction<1, 2, 0> { |
1820 public: | 1820 public: |
(...skipping 1058 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2879 | 2879 |
2880 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2880 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2881 }; | 2881 }; |
2882 | 2882 |
2883 #undef DECLARE_HYDROGEN_ACCESSOR | 2883 #undef DECLARE_HYDROGEN_ACCESSOR |
2884 #undef DECLARE_CONCRETE_INSTRUCTION | 2884 #undef DECLARE_CONCRETE_INSTRUCTION |
2885 | 2885 |
2886 } } // namespace v8::internal | 2886 } } // namespace v8::internal |
2887 | 2887 |
2888 #endif // V8_X87_LITHIUM_X87_H_ | 2888 #endif // V8_X87_LITHIUM_X87_H_ |
OLD | NEW |