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_X64_LITHIUM_X64_H_ | 5 #ifndef V8_X64_LITHIUM_X64_H_ |
6 #define V8_X64_LITHIUM_X64_H_ | 6 #define V8_X64_LITHIUM_X64_H_ |
7 | 7 |
8 #include "src/hydrogen.h" | 8 #include "src/hydrogen.h" |
9 #include "src/lithium.h" | 9 #include "src/lithium.h" |
10 #include "src/lithium-allocator.h" | 10 #include "src/lithium-allocator.h" |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 V(IsObjectAndBranch) \ | 93 V(IsObjectAndBranch) \ |
94 V(IsStringAndBranch) \ | 94 V(IsStringAndBranch) \ |
95 V(IsSmiAndBranch) \ | 95 V(IsSmiAndBranch) \ |
96 V(IsUndetectableAndBranch) \ | 96 V(IsUndetectableAndBranch) \ |
97 V(Label) \ | 97 V(Label) \ |
98 V(LazyBailout) \ | 98 V(LazyBailout) \ |
99 V(LoadContextSlot) \ | 99 V(LoadContextSlot) \ |
100 V(LoadRoot) \ | 100 V(LoadRoot) \ |
101 V(LoadFieldByIndex) \ | 101 V(LoadFieldByIndex) \ |
102 V(LoadFunctionPrototype) \ | 102 V(LoadFunctionPrototype) \ |
103 V(LoadGlobalCell) \ | |
104 V(LoadGlobalGeneric) \ | 103 V(LoadGlobalGeneric) \ |
105 V(LoadKeyed) \ | 104 V(LoadKeyed) \ |
106 V(LoadKeyedGeneric) \ | 105 V(LoadKeyedGeneric) \ |
107 V(LoadNamedField) \ | 106 V(LoadNamedField) \ |
108 V(LoadNamedGeneric) \ | 107 V(LoadNamedGeneric) \ |
109 V(MapEnumLength) \ | 108 V(MapEnumLength) \ |
110 V(MathAbs) \ | 109 V(MathAbs) \ |
111 V(MathClz32) \ | 110 V(MathClz32) \ |
112 V(MathExp) \ | 111 V(MathExp) \ |
113 V(MathFloor) \ | 112 V(MathFloor) \ |
(...skipping 19 matching lines...) Expand all Loading... |
133 V(Return) \ | 132 V(Return) \ |
134 V(SeqStringGetChar) \ | 133 V(SeqStringGetChar) \ |
135 V(SeqStringSetChar) \ | 134 V(SeqStringSetChar) \ |
136 V(ShiftI) \ | 135 V(ShiftI) \ |
137 V(SmiTag) \ | 136 V(SmiTag) \ |
138 V(SmiUntag) \ | 137 V(SmiUntag) \ |
139 V(StackCheck) \ | 138 V(StackCheck) \ |
140 V(StoreCodeEntry) \ | 139 V(StoreCodeEntry) \ |
141 V(StoreContextSlot) \ | 140 V(StoreContextSlot) \ |
142 V(StoreFrameContext) \ | 141 V(StoreFrameContext) \ |
143 V(StoreGlobalCell) \ | |
144 V(StoreKeyed) \ | 142 V(StoreKeyed) \ |
145 V(StoreKeyedGeneric) \ | 143 V(StoreKeyedGeneric) \ |
146 V(StoreNamedField) \ | 144 V(StoreNamedField) \ |
147 V(StoreNamedGeneric) \ | 145 V(StoreNamedGeneric) \ |
148 V(StringAdd) \ | 146 V(StringAdd) \ |
149 V(StringCharCodeAt) \ | 147 V(StringCharCodeAt) \ |
150 V(StringCharFromCode) \ | 148 V(StringCharFromCode) \ |
151 V(StringCompareAndBranch) \ | 149 V(StringCompareAndBranch) \ |
152 V(SubI) \ | 150 V(SubI) \ |
153 V(TaggedToI) \ | 151 V(TaggedToI) \ |
(...skipping 1534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1688 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") | 1686 DECLARE_CONCRETE_INSTRUCTION(LoadKeyedGeneric, "load-keyed-generic") |
1689 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedGeneric) | 1687 DECLARE_HYDROGEN_ACCESSOR(LoadKeyedGeneric) |
1690 | 1688 |
1691 LOperand* context() { return inputs_[0]; } | 1689 LOperand* context() { return inputs_[0]; } |
1692 LOperand* object() { return inputs_[1]; } | 1690 LOperand* object() { return inputs_[1]; } |
1693 LOperand* key() { return inputs_[2]; } | 1691 LOperand* key() { return inputs_[2]; } |
1694 LOperand* temp_vector() { return temps_[0]; } | 1692 LOperand* temp_vector() { return temps_[0]; } |
1695 }; | 1693 }; |
1696 | 1694 |
1697 | 1695 |
1698 class LLoadGlobalCell FINAL : public LTemplateInstruction<1, 0, 0> { | |
1699 public: | |
1700 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalCell, "load-global-cell") | |
1701 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalCell) | |
1702 }; | |
1703 | |
1704 | |
1705 class LLoadGlobalGeneric FINAL : public LTemplateInstruction<1, 2, 1> { | 1696 class LLoadGlobalGeneric FINAL : public LTemplateInstruction<1, 2, 1> { |
1706 public: | 1697 public: |
1707 explicit LLoadGlobalGeneric(LOperand* context, LOperand* global_object, | 1698 explicit LLoadGlobalGeneric(LOperand* context, LOperand* global_object, |
1708 LOperand* vector) { | 1699 LOperand* vector) { |
1709 inputs_[0] = context; | 1700 inputs_[0] = context; |
1710 inputs_[1] = global_object; | 1701 inputs_[1] = global_object; |
1711 temps_[0] = vector; | 1702 temps_[0] = vector; |
1712 } | 1703 } |
1713 | 1704 |
1714 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") | 1705 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") |
1715 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) | 1706 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) |
1716 | 1707 |
1717 LOperand* context() { return inputs_[0]; } | 1708 LOperand* context() { return inputs_[0]; } |
1718 LOperand* global_object() { return inputs_[1]; } | 1709 LOperand* global_object() { return inputs_[1]; } |
1719 LOperand* temp_vector() { return temps_[0]; } | 1710 LOperand* temp_vector() { return temps_[0]; } |
1720 | 1711 |
1721 Handle<Object> name() const { return hydrogen()->name(); } | 1712 Handle<Object> name() const { return hydrogen()->name(); } |
1722 bool for_typeof() const { return hydrogen()->for_typeof(); } | 1713 bool for_typeof() const { return hydrogen()->for_typeof(); } |
1723 }; | 1714 }; |
1724 | 1715 |
1725 | 1716 |
1726 class LStoreGlobalCell FINAL : public LTemplateInstruction<0, 1, 1> { | |
1727 public: | |
1728 explicit LStoreGlobalCell(LOperand* value, LOperand* temp) { | |
1729 inputs_[0] = value; | |
1730 temps_[0] = temp; | |
1731 } | |
1732 | |
1733 LOperand* value() { return inputs_[0]; } | |
1734 LOperand* temp() { return temps_[0]; } | |
1735 | |
1736 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalCell, "store-global-cell") | |
1737 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalCell) | |
1738 }; | |
1739 | |
1740 | |
1741 class LLoadContextSlot FINAL : public LTemplateInstruction<1, 1, 0> { | 1717 class LLoadContextSlot FINAL : public LTemplateInstruction<1, 1, 0> { |
1742 public: | 1718 public: |
1743 explicit LLoadContextSlot(LOperand* context) { | 1719 explicit LLoadContextSlot(LOperand* context) { |
1744 inputs_[0] = context; | 1720 inputs_[0] = context; |
1745 } | 1721 } |
1746 | 1722 |
1747 LOperand* context() { return inputs_[0]; } | 1723 LOperand* context() { return inputs_[0]; } |
1748 | 1724 |
1749 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") | 1725 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") |
1750 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) | 1726 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) |
(...skipping 1116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2867 | 2843 |
2868 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2844 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2869 }; | 2845 }; |
2870 | 2846 |
2871 #undef DECLARE_HYDROGEN_ACCESSOR | 2847 #undef DECLARE_HYDROGEN_ACCESSOR |
2872 #undef DECLARE_CONCRETE_INSTRUCTION | 2848 #undef DECLARE_CONCRETE_INSTRUCTION |
2873 | 2849 |
2874 } } // namespace v8::int | 2850 } } // namespace v8::int |
2875 | 2851 |
2876 #endif // V8_X64_LITHIUM_X64_H_ | 2852 #endif // V8_X64_LITHIUM_X64_H_ |
OLD | NEW |