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_CRANKSHAFT_X87_LITHIUM_X87_H_ | 5 #ifndef V8_CRANKSHAFT_X87_LITHIUM_X87_H_ |
6 #define V8_CRANKSHAFT_X87_LITHIUM_X87_H_ | 6 #define V8_CRANKSHAFT_X87_LITHIUM_X87_H_ |
7 | 7 |
8 #include "src/crankshaft/hydrogen.h" | 8 #include "src/crankshaft/hydrogen.h" |
9 #include "src/crankshaft/lithium.h" | 9 #include "src/crankshaft/lithium.h" |
10 #include "src/crankshaft/lithium-allocator.h" | 10 #include "src/crankshaft/lithium-allocator.h" |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 V(IsConstructCallAndBranch) \ | 97 V(IsConstructCallAndBranch) \ |
98 V(IsStringAndBranch) \ | 98 V(IsStringAndBranch) \ |
99 V(IsSmiAndBranch) \ | 99 V(IsSmiAndBranch) \ |
100 V(IsUndetectableAndBranch) \ | 100 V(IsUndetectableAndBranch) \ |
101 V(Label) \ | 101 V(Label) \ |
102 V(LazyBailout) \ | 102 V(LazyBailout) \ |
103 V(LoadContextSlot) \ | 103 V(LoadContextSlot) \ |
104 V(LoadFieldByIndex) \ | 104 V(LoadFieldByIndex) \ |
105 V(LoadFunctionPrototype) \ | 105 V(LoadFunctionPrototype) \ |
106 V(LoadGlobalGeneric) \ | 106 V(LoadGlobalGeneric) \ |
107 V(LoadGlobalViaContext) \ | |
108 V(LoadKeyed) \ | 107 V(LoadKeyed) \ |
109 V(LoadKeyedGeneric) \ | 108 V(LoadKeyedGeneric) \ |
110 V(LoadNamedField) \ | 109 V(LoadNamedField) \ |
111 V(LoadNamedGeneric) \ | 110 V(LoadNamedGeneric) \ |
112 V(LoadRoot) \ | 111 V(LoadRoot) \ |
113 V(MapEnumLength) \ | 112 V(MapEnumLength) \ |
114 V(MathAbs) \ | 113 V(MathAbs) \ |
115 V(MathClz32) \ | 114 V(MathClz32) \ |
116 V(MathExp) \ | 115 V(MathExp) \ |
117 V(MathFloor) \ | 116 V(MathFloor) \ |
(...skipping 21 matching lines...) Expand all Loading... |
139 V(Return) \ | 138 V(Return) \ |
140 V(SeqStringGetChar) \ | 139 V(SeqStringGetChar) \ |
141 V(SeqStringSetChar) \ | 140 V(SeqStringSetChar) \ |
142 V(ShiftI) \ | 141 V(ShiftI) \ |
143 V(SmiTag) \ | 142 V(SmiTag) \ |
144 V(SmiUntag) \ | 143 V(SmiUntag) \ |
145 V(StackCheck) \ | 144 V(StackCheck) \ |
146 V(StoreCodeEntry) \ | 145 V(StoreCodeEntry) \ |
147 V(StoreContextSlot) \ | 146 V(StoreContextSlot) \ |
148 V(StoreFrameContext) \ | 147 V(StoreFrameContext) \ |
149 V(StoreGlobalViaContext) \ | |
150 V(StoreKeyed) \ | 148 V(StoreKeyed) \ |
151 V(StoreKeyedGeneric) \ | 149 V(StoreKeyedGeneric) \ |
152 V(StoreNamedField) \ | 150 V(StoreNamedField) \ |
153 V(StoreNamedGeneric) \ | 151 V(StoreNamedGeneric) \ |
154 V(StringAdd) \ | 152 V(StringAdd) \ |
155 V(StringCharCodeAt) \ | 153 V(StringCharCodeAt) \ |
156 V(StringCharFromCode) \ | 154 V(StringCharFromCode) \ |
157 V(StringCompareAndBranch) \ | 155 V(StringCompareAndBranch) \ |
158 V(SubI) \ | 156 V(SubI) \ |
159 V(TaggedToI) \ | 157 V(TaggedToI) \ |
(...skipping 1528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1688 LOperand* temp_vector() { return temps_[0]; } | 1686 LOperand* temp_vector() { return temps_[0]; } |
1689 | 1687 |
1690 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") | 1688 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") |
1691 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) | 1689 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) |
1692 | 1690 |
1693 Handle<Object> name() const { return hydrogen()->name(); } | 1691 Handle<Object> name() const { return hydrogen()->name(); } |
1694 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); } | 1692 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); } |
1695 }; | 1693 }; |
1696 | 1694 |
1697 | 1695 |
1698 class LLoadGlobalViaContext final : public LTemplateInstruction<1, 1, 1> { | |
1699 public: | |
1700 explicit LLoadGlobalViaContext(LOperand* context) { inputs_[0] = context; } | |
1701 | |
1702 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalViaContext, "load-global-via-context") | |
1703 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalViaContext) | |
1704 | |
1705 void PrintDataTo(StringStream* stream) override; | |
1706 | |
1707 LOperand* context() { return inputs_[0]; } | |
1708 | |
1709 int depth() const { return hydrogen()->depth(); } | |
1710 int slot_index() const { return hydrogen()->slot_index(); } | |
1711 }; | |
1712 | |
1713 | |
1714 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { | 1696 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { |
1715 public: | 1697 public: |
1716 explicit LLoadContextSlot(LOperand* context) { | 1698 explicit LLoadContextSlot(LOperand* context) { |
1717 inputs_[0] = context; | 1699 inputs_[0] = context; |
1718 } | 1700 } |
1719 | 1701 |
1720 LOperand* context() { return inputs_[0]; } | 1702 LOperand* context() { return inputs_[0]; } |
1721 | 1703 |
1722 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") | 1704 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") |
1723 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) | 1705 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) |
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2192 | 2174 |
2193 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic") | 2175 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic") |
2194 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric) | 2176 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric) |
2195 | 2177 |
2196 void PrintDataTo(StringStream* stream) override; | 2178 void PrintDataTo(StringStream* stream) override; |
2197 Handle<Object> name() const { return hydrogen()->name(); } | 2179 Handle<Object> name() const { return hydrogen()->name(); } |
2198 LanguageMode language_mode() { return hydrogen()->language_mode(); } | 2180 LanguageMode language_mode() { return hydrogen()->language_mode(); } |
2199 }; | 2181 }; |
2200 | 2182 |
2201 | 2183 |
2202 class LStoreGlobalViaContext final : public LTemplateInstruction<0, 2, 0> { | |
2203 public: | |
2204 LStoreGlobalViaContext(LOperand* context, LOperand* value) { | |
2205 inputs_[0] = context; | |
2206 inputs_[1] = value; | |
2207 } | |
2208 | |
2209 LOperand* context() { return inputs_[0]; } | |
2210 LOperand* value() { return inputs_[1]; } | |
2211 | |
2212 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalViaContext, | |
2213 "store-global-via-context") | |
2214 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalViaContext) | |
2215 | |
2216 void PrintDataTo(StringStream* stream) override; | |
2217 | |
2218 int depth() { return hydrogen()->depth(); } | |
2219 int slot_index() { return hydrogen()->slot_index(); } | |
2220 LanguageMode language_mode() { return hydrogen()->language_mode(); } | |
2221 }; | |
2222 | |
2223 | |
2224 class LStoreKeyed final : public LTemplateInstruction<0, 3, 0> { | 2184 class LStoreKeyed final : public LTemplateInstruction<0, 3, 0> { |
2225 public: | 2185 public: |
2226 LStoreKeyed(LOperand* obj, LOperand* key, LOperand* val) { | 2186 LStoreKeyed(LOperand* obj, LOperand* key, LOperand* val) { |
2227 inputs_[0] = obj; | 2187 inputs_[0] = obj; |
2228 inputs_[1] = key; | 2188 inputs_[1] = key; |
2229 inputs_[2] = val; | 2189 inputs_[2] = val; |
2230 } | 2190 } |
2231 | 2191 |
2232 bool is_fixed_typed_array() const { | 2192 bool is_fixed_typed_array() const { |
2233 return hydrogen()->is_fixed_typed_array(); | 2193 return hydrogen()->is_fixed_typed_array(); |
(...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2894 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2854 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2895 }; | 2855 }; |
2896 | 2856 |
2897 #undef DECLARE_HYDROGEN_ACCESSOR | 2857 #undef DECLARE_HYDROGEN_ACCESSOR |
2898 #undef DECLARE_CONCRETE_INSTRUCTION | 2858 #undef DECLARE_CONCRETE_INSTRUCTION |
2899 | 2859 |
2900 } // namespace internal | 2860 } // namespace internal |
2901 } // namespace v8 | 2861 } // namespace v8 |
2902 | 2862 |
2903 #endif // V8_CRANKSHAFT_X87_LITHIUM_X87_H_ | 2863 #endif // V8_CRANKSHAFT_X87_LITHIUM_X87_H_ |
OLD | NEW |