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_ARM_LITHIUM_ARM_H_ | 5 #ifndef V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ |
6 #define V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ | 6 #define V8_CRANKSHAFT_ARM_LITHIUM_ARM_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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 V(SeqStringSetChar) \ | 127 V(SeqStringSetChar) \ |
128 V(ShiftI) \ | 128 V(ShiftI) \ |
129 V(SmiTag) \ | 129 V(SmiTag) \ |
130 V(SmiUntag) \ | 130 V(SmiUntag) \ |
131 V(StackCheck) \ | 131 V(StackCheck) \ |
132 V(StoreCodeEntry) \ | 132 V(StoreCodeEntry) \ |
133 V(StoreContextSlot) \ | 133 V(StoreContextSlot) \ |
134 V(StoreKeyed) \ | 134 V(StoreKeyed) \ |
135 V(StoreKeyedGeneric) \ | 135 V(StoreKeyedGeneric) \ |
136 V(StoreNamedField) \ | 136 V(StoreNamedField) \ |
137 V(StoreNamedGeneric) \ | |
138 V(StringAdd) \ | 137 V(StringAdd) \ |
139 V(StringCharCodeAt) \ | 138 V(StringCharCodeAt) \ |
140 V(StringCharFromCode) \ | 139 V(StringCharFromCode) \ |
141 V(StringCompareAndBranch) \ | 140 V(StringCompareAndBranch) \ |
142 V(SubI) \ | 141 V(SubI) \ |
143 V(RSubI) \ | 142 V(RSubI) \ |
144 V(TaggedToI) \ | 143 V(TaggedToI) \ |
145 V(ThisFunction) \ | 144 V(ThisFunction) \ |
146 V(TransitionElementsKind) \ | 145 V(TransitionElementsKind) \ |
147 V(TrapAllocationMemento) \ | 146 V(TrapAllocationMemento) \ |
(...skipping 1850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1998 DECLARE_HYDROGEN_ACCESSOR(StoreNamedField) | 1997 DECLARE_HYDROGEN_ACCESSOR(StoreNamedField) |
1999 | 1998 |
2000 void PrintDataTo(StringStream* stream) override; | 1999 void PrintDataTo(StringStream* stream) override; |
2001 | 2000 |
2002 Representation representation() const { | 2001 Representation representation() const { |
2003 return hydrogen()->field_representation(); | 2002 return hydrogen()->field_representation(); |
2004 } | 2003 } |
2005 }; | 2004 }; |
2006 | 2005 |
2007 | 2006 |
2008 class LStoreNamedGeneric final : public LTemplateInstruction<0, 3, 2> { | |
2009 public: | |
2010 LStoreNamedGeneric(LOperand* context, LOperand* object, LOperand* value, | |
2011 LOperand* slot, LOperand* vector) { | |
2012 inputs_[0] = context; | |
2013 inputs_[1] = object; | |
2014 inputs_[2] = value; | |
2015 temps_[0] = slot; | |
2016 temps_[1] = vector; | |
2017 } | |
2018 | |
2019 LOperand* context() { return inputs_[0]; } | |
2020 LOperand* object() { return inputs_[1]; } | |
2021 LOperand* value() { return inputs_[2]; } | |
2022 LOperand* temp_slot() { return temps_[0]; } | |
2023 LOperand* temp_vector() { return temps_[1]; } | |
2024 | |
2025 DECLARE_CONCRETE_INSTRUCTION(StoreNamedGeneric, "store-named-generic") | |
2026 DECLARE_HYDROGEN_ACCESSOR(StoreNamedGeneric) | |
2027 | |
2028 void PrintDataTo(StringStream* stream) override; | |
2029 | |
2030 Handle<Object> name() const { return hydrogen()->name(); } | |
2031 LanguageMode language_mode() { return hydrogen()->language_mode(); } | |
2032 }; | |
2033 | |
2034 | |
2035 class LStoreKeyed final : public LTemplateInstruction<0, 4, 0> { | 2007 class LStoreKeyed final : public LTemplateInstruction<0, 4, 0> { |
2036 public: | 2008 public: |
2037 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value, | 2009 LStoreKeyed(LOperand* object, LOperand* key, LOperand* value, |
2038 LOperand* backing_store_owner) { | 2010 LOperand* backing_store_owner) { |
2039 inputs_[0] = object; | 2011 inputs_[0] = object; |
2040 inputs_[1] = key; | 2012 inputs_[1] = key; |
2041 inputs_[2] = value; | 2013 inputs_[2] = value; |
2042 inputs_[3] = backing_store_owner; | 2014 inputs_[3] = backing_store_owner; |
2043 } | 2015 } |
2044 | 2016 |
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2630 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2602 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2631 }; | 2603 }; |
2632 | 2604 |
2633 #undef DECLARE_HYDROGEN_ACCESSOR | 2605 #undef DECLARE_HYDROGEN_ACCESSOR |
2634 #undef DECLARE_CONCRETE_INSTRUCTION | 2606 #undef DECLARE_CONCRETE_INSTRUCTION |
2635 | 2607 |
2636 } // namespace internal | 2608 } // namespace internal |
2637 } // namespace v8 | 2609 } // namespace v8 |
2638 | 2610 |
2639 #endif // V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ | 2611 #endif // V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ |
OLD | NEW |