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_IA32_LITHIUM_IA32_H_ | 5 #ifndef V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ |
6 #define V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ | 6 #define V8_CRANKSHAFT_IA32_LITHIUM_IA32_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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 V(Return) \ | 129 V(Return) \ |
130 V(SeqStringGetChar) \ | 130 V(SeqStringGetChar) \ |
131 V(SeqStringSetChar) \ | 131 V(SeqStringSetChar) \ |
132 V(ShiftI) \ | 132 V(ShiftI) \ |
133 V(SmiTag) \ | 133 V(SmiTag) \ |
134 V(SmiUntag) \ | 134 V(SmiUntag) \ |
135 V(StackCheck) \ | 135 V(StackCheck) \ |
136 V(StoreCodeEntry) \ | 136 V(StoreCodeEntry) \ |
137 V(StoreContextSlot) \ | 137 V(StoreContextSlot) \ |
138 V(StoreKeyed) \ | 138 V(StoreKeyed) \ |
139 V(StoreKeyedGeneric) \ | |
140 V(StoreNamedField) \ | 139 V(StoreNamedField) \ |
141 V(StringAdd) \ | 140 V(StringAdd) \ |
142 V(StringCharCodeAt) \ | 141 V(StringCharCodeAt) \ |
143 V(StringCharFromCode) \ | 142 V(StringCharFromCode) \ |
144 V(StringCompareAndBranch) \ | 143 V(StringCompareAndBranch) \ |
145 V(SubI) \ | 144 V(SubI) \ |
146 V(TaggedToI) \ | 145 V(TaggedToI) \ |
147 V(ThisFunction) \ | 146 V(ThisFunction) \ |
148 V(TransitionElementsKind) \ | 147 V(TransitionElementsKind) \ |
149 V(TrapAllocationMemento) \ | 148 V(TrapAllocationMemento) \ |
(...skipping 1894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2044 | 2043 |
2045 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed") | 2044 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed") |
2046 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed) | 2045 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed) |
2047 | 2046 |
2048 void PrintDataTo(StringStream* stream) override; | 2047 void PrintDataTo(StringStream* stream) override; |
2049 uint32_t base_offset() const { return hydrogen()->base_offset(); } | 2048 uint32_t base_offset() const { return hydrogen()->base_offset(); } |
2050 bool NeedsCanonicalization() { return hydrogen()->NeedsCanonicalization(); } | 2049 bool NeedsCanonicalization() { return hydrogen()->NeedsCanonicalization(); } |
2051 }; | 2050 }; |
2052 | 2051 |
2053 | 2052 |
2054 class LStoreKeyedGeneric final : public LTemplateInstruction<0, 4, 2> { | |
2055 public: | |
2056 LStoreKeyedGeneric(LOperand* context, LOperand* object, LOperand* key, | |
2057 LOperand* value, LOperand* slot, LOperand* vector) { | |
2058 inputs_[0] = context; | |
2059 inputs_[1] = object; | |
2060 inputs_[2] = key; | |
2061 inputs_[3] = value; | |
2062 temps_[0] = slot; | |
2063 temps_[1] = vector; | |
2064 } | |
2065 | |
2066 LOperand* context() { return inputs_[0]; } | |
2067 LOperand* object() { return inputs_[1]; } | |
2068 LOperand* key() { return inputs_[2]; } | |
2069 LOperand* value() { return inputs_[3]; } | |
2070 LOperand* temp_slot() { return temps_[0]; } | |
2071 LOperand* temp_vector() { return temps_[1]; } | |
2072 | |
2073 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric, "store-keyed-generic") | |
2074 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedGeneric) | |
2075 | |
2076 void PrintDataTo(StringStream* stream) override; | |
2077 | |
2078 LanguageMode language_mode() { return hydrogen()->language_mode(); } | |
2079 }; | |
2080 | |
2081 | |
2082 class LTransitionElementsKind final : public LTemplateInstruction<0, 2, 2> { | 2053 class LTransitionElementsKind final : public LTemplateInstruction<0, 2, 2> { |
2083 public: | 2054 public: |
2084 LTransitionElementsKind(LOperand* object, | 2055 LTransitionElementsKind(LOperand* object, |
2085 LOperand* context, | 2056 LOperand* context, |
2086 LOperand* new_map_temp, | 2057 LOperand* new_map_temp, |
2087 LOperand* temp) { | 2058 LOperand* temp) { |
2088 inputs_[0] = object; | 2059 inputs_[0] = object; |
2089 inputs_[1] = context; | 2060 inputs_[1] = context; |
2090 temps_[0] = new_map_temp; | 2061 temps_[0] = new_map_temp; |
2091 temps_[1] = temp; | 2062 temps_[1] = temp; |
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2624 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2595 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2625 }; | 2596 }; |
2626 | 2597 |
2627 #undef DECLARE_HYDROGEN_ACCESSOR | 2598 #undef DECLARE_HYDROGEN_ACCESSOR |
2628 #undef DECLARE_CONCRETE_INSTRUCTION | 2599 #undef DECLARE_CONCRETE_INSTRUCTION |
2629 | 2600 |
2630 } // namespace internal | 2601 } // namespace internal |
2631 } // namespace v8 | 2602 } // namespace v8 |
2632 | 2603 |
2633 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ | 2604 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ |
OLD | NEW |