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 2416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2427 inputs_[3] = key; | 2427 inputs_[3] = key; |
2428 inputs_[4] = current_capacity; | 2428 inputs_[4] = current_capacity; |
2429 } | 2429 } |
2430 | 2430 |
2431 LOperand* context() { return inputs_[0]; } | 2431 LOperand* context() { return inputs_[0]; } |
2432 LOperand* object() { return inputs_[1]; } | 2432 LOperand* object() { return inputs_[1]; } |
2433 LOperand* elements() { return inputs_[2]; } | 2433 LOperand* elements() { return inputs_[2]; } |
2434 LOperand* key() { return inputs_[3]; } | 2434 LOperand* key() { return inputs_[3]; } |
2435 LOperand* current_capacity() { return inputs_[4]; } | 2435 LOperand* current_capacity() { return inputs_[4]; } |
2436 | 2436 |
| 2437 bool ClobbersDoubleRegisters(Isolate* isolate) const override { return true; } |
| 2438 |
2437 DECLARE_HYDROGEN_ACCESSOR(MaybeGrowElements) | 2439 DECLARE_HYDROGEN_ACCESSOR(MaybeGrowElements) |
2438 DECLARE_CONCRETE_INSTRUCTION(MaybeGrowElements, "maybe-grow-elements") | 2440 DECLARE_CONCRETE_INSTRUCTION(MaybeGrowElements, "maybe-grow-elements") |
2439 }; | 2441 }; |
2440 | 2442 |
2441 | 2443 |
2442 class LStringAdd final : public LTemplateInstruction<1, 3, 0> { | 2444 class LStringAdd final : public LTemplateInstruction<1, 3, 0> { |
2443 public: | 2445 public: |
2444 LStringAdd(LOperand* context, LOperand* left, LOperand* right) { | 2446 LStringAdd(LOperand* context, LOperand* left, LOperand* right) { |
2445 inputs_[0] = context; | 2447 inputs_[0] = context; |
2446 inputs_[1] = left; | 2448 inputs_[1] = left; |
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2990 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2992 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2991 }; | 2993 }; |
2992 | 2994 |
2993 #undef DECLARE_HYDROGEN_ACCESSOR | 2995 #undef DECLARE_HYDROGEN_ACCESSOR |
2994 #undef DECLARE_CONCRETE_INSTRUCTION | 2996 #undef DECLARE_CONCRETE_INSTRUCTION |
2995 | 2997 |
2996 } // namespace internal | 2998 } // namespace internal |
2997 } // namespace v8 | 2999 } // namespace v8 |
2998 | 3000 |
2999 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ | 3001 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ |
OLD | NEW |