| 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_MIPS_LITHIUM_MIPS_H_ | 5 #ifndef V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ |
| 6 #define V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ | 6 #define V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 V(IsStringAndBranch) \ | 93 V(IsStringAndBranch) \ |
| 94 V(IsSmiAndBranch) \ | 94 V(IsSmiAndBranch) \ |
| 95 V(IsUndetectableAndBranch) \ | 95 V(IsUndetectableAndBranch) \ |
| 96 V(Label) \ | 96 V(Label) \ |
| 97 V(LazyBailout) \ | 97 V(LazyBailout) \ |
| 98 V(LoadContextSlot) \ | 98 V(LoadContextSlot) \ |
| 99 V(LoadRoot) \ | 99 V(LoadRoot) \ |
| 100 V(LoadFieldByIndex) \ | 100 V(LoadFieldByIndex) \ |
| 101 V(LoadFunctionPrototype) \ | 101 V(LoadFunctionPrototype) \ |
| 102 V(LoadGlobalGeneric) \ | 102 V(LoadGlobalGeneric) \ |
| 103 V(LoadGlobalViaContext) \ | |
| 104 V(LoadKeyed) \ | 103 V(LoadKeyed) \ |
| 105 V(LoadKeyedGeneric) \ | 104 V(LoadKeyedGeneric) \ |
| 106 V(LoadNamedField) \ | 105 V(LoadNamedField) \ |
| 107 V(LoadNamedGeneric) \ | 106 V(LoadNamedGeneric) \ |
| 108 V(MapEnumLength) \ | 107 V(MapEnumLength) \ |
| 109 V(MathAbs) \ | 108 V(MathAbs) \ |
| 110 V(MathExp) \ | 109 V(MathExp) \ |
| 111 V(MathClz32) \ | 110 V(MathClz32) \ |
| 112 V(MathFloor) \ | 111 V(MathFloor) \ |
| 113 V(MathFround) \ | 112 V(MathFround) \ |
| (...skipping 21 matching lines...) Expand all Loading... |
| 135 V(Return) \ | 134 V(Return) \ |
| 136 V(SeqStringGetChar) \ | 135 V(SeqStringGetChar) \ |
| 137 V(SeqStringSetChar) \ | 136 V(SeqStringSetChar) \ |
| 138 V(ShiftI) \ | 137 V(ShiftI) \ |
| 139 V(SmiTag) \ | 138 V(SmiTag) \ |
| 140 V(SmiUntag) \ | 139 V(SmiUntag) \ |
| 141 V(StackCheck) \ | 140 V(StackCheck) \ |
| 142 V(StoreCodeEntry) \ | 141 V(StoreCodeEntry) \ |
| 143 V(StoreContextSlot) \ | 142 V(StoreContextSlot) \ |
| 144 V(StoreFrameContext) \ | 143 V(StoreFrameContext) \ |
| 145 V(StoreGlobalViaContext) \ | |
| 146 V(StoreKeyed) \ | 144 V(StoreKeyed) \ |
| 147 V(StoreKeyedGeneric) \ | 145 V(StoreKeyedGeneric) \ |
| 148 V(StoreNamedField) \ | 146 V(StoreNamedField) \ |
| 149 V(StoreNamedGeneric) \ | 147 V(StoreNamedGeneric) \ |
| 150 V(StringAdd) \ | 148 V(StringAdd) \ |
| 151 V(StringCharCodeAt) \ | 149 V(StringCharCodeAt) \ |
| 152 V(StringCharFromCode) \ | 150 V(StringCharFromCode) \ |
| 153 V(StringCompareAndBranch) \ | 151 V(StringCompareAndBranch) \ |
| 154 V(SubI) \ | 152 V(SubI) \ |
| 155 V(TaggedToI) \ | 153 V(TaggedToI) \ |
| (...skipping 1472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1628 LOperand* temp_vector() { return temps_[0]; } | 1626 LOperand* temp_vector() { return temps_[0]; } |
| 1629 | 1627 |
| 1630 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") | 1628 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") |
| 1631 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) | 1629 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) |
| 1632 | 1630 |
| 1633 Handle<Object> name() const { return hydrogen()->name(); } | 1631 Handle<Object> name() const { return hydrogen()->name(); } |
| 1634 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); } | 1632 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); } |
| 1635 }; | 1633 }; |
| 1636 | 1634 |
| 1637 | 1635 |
| 1638 class LLoadGlobalViaContext final : public LTemplateInstruction<1, 1, 1> { | |
| 1639 public: | |
| 1640 explicit LLoadGlobalViaContext(LOperand* context) { inputs_[0] = context; } | |
| 1641 | |
| 1642 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalViaContext, "load-global-via-context") | |
| 1643 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalViaContext) | |
| 1644 | |
| 1645 void PrintDataTo(StringStream* stream) override; | |
| 1646 | |
| 1647 LOperand* context() { return inputs_[0]; } | |
| 1648 | |
| 1649 int depth() const { return hydrogen()->depth(); } | |
| 1650 int slot_index() const { return hydrogen()->slot_index(); } | |
| 1651 }; | |
| 1652 | |
| 1653 | |
| 1654 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { | 1636 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { |
| 1655 public: | 1637 public: |
| 1656 explicit LLoadContextSlot(LOperand* context) { | 1638 explicit LLoadContextSlot(LOperand* context) { |
| 1657 inputs_[0] = context; | 1639 inputs_[0] = context; |
| 1658 } | 1640 } |
| 1659 | 1641 |
| 1660 LOperand* context() { return inputs_[0]; } | 1642 LOperand* context() { return inputs_[0]; } |
| 1661 | 1643 |
| 1662 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") | 1644 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") |
| 1663 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) | 1645 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) |
| (...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2145 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic") | 2127 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic") |
| 2146 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric) | 2128 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric) |
| 2147 | 2129 |
| 2148 void PrintDataTo(StringStream* stream) override; | 2130 void PrintDataTo(StringStream* stream) override; |
| 2149 | 2131 |
| 2150 Handle<Object> name() const { return hydrogen()->name(); } | 2132 Handle<Object> name() const { return hydrogen()->name(); } |
| 2151 LanguageMode language_mode() { return hydrogen()->language_mode(); } | 2133 LanguageMode language_mode() { return hydrogen()->language_mode(); } |
| 2152 }; | 2134 }; |
| 2153 | 2135 |
| 2154 | 2136 |
| 2155 class LStoreGlobalViaContext final : public LTemplateInstruction<0, 2, 0> { | |
| 2156 public: | |
| 2157 LStoreGlobalViaContext(LOperand* context, LOperand* value) { | |
| 2158 inputs_[0] = context; | |
| 2159 inputs_[1] = value; | |
| 2160 } | |
| 2161 | |
| 2162 LOperand* context() { return inputs_[0]; } | |
| 2163 LOperand* value() { return inputs_[1]; } | |
| 2164 | |
| 2165 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalViaContext, | |
| 2166 "store-global-via-context") | |
| 2167 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalViaContext) | |
| 2168 | |
| 2169 void PrintDataTo(StringStream* stream) override; | |
| 2170 | |
| 2171 int depth() { return hydrogen()->depth(); } | |
| 2172 int slot_index() { return hydrogen()->slot_index(); } | |
| 2173 LanguageMode language_mode() { return hydrogen()->language_mode(); } | |
| 2174 }; | |
| 2175 | |
| 2176 | |
| 2177 class LStoreKeyed final : public LTemplateInstruction<0, 3, 0> { | 2137 class LStoreKeyed final : public LTemplateInstruction<0, 3, 0> { |
| 2178 public: | 2138 public: |
| 2179 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value) { | 2139 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value) { |
| 2180 inputs_[0] = object; | 2140 inputs_[0] = object; |
| 2181 inputs_[1] = key; | 2141 inputs_[1] = key; |
| 2182 inputs_[2] = value; | 2142 inputs_[2] = value; |
| 2183 } | 2143 } |
| 2184 | 2144 |
| 2185 bool is_fixed_typed_array() const { | 2145 bool is_fixed_typed_array() const { |
| 2186 return hydrogen()->is_fixed_typed_array(); | 2146 return hydrogen()->is_fixed_typed_array(); |
| (...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2840 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2800 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2841 }; | 2801 }; |
| 2842 | 2802 |
| 2843 #undef DECLARE_HYDROGEN_ACCESSOR | 2803 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2844 #undef DECLARE_CONCRETE_INSTRUCTION | 2804 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2845 | 2805 |
| 2846 } // namespace internal | 2806 } // namespace internal |
| 2847 } // namespace v8 | 2807 } // namespace v8 |
| 2848 | 2808 |
| 2849 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ | 2809 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ |
| OLD | NEW |