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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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) \ | 139 V(StoreKeyedGeneric) \ |
140 V(StoreNamedField) \ | 140 V(StoreNamedField) \ |
141 V(StoreNamedGeneric) \ | |
142 V(StringAdd) \ | 141 V(StringAdd) \ |
143 V(StringCharCodeAt) \ | 142 V(StringCharCodeAt) \ |
144 V(StringCharFromCode) \ | 143 V(StringCharFromCode) \ |
145 V(StringCompareAndBranch) \ | 144 V(StringCompareAndBranch) \ |
146 V(SubI) \ | 145 V(SubI) \ |
147 V(TaggedToI) \ | 146 V(TaggedToI) \ |
148 V(ThisFunction) \ | 147 V(ThisFunction) \ |
149 V(TransitionElementsKind) \ | 148 V(TransitionElementsKind) \ |
150 V(TrapAllocationMemento) \ | 149 V(TrapAllocationMemento) \ |
151 V(Typeof) \ | 150 V(Typeof) \ |
(...skipping 1863 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2015 LOperand* temp() { return temps_[0]; } | 2014 LOperand* temp() { return temps_[0]; } |
2016 LOperand* temp_map() { return temps_[1]; } | 2015 LOperand* temp_map() { return temps_[1]; } |
2017 | 2016 |
2018 DECLARE_CONCRETE_INSTRUCTION(StoreNamedField, "store-named-field") | 2017 DECLARE_CONCRETE_INSTRUCTION(StoreNamedField, "store-named-field") |
2019 DECLARE_HYDROGEN_ACCESSOR(StoreNamedField) | 2018 DECLARE_HYDROGEN_ACCESSOR(StoreNamedField) |
2020 | 2019 |
2021 void PrintDataTo(StringStream* stream) override; | 2020 void PrintDataTo(StringStream* stream) override; |
2022 }; | 2021 }; |
2023 | 2022 |
2024 | 2023 |
2025 class LStoreNamedGeneric final : public LTemplateInstruction<0, 3, 2> { | |
2026 public: | |
2027 LStoreNamedGeneric(LOperand* context, LOperand* object, LOperand* value, | |
2028 LOperand* slot, LOperand* vector) { | |
2029 inputs_[0] = context; | |
2030 inputs_[1] = object; | |
2031 inputs_[2] = value; | |
2032 temps_[0] = slot; | |
2033 temps_[1] = vector; | |
2034 } | |
2035 | |
2036 LOperand* context() { return inputs_[0]; } | |
2037 LOperand* object() { return inputs_[1]; } | |
2038 LOperand* value() { return inputs_[2]; } | |
2039 LOperand* temp_slot() { return temps_[0]; } | |
2040 LOperand* temp_vector() { return temps_[1]; } | |
2041 | |
2042 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic") | |
2043 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric) | |
2044 | |
2045 void PrintDataTo(StringStream* stream) override; | |
2046 Handle<Object> name() const { return hydrogen()->name(); } | |
2047 LanguageMode language_mode() { return hydrogen()->language_mode(); } | |
2048 }; | |
2049 | |
2050 | |
2051 class LStoreKeyed final : public LTemplateInstruction<0, 4, 0> { | 2024 class LStoreKeyed final : public LTemplateInstruction<0, 4, 0> { |
2052 public: | 2025 public: |
2053 LStoreKeyed(LOperand* obj, LOperand* key, LOperand* val, | 2026 LStoreKeyed(LOperand* obj, LOperand* key, LOperand* val, |
2054 LOperand* backing_store_owner) { | 2027 LOperand* backing_store_owner) { |
2055 inputs_[0] = obj; | 2028 inputs_[0] = obj; |
2056 inputs_[1] = key; | 2029 inputs_[1] = key; |
2057 inputs_[2] = val; | 2030 inputs_[2] = val; |
2058 inputs_[3] = backing_store_owner; | 2031 inputs_[3] = backing_store_owner; |
2059 } | 2032 } |
2060 | 2033 |
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2651 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2624 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2652 }; | 2625 }; |
2653 | 2626 |
2654 #undef DECLARE_HYDROGEN_ACCESSOR | 2627 #undef DECLARE_HYDROGEN_ACCESSOR |
2655 #undef DECLARE_CONCRETE_INSTRUCTION | 2628 #undef DECLARE_CONCRETE_INSTRUCTION |
2656 | 2629 |
2657 } // namespace internal | 2630 } // namespace internal |
2658 } // namespace v8 | 2631 } // namespace v8 |
2659 | 2632 |
2660 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ | 2633 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ |
OLD | NEW |