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_X87_LITHIUM_X87_H_ | 5 #ifndef V8_CRANKSHAFT_X87_LITHIUM_X87_H_ |
6 #define V8_CRANKSHAFT_X87_LITHIUM_X87_H_ | 6 #define V8_CRANKSHAFT_X87_LITHIUM_X87_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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 V(SeqStringSetChar) \ | 130 V(SeqStringSetChar) \ |
131 V(ShiftI) \ | 131 V(ShiftI) \ |
132 V(SmiTag) \ | 132 V(SmiTag) \ |
133 V(SmiUntag) \ | 133 V(SmiUntag) \ |
134 V(StackCheck) \ | 134 V(StackCheck) \ |
135 V(StoreCodeEntry) \ | 135 V(StoreCodeEntry) \ |
136 V(StoreContextSlot) \ | 136 V(StoreContextSlot) \ |
137 V(StoreKeyed) \ | 137 V(StoreKeyed) \ |
138 V(StoreKeyedGeneric) \ | 138 V(StoreKeyedGeneric) \ |
139 V(StoreNamedField) \ | 139 V(StoreNamedField) \ |
140 V(StoreNamedGeneric) \ | |
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) \ |
150 V(Typeof) \ | 149 V(Typeof) \ |
(...skipping 1850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2001 LOperand* temp() { return temps_[0]; } | 2000 LOperand* temp() { return temps_[0]; } |
2002 LOperand* temp_map() { return temps_[1]; } | 2001 LOperand* temp_map() { return temps_[1]; } |
2003 | 2002 |
2004 DECLARE_CONCRETE_INSTRUCTION(StoreNamedField, "store-named-field") | 2003 DECLARE_CONCRETE_INSTRUCTION(StoreNamedField, "store-named-field") |
2005 DECLARE_HYDROGEN_ACCESSOR(StoreNamedField) | 2004 DECLARE_HYDROGEN_ACCESSOR(StoreNamedField) |
2006 | 2005 |
2007 void PrintDataTo(StringStream* stream) override; | 2006 void PrintDataTo(StringStream* stream) override; |
2008 }; | 2007 }; |
2009 | 2008 |
2010 | 2009 |
2011 class LStoreNamedGeneric final : public LTemplateInstruction<0, 3, 2> { | |
2012 public: | |
2013 LStoreNamedGeneric(LOperand* context, LOperand* object, LOperand* value, | |
2014 LOperand* slot, LOperand* vector) { | |
2015 inputs_[0] = context; | |
2016 inputs_[1] = object; | |
2017 inputs_[2] = value; | |
2018 temps_[0] = slot; | |
2019 temps_[1] = vector; | |
2020 } | |
2021 | |
2022 LOperand* context() { return inputs_[0]; } | |
2023 LOperand* object() { return inputs_[1]; } | |
2024 LOperand* value() { return inputs_[2]; } | |
2025 LOperand* temp_slot() { return temps_[0]; } | |
2026 LOperand* temp_vector() { return temps_[1]; } | |
2027 | |
2028 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic") | |
2029 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric) | |
2030 | |
2031 void PrintDataTo(StringStream* stream) override; | |
2032 Handle<Object> name() const { return hydrogen()->name(); } | |
2033 LanguageMode language_mode() { return hydrogen()->language_mode(); } | |
2034 }; | |
2035 | |
2036 | |
2037 class LStoreKeyed final : public LTemplateInstruction<0, 4, 0> { | 2010 class LStoreKeyed final : public LTemplateInstruction<0, 4, 0> { |
2038 public: | 2011 public: |
2039 LStoreKeyed(LOperand* obj, LOperand* key, LOperand* val, | 2012 LStoreKeyed(LOperand* obj, LOperand* key, LOperand* val, |
2040 LOperand* backing_store_owner) { | 2013 LOperand* backing_store_owner) { |
2041 inputs_[0] = obj; | 2014 inputs_[0] = obj; |
2042 inputs_[1] = key; | 2015 inputs_[1] = key; |
2043 inputs_[2] = val; | 2016 inputs_[2] = val; |
2044 inputs_[3] = backing_store_owner; | 2017 inputs_[3] = backing_store_owner; |
2045 } | 2018 } |
2046 | 2019 |
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2645 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2618 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2646 }; | 2619 }; |
2647 | 2620 |
2648 #undef DECLARE_HYDROGEN_ACCESSOR | 2621 #undef DECLARE_HYDROGEN_ACCESSOR |
2649 #undef DECLARE_CONCRETE_INSTRUCTION | 2622 #undef DECLARE_CONCRETE_INSTRUCTION |
2650 | 2623 |
2651 } // namespace internal | 2624 } // namespace internal |
2652 } // namespace v8 | 2625 } // namespace v8 |
2653 | 2626 |
2654 #endif // V8_CRANKSHAFT_X87_LITHIUM_X87_H_ | 2627 #endif // V8_CRANKSHAFT_X87_LITHIUM_X87_H_ |
OLD | NEW |