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_IA32_LITHIUM_IA32_H_ | 5 #ifndef V8_IA32_LITHIUM_IA32_H_ |
6 #define V8_IA32_LITHIUM_IA32_H_ | 6 #define V8_IA32_LITHIUM_IA32_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 87 matching lines...) Loading... |
98 V(IsObjectAndBranch) \ | 98 V(IsObjectAndBranch) \ |
99 V(IsStringAndBranch) \ | 99 V(IsStringAndBranch) \ |
100 V(IsSmiAndBranch) \ | 100 V(IsSmiAndBranch) \ |
101 V(IsUndetectableAndBranch) \ | 101 V(IsUndetectableAndBranch) \ |
102 V(Label) \ | 102 V(Label) \ |
103 V(LazyBailout) \ | 103 V(LazyBailout) \ |
104 V(LoadContextSlot) \ | 104 V(LoadContextSlot) \ |
105 V(LoadFieldByIndex) \ | 105 V(LoadFieldByIndex) \ |
106 V(LoadFunctionPrototype) \ | 106 V(LoadFunctionPrototype) \ |
107 V(LoadGlobalGeneric) \ | 107 V(LoadGlobalGeneric) \ |
| 108 V(LoadGlobalViaContext) \ |
108 V(LoadKeyed) \ | 109 V(LoadKeyed) \ |
109 V(LoadKeyedGeneric) \ | 110 V(LoadKeyedGeneric) \ |
110 V(LoadNamedField) \ | 111 V(LoadNamedField) \ |
111 V(LoadNamedGeneric) \ | 112 V(LoadNamedGeneric) \ |
112 V(LoadRoot) \ | 113 V(LoadRoot) \ |
113 V(MapEnumLength) \ | 114 V(MapEnumLength) \ |
114 V(MathAbs) \ | 115 V(MathAbs) \ |
115 V(MathClz32) \ | 116 V(MathClz32) \ |
116 V(MathExp) \ | 117 V(MathExp) \ |
117 V(MathFloor) \ | 118 V(MathFloor) \ |
(...skipping 20 matching lines...) Loading... |
138 V(Return) \ | 139 V(Return) \ |
139 V(SeqStringGetChar) \ | 140 V(SeqStringGetChar) \ |
140 V(SeqStringSetChar) \ | 141 V(SeqStringSetChar) \ |
141 V(ShiftI) \ | 142 V(ShiftI) \ |
142 V(SmiTag) \ | 143 V(SmiTag) \ |
143 V(SmiUntag) \ | 144 V(SmiUntag) \ |
144 V(StackCheck) \ | 145 V(StackCheck) \ |
145 V(StoreCodeEntry) \ | 146 V(StoreCodeEntry) \ |
146 V(StoreContextSlot) \ | 147 V(StoreContextSlot) \ |
147 V(StoreFrameContext) \ | 148 V(StoreFrameContext) \ |
| 149 V(StoreGlobalViaContext) \ |
148 V(StoreKeyed) \ | 150 V(StoreKeyed) \ |
149 V(StoreKeyedGeneric) \ | 151 V(StoreKeyedGeneric) \ |
150 V(StoreNamedField) \ | 152 V(StoreNamedField) \ |
151 V(StoreNamedGeneric) \ | 153 V(StoreNamedGeneric) \ |
152 V(StringAdd) \ | 154 V(StringAdd) \ |
153 V(StringCharCodeAt) \ | 155 V(StringCharCodeAt) \ |
154 V(StringCharFromCode) \ | 156 V(StringCharFromCode) \ |
155 V(StringCompareAndBranch) \ | 157 V(StringCompareAndBranch) \ |
156 V(SubI) \ | 158 V(SubI) \ |
157 V(TaggedToI) \ | 159 V(TaggedToI) \ |
(...skipping 1552 matching lines...) Loading... |
1710 LOperand* temp_vector() { return temps_[0]; } | 1712 LOperand* temp_vector() { return temps_[0]; } |
1711 | 1713 |
1712 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") | 1714 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") |
1713 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) | 1715 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) |
1714 | 1716 |
1715 Handle<Object> name() const { return hydrogen()->name(); } | 1717 Handle<Object> name() const { return hydrogen()->name(); } |
1716 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); } | 1718 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); } |
1717 }; | 1719 }; |
1718 | 1720 |
1719 | 1721 |
| 1722 class LLoadGlobalViaContext final : public LTemplateInstruction<1, 1, 1> { |
| 1723 public: |
| 1724 explicit LLoadGlobalViaContext(LOperand* context) { inputs_[0] = context; } |
| 1725 |
| 1726 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalViaContext, "load-global-via-context") |
| 1727 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalViaContext) |
| 1728 |
| 1729 void PrintDataTo(StringStream* stream) override; |
| 1730 |
| 1731 LOperand* context() { return inputs_[0]; } |
| 1732 |
| 1733 Handle<Object> name() const { return hydrogen()->name(); } |
| 1734 int depth() const { return hydrogen()->depth(); } |
| 1735 int slot_index() const { return hydrogen()->slot_index(); } |
| 1736 }; |
| 1737 |
| 1738 |
1720 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { | 1739 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { |
1721 public: | 1740 public: |
1722 explicit LLoadContextSlot(LOperand* context) { | 1741 explicit LLoadContextSlot(LOperand* context) { |
1723 inputs_[0] = context; | 1742 inputs_[0] = context; |
1724 } | 1743 } |
1725 | 1744 |
1726 LOperand* context() { return inputs_[0]; } | 1745 LOperand* context() { return inputs_[0]; } |
1727 | 1746 |
1728 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") | 1747 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") |
1729 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) | 1748 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) |
(...skipping 472 matching lines...) Loading... |
2202 | 2221 |
2203 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic") | 2222 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic") |
2204 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric) | 2223 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric) |
2205 | 2224 |
2206 void PrintDataTo(StringStream* stream) override; | 2225 void PrintDataTo(StringStream* stream) override; |
2207 Handle<Object> name() const { return hydrogen()->name(); } | 2226 Handle<Object> name() const { return hydrogen()->name(); } |
2208 LanguageMode language_mode() { return hydrogen()->language_mode(); } | 2227 LanguageMode language_mode() { return hydrogen()->language_mode(); } |
2209 }; | 2228 }; |
2210 | 2229 |
2211 | 2230 |
| 2231 class LStoreGlobalViaContext final : public LTemplateInstruction<0, 2, 0> { |
| 2232 public: |
| 2233 LStoreGlobalViaContext(LOperand* context, LOperand* value) { |
| 2234 inputs_[0] = context; |
| 2235 inputs_[1] = value; |
| 2236 } |
| 2237 |
| 2238 LOperand* context() { return inputs_[0]; } |
| 2239 LOperand* value() { return inputs_[1]; } |
| 2240 |
| 2241 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalViaContext, |
| 2242 "store-global-via-context") |
| 2243 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalViaContext) |
| 2244 |
| 2245 void PrintDataTo(StringStream* stream) override; |
| 2246 |
| 2247 Handle<Object> name() const { return hydrogen()->name(); } |
| 2248 int depth() { return hydrogen()->depth(); } |
| 2249 int slot_index() { return hydrogen()->slot_index(); } |
| 2250 LanguageMode language_mode() { return hydrogen()->language_mode(); } |
| 2251 }; |
| 2252 |
| 2253 |
2212 class LStoreKeyed final : public LTemplateInstruction<0, 3, 0> { | 2254 class LStoreKeyed final : public LTemplateInstruction<0, 3, 0> { |
2213 public: | 2255 public: |
2214 LStoreKeyed(LOperand* obj, LOperand* key, LOperand* val) { | 2256 LStoreKeyed(LOperand* obj, LOperand* key, LOperand* val) { |
2215 inputs_[0] = obj; | 2257 inputs_[0] = obj; |
2216 inputs_[1] = key; | 2258 inputs_[1] = key; |
2217 inputs_[2] = val; | 2259 inputs_[2] = val; |
2218 } | 2260 } |
2219 | 2261 |
2220 bool is_external() const { return hydrogen()->is_external(); } | 2262 bool is_external() const { return hydrogen()->is_external(); } |
2221 bool is_fixed_typed_array() const { | 2263 bool is_fixed_typed_array() const { |
(...skipping 668 matching lines...) Loading... |
2890 | 2932 |
2891 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2933 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2892 }; | 2934 }; |
2893 | 2935 |
2894 #undef DECLARE_HYDROGEN_ACCESSOR | 2936 #undef DECLARE_HYDROGEN_ACCESSOR |
2895 #undef DECLARE_CONCRETE_INSTRUCTION | 2937 #undef DECLARE_CONCRETE_INSTRUCTION |
2896 | 2938 |
2897 } } // namespace v8::internal | 2939 } } // namespace v8::internal |
2898 | 2940 |
2899 #endif // V8_IA32_LITHIUM_IA32_H_ | 2941 #endif // V8_IA32_LITHIUM_IA32_H_ |
OLD | NEW |