OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC_LITHIUM_PPC_H_ | 5 #ifndef V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ |
6 #define V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ | 6 #define V8_CRANKSHAFT_PPC_LITHIUM_PPC_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(MathClz32) \ | 109 V(MathClz32) \ |
111 V(MathExp) \ | 110 V(MathExp) \ |
112 V(MathFloor) \ | 111 V(MathFloor) \ |
113 V(MathFround) \ | 112 V(MathFround) \ |
(...skipping 22 matching lines...) Expand all Loading... |
136 V(Return) \ | 135 V(Return) \ |
137 V(SeqStringGetChar) \ | 136 V(SeqStringGetChar) \ |
138 V(SeqStringSetChar) \ | 137 V(SeqStringSetChar) \ |
139 V(ShiftI) \ | 138 V(ShiftI) \ |
140 V(SmiTag) \ | 139 V(SmiTag) \ |
141 V(SmiUntag) \ | 140 V(SmiUntag) \ |
142 V(StackCheck) \ | 141 V(StackCheck) \ |
143 V(StoreCodeEntry) \ | 142 V(StoreCodeEntry) \ |
144 V(StoreContextSlot) \ | 143 V(StoreContextSlot) \ |
145 V(StoreFrameContext) \ | 144 V(StoreFrameContext) \ |
146 V(StoreGlobalViaContext) \ | |
147 V(StoreKeyed) \ | 145 V(StoreKeyed) \ |
148 V(StoreKeyedGeneric) \ | 146 V(StoreKeyedGeneric) \ |
149 V(StoreNamedField) \ | 147 V(StoreNamedField) \ |
150 V(StoreNamedGeneric) \ | 148 V(StoreNamedGeneric) \ |
151 V(StringAdd) \ | 149 V(StringAdd) \ |
152 V(StringCharCodeAt) \ | 150 V(StringCharCodeAt) \ |
153 V(StringCharFromCode) \ | 151 V(StringCharFromCode) \ |
154 V(StringCompareAndBranch) \ | 152 V(StringCompareAndBranch) \ |
155 V(SubI) \ | 153 V(SubI) \ |
156 V(RSubI) \ | 154 V(RSubI) \ |
(...skipping 1448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1605 LOperand* temp_vector() { return temps_[0]; } | 1603 LOperand* temp_vector() { return temps_[0]; } |
1606 | 1604 |
1607 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") | 1605 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") |
1608 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) | 1606 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) |
1609 | 1607 |
1610 Handle<Object> name() const { return hydrogen()->name(); } | 1608 Handle<Object> name() const { return hydrogen()->name(); } |
1611 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); } | 1609 TypeofMode typeof_mode() const { return hydrogen()->typeof_mode(); } |
1612 }; | 1610 }; |
1613 | 1611 |
1614 | 1612 |
1615 class LLoadGlobalViaContext final : public LTemplateInstruction<1, 1, 1> { | |
1616 public: | |
1617 explicit LLoadGlobalViaContext(LOperand* context) { inputs_[0] = context; } | |
1618 | |
1619 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalViaContext, "load-global-via-context") | |
1620 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalViaContext) | |
1621 | |
1622 void PrintDataTo(StringStream* stream) override; | |
1623 | |
1624 LOperand* context() { return inputs_[0]; } | |
1625 | |
1626 int depth() const { return hydrogen()->depth(); } | |
1627 int slot_index() const { return hydrogen()->slot_index(); } | |
1628 }; | |
1629 | |
1630 | |
1631 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { | 1613 class LLoadContextSlot final : public LTemplateInstruction<1, 1, 0> { |
1632 public: | 1614 public: |
1633 explicit LLoadContextSlot(LOperand* context) { inputs_[0] = context; } | 1615 explicit LLoadContextSlot(LOperand* context) { inputs_[0] = context; } |
1634 | 1616 |
1635 LOperand* context() { return inputs_[0]; } | 1617 LOperand* context() { return inputs_[0]; } |
1636 | 1618 |
1637 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") | 1619 DECLARE_CONCRETE_INSTRUCTION(LoadContextSlot, "load-context-slot") |
1638 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) | 1620 DECLARE_HYDROGEN_ACCESSOR(LoadContextSlot) |
1639 | 1621 |
1640 int slot_index() { return hydrogen()->slot_index(); } | 1622 int slot_index() { return hydrogen()->slot_index(); } |
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2097 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic") | 2079 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic") |
2098 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric) | 2080 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric) |
2099 | 2081 |
2100 void PrintDataTo(StringStream* stream) override; | 2082 void PrintDataTo(StringStream* stream) override; |
2101 | 2083 |
2102 Handle<Object> name() const { return hydrogen()->name(); } | 2084 Handle<Object> name() const { return hydrogen()->name(); } |
2103 LanguageMode language_mode() { return hydrogen()->language_mode(); } | 2085 LanguageMode language_mode() { return hydrogen()->language_mode(); } |
2104 }; | 2086 }; |
2105 | 2087 |
2106 | 2088 |
2107 class LStoreGlobalViaContext final : public LTemplateInstruction<0, 2, 0> { | |
2108 public: | |
2109 LStoreGlobalViaContext(LOperand* context, LOperand* value) { | |
2110 inputs_[0] = context; | |
2111 inputs_[1] = value; | |
2112 } | |
2113 | |
2114 LOperand* context() { return inputs_[0]; } | |
2115 LOperand* value() { return inputs_[1]; } | |
2116 | |
2117 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalViaContext, | |
2118 "store-global-via-context") | |
2119 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalViaContext) | |
2120 | |
2121 void PrintDataTo(StringStream* stream) override; | |
2122 | |
2123 int depth() { return hydrogen()->depth(); } | |
2124 int slot_index() { return hydrogen()->slot_index(); } | |
2125 LanguageMode language_mode() { return hydrogen()->language_mode(); } | |
2126 }; | |
2127 | |
2128 | |
2129 class LStoreKeyed final : public LTemplateInstruction<0, 3, 0> { | 2089 class LStoreKeyed final : public LTemplateInstruction<0, 3, 0> { |
2130 public: | 2090 public: |
2131 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value) { | 2091 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value) { |
2132 inputs_[0] = object; | 2092 inputs_[0] = object; |
2133 inputs_[1] = key; | 2093 inputs_[1] = key; |
2134 inputs_[2] = value; | 2094 inputs_[2] = value; |
2135 } | 2095 } |
2136 | 2096 |
2137 bool is_fixed_typed_array() const { | 2097 bool is_fixed_typed_array() const { |
2138 return hydrogen()->is_fixed_typed_array(); | 2098 return hydrogen()->is_fixed_typed_array(); |
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2757 | 2717 |
2758 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2718 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2759 }; | 2719 }; |
2760 | 2720 |
2761 #undef DECLARE_HYDROGEN_ACCESSOR | 2721 #undef DECLARE_HYDROGEN_ACCESSOR |
2762 #undef DECLARE_CONCRETE_INSTRUCTION | 2722 #undef DECLARE_CONCRETE_INSTRUCTION |
2763 } // namespace internal | 2723 } // namespace internal |
2764 } // namespace v8 | 2724 } // namespace v8 |
2765 | 2725 |
2766 #endif // V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ | 2726 #endif // V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ |
OLD | NEW |