| 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_MIPS_LITHIUM_MIPS_H_ | 5 #ifndef V8_MIPS_LITHIUM_MIPS_H_ |
| 6 #define V8_MIPS_LITHIUM_MIPS_H_ | 6 #define V8_MIPS_LITHIUM_MIPS_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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 V(IsStringAndBranch) \ | 97 V(IsStringAndBranch) \ |
| 98 V(IsSmiAndBranch) \ | 98 V(IsSmiAndBranch) \ |
| 99 V(IsUndetectableAndBranch) \ | 99 V(IsUndetectableAndBranch) \ |
| 100 V(Label) \ | 100 V(Label) \ |
| 101 V(LazyBailout) \ | 101 V(LazyBailout) \ |
| 102 V(LoadContextSlot) \ | 102 V(LoadContextSlot) \ |
| 103 V(LoadRoot) \ | 103 V(LoadRoot) \ |
| 104 V(LoadFieldByIndex) \ | 104 V(LoadFieldByIndex) \ |
| 105 V(LoadFunctionPrototype) \ | 105 V(LoadFunctionPrototype) \ |
| 106 V(LoadGlobalGeneric) \ | 106 V(LoadGlobalGeneric) \ |
| 107 V(LoadGlobalViaContext) \ |
| 107 V(LoadKeyed) \ | 108 V(LoadKeyed) \ |
| 108 V(LoadKeyedGeneric) \ | 109 V(LoadKeyedGeneric) \ |
| 109 V(LoadNamedField) \ | 110 V(LoadNamedField) \ |
| 110 V(LoadNamedGeneric) \ | 111 V(LoadNamedGeneric) \ |
| 111 V(MapEnumLength) \ | 112 V(MapEnumLength) \ |
| 112 V(MathAbs) \ | 113 V(MathAbs) \ |
| 113 V(MathExp) \ | 114 V(MathExp) \ |
| 114 V(MathClz32) \ | 115 V(MathClz32) \ |
| 115 V(MathFloor) \ | 116 V(MathFloor) \ |
| 116 V(MathFround) \ | 117 V(MathFround) \ |
| (...skipping 20 matching lines...) Expand all Loading... |
| 137 V(Return) \ | 138 V(Return) \ |
| 138 V(SeqStringGetChar) \ | 139 V(SeqStringGetChar) \ |
| 139 V(SeqStringSetChar) \ | 140 V(SeqStringSetChar) \ |
| 140 V(ShiftI) \ | 141 V(ShiftI) \ |
| 141 V(SmiTag) \ | 142 V(SmiTag) \ |
| 142 V(SmiUntag) \ | 143 V(SmiUntag) \ |
| 143 V(StackCheck) \ | 144 V(StackCheck) \ |
| 144 V(StoreCodeEntry) \ | 145 V(StoreCodeEntry) \ |
| 145 V(StoreContextSlot) \ | 146 V(StoreContextSlot) \ |
| 146 V(StoreFrameContext) \ | 147 V(StoreFrameContext) \ |
| 148 V(StoreGlobalViaContext) \ |
| 147 V(StoreKeyed) \ | 149 V(StoreKeyed) \ |
| 148 V(StoreKeyedGeneric) \ | 150 V(StoreKeyedGeneric) \ |
| 149 V(StoreNamedField) \ | 151 V(StoreNamedField) \ |
| 150 V(StoreNamedGeneric) \ | 152 V(StoreNamedGeneric) \ |
| 151 V(StringAdd) \ | 153 V(StringAdd) \ |
| 152 V(StringCharCodeAt) \ | 154 V(StringCharCodeAt) \ |
| 153 V(StringCharFromCode) \ | 155 V(StringCharFromCode) \ |
| 154 V(StringCompareAndBranch) \ | 156 V(StringCompareAndBranch) \ |
| 155 V(SubI) \ | 157 V(SubI) \ |
| 156 V(SubS) \ | 158 V(SubS) \ |
| (...skipping 1565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1722 LOperand* temp_vector() { return temps_[0]; } | 1724 LOperand* temp_vector() { return temps_[0]; } |
| 1723 | 1725 |
| 1724 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") | 1726 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") |
| 1725 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) | 1727 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) |
| 1726 | 1728 |
| 1727 Handle<Object> name() const { return hydrogen()->name(); } | 1729 Handle<Object> name() const { return hydrogen()->name(); } |
| 1728 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); } | 1730 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); } |
| 1729 }; | 1731 }; |
| 1730 | 1732 |
| 1731 | 1733 |
| 1734 class LLoadGlobalViaContext final : public LTemplateInstruction<1, 1, 1> { |
| 1735 public: |
| 1736 explicit LLoadGlobalViaContext(LOperand* context) { inputs_[0] = context; } |
| 1737 |
| 1738 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalViaContext, "load-global-via-context") |
| 1739 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalViaContext) |
| 1740 |
| 1741 void PrintDataTo(StringStream* stream) override; |
| 1742 |
| 1743 LOperand* context() { return inputs_[0]; } |
| 1744 |
| 1745 Handle<Object> name() const { return hydrogen()->name(); } |
| 1746 int depth() const { return hydrogen()->depth(); } |
| 1747 int slot_index() const { return hydrogen()->slot_index(); } |
| 1748 }; |
| 1749 |
| 1750 |
| 1732 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { | 1751 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { |
| 1733 public: | 1752 public: |
| 1734 explicit LLoadContextSlot(LOperand* context) { | 1753 explicit LLoadContextSlot(LOperand* context) { |
| 1735 inputs_[0] = context; | 1754 inputs_[0] = context; |
| 1736 } | 1755 } |
| 1737 | 1756 |
| 1738 LOperand* context() { return inputs_[0]; } | 1757 LOperand* context() { return inputs_[0]; } |
| 1739 | 1758 |
| 1740 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") | 1759 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") |
| 1741 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) | 1760 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) |
| (...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2207 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic") | 2226 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic") |
| 2208 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric) | 2227 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric) |
| 2209 | 2228 |
| 2210 void PrintDataTo(StringStream* stream) override; | 2229 void PrintDataTo(StringStream* stream) override; |
| 2211 | 2230 |
| 2212 Handle<Object> name() const { return hydrogen()->name(); } | 2231 Handle<Object> name() const { return hydrogen()->name(); } |
| 2213 LanguageMode language_mode() { return hydrogen()->language_mode(); } | 2232 LanguageMode language_mode() { return hydrogen()->language_mode(); } |
| 2214 }; | 2233 }; |
| 2215 | 2234 |
| 2216 | 2235 |
| 2236 class LStoreGlobalViaContext final : public LTemplateInstruction<0, 2, 0> { |
| 2237 public: |
| 2238 LStoreGlobalViaContext(LOperand* context, LOperand* value) { |
| 2239 inputs_[0] = context; |
| 2240 inputs_[1] = value; |
| 2241 } |
| 2242 |
| 2243 LOperand* context() { return inputs_[0]; } |
| 2244 LOperand* value() { return inputs_[1]; } |
| 2245 |
| 2246 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalViaContext, |
| 2247 "store-global-via-context") |
| 2248 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalViaContext) |
| 2249 |
| 2250 void PrintDataTo(StringStream* stream) override; |
| 2251 |
| 2252 Handle<Object> name() const { return hydrogen()->name(); } |
| 2253 int depth() { return hydrogen()->depth(); } |
| 2254 int slot_index() { return hydrogen()->slot_index(); } |
| 2255 LanguageMode language_mode() { return hydrogen()->language_mode(); } |
| 2256 }; |
| 2257 |
| 2258 |
| 2217 class LStoreKeyed final : public LTemplateInstruction<0, 3, 0> { | 2259 class LStoreKeyed final : public LTemplateInstruction<0, 3, 0> { |
| 2218 public: | 2260 public: |
| 2219 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value) { | 2261 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value) { |
| 2220 inputs_[0] = object; | 2262 inputs_[0] = object; |
| 2221 inputs_[1] = key; | 2263 inputs_[1] = key; |
| 2222 inputs_[2] = value; | 2264 inputs_[2] = value; |
| 2223 } | 2265 } |
| 2224 | 2266 |
| 2225 bool is_external() const { return hydrogen()->is_external(); } | 2267 bool is_external() const { return hydrogen()->is_external(); } |
| 2226 bool is_fixed_typed_array() const { | 2268 bool is_fixed_typed_array() const { |
| (...skipping 669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2896 | 2938 |
| 2897 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2939 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2898 }; | 2940 }; |
| 2899 | 2941 |
| 2900 #undef DECLARE_HYDROGEN_ACCESSOR | 2942 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2901 #undef DECLARE_CONCRETE_INSTRUCTION | 2943 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2902 | 2944 |
| 2903 } } // namespace v8::internal | 2945 } } // namespace v8::internal |
| 2904 | 2946 |
| 2905 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2947 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
| OLD | NEW |