| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64_LITHIUM_ARM64_H_ | 5 #ifndef V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ |
| 6 #define V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ | 6 #define V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 V(ShiftI) \ | 136 V(ShiftI) \ |
| 137 V(ShiftS) \ | 137 V(ShiftS) \ |
| 138 V(SmiTag) \ | 138 V(SmiTag) \ |
| 139 V(SmiUntag) \ | 139 V(SmiUntag) \ |
| 140 V(StackCheck) \ | 140 V(StackCheck) \ |
| 141 V(StoreCodeEntry) \ | 141 V(StoreCodeEntry) \ |
| 142 V(StoreContextSlot) \ | 142 V(StoreContextSlot) \ |
| 143 V(StoreKeyedExternal) \ | 143 V(StoreKeyedExternal) \ |
| 144 V(StoreKeyedFixed) \ | 144 V(StoreKeyedFixed) \ |
| 145 V(StoreKeyedFixedDouble) \ | 145 V(StoreKeyedFixedDouble) \ |
| 146 V(StoreKeyedGeneric) \ | |
| 147 V(StoreNamedField) \ | 146 V(StoreNamedField) \ |
| 148 V(StringAdd) \ | 147 V(StringAdd) \ |
| 149 V(StringCharCodeAt) \ | 148 V(StringCharCodeAt) \ |
| 150 V(StringCharFromCode) \ | 149 V(StringCharFromCode) \ |
| 151 V(StringCompareAndBranch) \ | 150 V(StringCompareAndBranch) \ |
| 152 V(SubI) \ | 151 V(SubI) \ |
| 153 V(SubS) \ | 152 V(SubS) \ |
| 154 V(TaggedToI) \ | 153 V(TaggedToI) \ |
| 155 V(ThisFunction) \ | 154 V(ThisFunction) \ |
| 156 V(TransitionElementsKind) \ | 155 V(TransitionElementsKind) \ |
| (...skipping 2171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2328 temps_[0] = temp; | 2327 temps_[0] = temp; |
| 2329 } | 2328 } |
| 2330 | 2329 |
| 2331 LOperand* temp() { return temps_[0]; } | 2330 LOperand* temp() { return temps_[0]; } |
| 2332 | 2331 |
| 2333 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedFixedDouble, | 2332 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedFixedDouble, |
| 2334 "store-keyed-fixed-double") | 2333 "store-keyed-fixed-double") |
| 2335 }; | 2334 }; |
| 2336 | 2335 |
| 2337 | 2336 |
| 2338 class LStoreKeyedGeneric final : public LTemplateInstruction<0, 4, 2> { | |
| 2339 public: | |
| 2340 LStoreKeyedGeneric(LOperand* context, LOperand* object, LOperand* key, | |
| 2341 LOperand* value, LOperand* slot, LOperand* vector) { | |
| 2342 inputs_[0] = context; | |
| 2343 inputs_[1] = object; | |
| 2344 inputs_[2] = key; | |
| 2345 inputs_[3] = value; | |
| 2346 temps_[0] = slot; | |
| 2347 temps_[1] = vector; | |
| 2348 } | |
| 2349 | |
| 2350 LOperand* context() { return inputs_[0]; } | |
| 2351 LOperand* object() { return inputs_[1]; } | |
| 2352 LOperand* key() { return inputs_[2]; } | |
| 2353 LOperand* value() { return inputs_[3]; } | |
| 2354 LOperand* temp_slot() { return temps_[0]; } | |
| 2355 LOperand* temp_vector() { return temps_[1]; } | |
| 2356 | |
| 2357 DECLARE_CONCRETE_INSTRUCTION(StoreKeyedGeneric, "store-keyed-generic") | |
| 2358 DECLARE_HYDROGEN_ACCESSOR(StoreKeyedGeneric) | |
| 2359 | |
| 2360 void PrintDataTo(StringStream* stream) override; | |
| 2361 | |
| 2362 LanguageMode language_mode() { return hydrogen()->language_mode(); } | |
| 2363 }; | |
| 2364 | |
| 2365 | |
| 2366 class LStoreNamedField final : public LTemplateInstruction<0, 2, 2> { | 2337 class LStoreNamedField final : public LTemplateInstruction<0, 2, 2> { |
| 2367 public: | 2338 public: |
| 2368 LStoreNamedField(LOperand* object, LOperand* value, | 2339 LStoreNamedField(LOperand* object, LOperand* value, |
| 2369 LOperand* temp0, LOperand* temp1) { | 2340 LOperand* temp0, LOperand* temp1) { |
| 2370 inputs_[0] = object; | 2341 inputs_[0] = object; |
| 2371 inputs_[1] = value; | 2342 inputs_[1] = value; |
| 2372 temps_[0] = temp0; | 2343 temps_[0] = temp0; |
| 2373 temps_[1] = temp1; | 2344 temps_[1] = temp1; |
| 2374 } | 2345 } |
| 2375 | 2346 |
| (...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2964 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2935 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2965 }; | 2936 }; |
| 2966 | 2937 |
| 2967 #undef DECLARE_HYDROGEN_ACCESSOR | 2938 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2968 #undef DECLARE_CONCRETE_INSTRUCTION | 2939 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2969 | 2940 |
| 2970 } // namespace internal | 2941 } // namespace internal |
| 2971 } // namespace v8 | 2942 } // namespace v8 |
| 2972 | 2943 |
| 2973 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ | 2944 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ |
| OLD | NEW |