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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 V(Return) \ | 127 V(Return) \ |
128 V(SeqStringGetChar) \ | 128 V(SeqStringGetChar) \ |
129 V(SeqStringSetChar) \ | 129 V(SeqStringSetChar) \ |
130 V(ShiftI) \ | 130 V(ShiftI) \ |
131 V(SmiTag) \ | 131 V(SmiTag) \ |
132 V(SmiUntag) \ | 132 V(SmiUntag) \ |
133 V(StackCheck) \ | 133 V(StackCheck) \ |
134 V(StoreCodeEntry) \ | 134 V(StoreCodeEntry) \ |
135 V(StoreContextSlot) \ | 135 V(StoreContextSlot) \ |
136 V(StoreKeyed) \ | 136 V(StoreKeyed) \ |
137 V(StoreKeyedGeneric) \ | |
138 V(StoreNamedField) \ | 137 V(StoreNamedField) \ |
139 V(StringAdd) \ | 138 V(StringAdd) \ |
140 V(StringCharCodeAt) \ | 139 V(StringCharCodeAt) \ |
141 V(StringCharFromCode) \ | 140 V(StringCharFromCode) \ |
142 V(StringCompareAndBranch) \ | 141 V(StringCompareAndBranch) \ |
143 V(SubI) \ | 142 V(SubI) \ |
144 V(RSubI) \ | 143 V(RSubI) \ |
145 V(TaggedToI) \ | 144 V(TaggedToI) \ |
146 V(ThisFunction) \ | 145 V(ThisFunction) \ |
147 V(TransitionElementsKind) \ | 146 V(TransitionElementsKind) \ |
(...skipping 1832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1980 if (hydrogen()->value()->IsAdd() || hydrogen()->value()->IsSub() || | 1979 if (hydrogen()->value()->IsAdd() || hydrogen()->value()->IsSub() || |
1981 hydrogen()->value()->IsMul() || hydrogen()->value()->IsDiv()) { | 1980 hydrogen()->value()->IsMul() || hydrogen()->value()->IsDiv()) { |
1982 return false; | 1981 return false; |
1983 } | 1982 } |
1984 return hydrogen()->NeedsCanonicalization(); | 1983 return hydrogen()->NeedsCanonicalization(); |
1985 } | 1984 } |
1986 uint32_t base_offset() const { return hydrogen()->base_offset(); } | 1985 uint32_t base_offset() const { return hydrogen()->base_offset(); } |
1987 }; | 1986 }; |
1988 | 1987 |
1989 | 1988 |
1990 class LStoreKeyedGeneric final : public LTemplateInstruction<0, 4, 2> { | |
1991 public: | |
1992 LStoreKeyedGeneric(LOperand* context, LOperand* object, LOperand* key, | |
1993 LOperand* value, LOperand* slot, LOperand* vector) { | |
1994 inputs_[0] = context; | |
1995 inputs_[1] = object; | |
1996 inputs_[2] = key; | |
1997 inputs_[3] = value; | |
1998 temps_[0] = slot; | |
1999 temps_[1] = vector; | |
2000 } | |
2001 | |
2002 LOperand* context() { return inputs_[0]; } | |
2003 LOperand* object() { return inputs_[1]; } | |
2004 LOperand* key() { return inputs_[2]; } | |
2005 LOperand* value() { return inputs_[3]; } | |
2006 LOperand* temp_slot() { return temps_[0]; } | |
2007 LOperand* temp_vector() { return temps_[1]; } | |
2008 | |
2009 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric, "store-keyed-generic") | |
2010 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedGeneric) | |
2011 | |
2012 void PrintDataTo(StringStream* stream) override; | |
2013 | |
2014 LanguageMode language_mode() { return hydrogen()->language_mode(); } | |
2015 }; | |
2016 | |
2017 | |
2018 class LTransitionElementsKind final : public LTemplateInstruction<0, 2, 1> { | 1989 class LTransitionElementsKind final : public LTemplateInstruction<0, 2, 1> { |
2019 public: | 1990 public: |
2020 LTransitionElementsKind(LOperand* object, LOperand* context, | 1991 LTransitionElementsKind(LOperand* object, LOperand* context, |
2021 LOperand* new_map_temp) { | 1992 LOperand* new_map_temp) { |
2022 inputs_[0] = object; | 1993 inputs_[0] = object; |
2023 inputs_[1] = context; | 1994 inputs_[1] = context; |
2024 temps_[0] = new_map_temp; | 1995 temps_[0] = new_map_temp; |
2025 } | 1996 } |
2026 | 1997 |
2027 LOperand* context() { return inputs_[1]; } | 1998 LOperand* context() { return inputs_[1]; } |
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2523 | 2494 |
2524 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2495 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2525 }; | 2496 }; |
2526 | 2497 |
2527 #undef DECLARE_HYDROGEN_ACCESSOR | 2498 #undef DECLARE_HYDROGEN_ACCESSOR |
2528 #undef DECLARE_CONCRETE_INSTRUCTION | 2499 #undef DECLARE_CONCRETE_INSTRUCTION |
2529 } // namespace internal | 2500 } // namespace internal |
2530 } // namespace v8 | 2501 } // namespace v8 |
2531 | 2502 |
2532 #endif // V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ | 2503 #endif // V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ |
OLD | NEW |