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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 V(Return) \ | 125 V(Return) \ |
126 V(SeqStringGetChar) \ | 126 V(SeqStringGetChar) \ |
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) \ | |
136 V(StoreNamedField) \ | 135 V(StoreNamedField) \ |
137 V(StringAdd) \ | 136 V(StringAdd) \ |
138 V(StringCharCodeAt) \ | 137 V(StringCharCodeAt) \ |
139 V(StringCharFromCode) \ | 138 V(StringCharFromCode) \ |
140 V(StringCompareAndBranch) \ | 139 V(StringCompareAndBranch) \ |
141 V(SubI) \ | 140 V(SubI) \ |
142 V(RSubI) \ | 141 V(RSubI) \ |
143 V(TaggedToI) \ | 142 V(TaggedToI) \ |
144 V(ThisFunction) \ | 143 V(ThisFunction) \ |
145 V(TransitionElementsKind) \ | 144 V(TransitionElementsKind) \ |
(...skipping 1887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2033 if (hydrogen()->value()->IsAdd() || hydrogen()->value()->IsSub() || | 2032 if (hydrogen()->value()->IsAdd() || hydrogen()->value()->IsSub() || |
2034 hydrogen()->value()->IsMul() || hydrogen()->value()->IsDiv()) { | 2033 hydrogen()->value()->IsMul() || hydrogen()->value()->IsDiv()) { |
2035 return false; | 2034 return false; |
2036 } | 2035 } |
2037 return hydrogen()->NeedsCanonicalization(); | 2036 return hydrogen()->NeedsCanonicalization(); |
2038 } | 2037 } |
2039 uint32_t base_offset() const { return hydrogen()->base_offset(); } | 2038 uint32_t base_offset() const { return hydrogen()->base_offset(); } |
2040 }; | 2039 }; |
2041 | 2040 |
2042 | 2041 |
2043 class LStoreKeyedGeneric final : public LTemplateInstruction<0, 4, 2> { | |
2044 public: | |
2045 LStoreKeyedGeneric(LOperand* context, LOperand* object, LOperand* key, | |
2046 LOperand* value, LOperand* slot, LOperand* vector) { | |
2047 inputs_[0] = context; | |
2048 inputs_[1] = object; | |
2049 inputs_[2] = key; | |
2050 inputs_[3] = value; | |
2051 temps_[0] = slot; | |
2052 temps_[1] = vector; | |
2053 } | |
2054 | |
2055 LOperand* context() { return inputs_[0]; } | |
2056 LOperand* object() { return inputs_[1]; } | |
2057 LOperand* key() { return inputs_[2]; } | |
2058 LOperand* value() { return inputs_[3]; } | |
2059 LOperand* temp_slot() { return temps_[0]; } | |
2060 LOperand* temp_vector() { return temps_[1]; } | |
2061 | |
2062 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric, "store-keyed-generic") | |
2063 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedGeneric) | |
2064 | |
2065 void PrintDataTo(StringStream* stream) override; | |
2066 | |
2067 LanguageMode language_mode() { return hydrogen()->language_mode(); } | |
2068 }; | |
2069 | |
2070 | |
2071 class LTransitionElementsKind final : public LTemplateInstruction<0, 2, 1> { | 2042 class LTransitionElementsKind final : public LTemplateInstruction<0, 2, 1> { |
2072 public: | 2043 public: |
2073 LTransitionElementsKind(LOperand* object, | 2044 LTransitionElementsKind(LOperand* object, |
2074 LOperand* context, | 2045 LOperand* context, |
2075 LOperand* new_map_temp) { | 2046 LOperand* new_map_temp) { |
2076 inputs_[0] = object; | 2047 inputs_[0] = object; |
2077 inputs_[1] = context; | 2048 inputs_[1] = context; |
2078 temps_[0] = new_map_temp; | 2049 temps_[0] = new_map_temp; |
2079 } | 2050 } |
2080 | 2051 |
(...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2602 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2573 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2603 }; | 2574 }; |
2604 | 2575 |
2605 #undef DECLARE_HYDROGEN_ACCESSOR | 2576 #undef DECLARE_HYDROGEN_ACCESSOR |
2606 #undef DECLARE_CONCRETE_INSTRUCTION | 2577 #undef DECLARE_CONCRETE_INSTRUCTION |
2607 | 2578 |
2608 } // namespace internal | 2579 } // namespace internal |
2609 } // namespace v8 | 2580 } // namespace v8 |
2610 | 2581 |
2611 #endif // V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ | 2582 #endif // V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ |
OLD | NEW |