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_MIPS64_LITHIUM_MIPS_H_ | 5 #ifndef V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ |
6 #define V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ | 6 #define V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 V(Return) \ | 126 V(Return) \ |
127 V(SeqStringGetChar) \ | 127 V(SeqStringGetChar) \ |
128 V(SeqStringSetChar) \ | 128 V(SeqStringSetChar) \ |
129 V(ShiftI) \ | 129 V(ShiftI) \ |
130 V(SmiTag) \ | 130 V(SmiTag) \ |
131 V(SmiUntag) \ | 131 V(SmiUntag) \ |
132 V(StackCheck) \ | 132 V(StackCheck) \ |
133 V(StoreCodeEntry) \ | 133 V(StoreCodeEntry) \ |
134 V(StoreContextSlot) \ | 134 V(StoreContextSlot) \ |
135 V(StoreKeyed) \ | 135 V(StoreKeyed) \ |
136 V(StoreKeyedGeneric) \ | |
137 V(StoreNamedField) \ | 136 V(StoreNamedField) \ |
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(SubS) \ | 142 V(SubS) \ |
144 V(TaggedToI) \ | 143 V(TaggedToI) \ |
145 V(ThisFunction) \ | 144 V(ThisFunction) \ |
146 V(TransitionElementsKind) \ | 145 V(TransitionElementsKind) \ |
(...skipping 1890 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2037 | 2036 |
2038 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed") | 2037 DECLARE_CONCRETE_INSTRUCTION(StoreKeyed, "store-keyed") |
2039 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed) | 2038 DECLARE_HYDROGEN_ACCESSOR(StoreKeyed) |
2040 | 2039 |
2041 void PrintDataTo(StringStream* stream) override; | 2040 void PrintDataTo(StringStream* stream) override; |
2042 bool NeedsCanonicalization() { return hydrogen()->NeedsCanonicalization(); } | 2041 bool NeedsCanonicalization() { return hydrogen()->NeedsCanonicalization(); } |
2043 uint32_t base_offset() const { return hydrogen()->base_offset(); } | 2042 uint32_t base_offset() const { return hydrogen()->base_offset(); } |
2044 }; | 2043 }; |
2045 | 2044 |
2046 | 2045 |
2047 class LStoreKeyedGeneric final : public LTemplateInstruction<0, 4, 2> { | |
2048 public: | |
2049 LStoreKeyedGeneric(LOperand* context, LOperand* object, LOperand* key, | |
2050 LOperand* value, LOperand* slot, LOperand* vector) { | |
2051 inputs_[0] = context; | |
2052 inputs_[1] = object; | |
2053 inputs_[2] = key; | |
2054 inputs_[3] = value; | |
2055 temps_[0] = slot; | |
2056 temps_[1] = vector; | |
2057 } | |
2058 | |
2059 LOperand* context() { return inputs_[0]; } | |
2060 LOperand* object() { return inputs_[1]; } | |
2061 LOperand* key() { return inputs_[2]; } | |
2062 LOperand* value() { return inputs_[3]; } | |
2063 LOperand* temp_slot() { return temps_[0]; } | |
2064 LOperand* temp_vector() { return temps_[1]; } | |
2065 | |
2066 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric, "store-keyed-generic") | |
2067 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedGeneric) | |
2068 | |
2069 void PrintDataTo(StringStream* stream) override; | |
2070 | |
2071 LanguageMode language_mode() { return hydrogen()->language_mode(); } | |
2072 }; | |
2073 | |
2074 | |
2075 class LTransitionElementsKind final : public LTemplateInstruction<0, 2, 1> { | 2046 class LTransitionElementsKind final : public LTemplateInstruction<0, 2, 1> { |
2076 public: | 2047 public: |
2077 LTransitionElementsKind(LOperand* object, | 2048 LTransitionElementsKind(LOperand* object, |
2078 LOperand* context, | 2049 LOperand* context, |
2079 LOperand* new_map_temp) { | 2050 LOperand* new_map_temp) { |
2080 inputs_[0] = object; | 2051 inputs_[0] = object; |
2081 inputs_[1] = context; | 2052 inputs_[1] = context; |
2082 temps_[0] = new_map_temp; | 2053 temps_[0] = new_map_temp; |
2083 } | 2054 } |
2084 | 2055 |
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2607 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2578 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2608 }; | 2579 }; |
2609 | 2580 |
2610 #undef DECLARE_HYDROGEN_ACCESSOR | 2581 #undef DECLARE_HYDROGEN_ACCESSOR |
2611 #undef DECLARE_CONCRETE_INSTRUCTION | 2582 #undef DECLARE_CONCRETE_INSTRUCTION |
2612 | 2583 |
2613 } // namespace internal | 2584 } // namespace internal |
2614 } // namespace v8 | 2585 } // namespace v8 |
2615 | 2586 |
2616 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ | 2587 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ |
OLD | NEW |