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_X64_LITHIUM_X64_H_ | 5 #ifndef V8_CRANKSHAFT_X64_LITHIUM_X64_H_ |
6 #define V8_CRANKSHAFT_X64_LITHIUM_X64_H_ | 6 #define V8_CRANKSHAFT_X64_LITHIUM_X64_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 2143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2154 inputs_[3] = key; | 2154 inputs_[3] = key; |
2155 inputs_[4] = current_capacity; | 2155 inputs_[4] = current_capacity; |
2156 } | 2156 } |
2157 | 2157 |
2158 LOperand* context() { return inputs_[0]; } | 2158 LOperand* context() { return inputs_[0]; } |
2159 LOperand* object() { return inputs_[1]; } | 2159 LOperand* object() { return inputs_[1]; } |
2160 LOperand* elements() { return inputs_[2]; } | 2160 LOperand* elements() { return inputs_[2]; } |
2161 LOperand* key() { return inputs_[3]; } | 2161 LOperand* key() { return inputs_[3]; } |
2162 LOperand* current_capacity() { return inputs_[4]; } | 2162 LOperand* current_capacity() { return inputs_[4]; } |
2163 | 2163 |
| 2164 bool ClobbersDoubleRegisters(Isolate* isolate) const override { return true; } |
| 2165 |
2164 DECLARE_HYDROGEN_ACCESSOR(MaybeGrowElements) | 2166 DECLARE_HYDROGEN_ACCESSOR(MaybeGrowElements) |
2165 DECLARE_CONCRETE_INSTRUCTION(MaybeGrowElements, "maybe-grow-elements") | 2167 DECLARE_CONCRETE_INSTRUCTION(MaybeGrowElements, "maybe-grow-elements") |
2166 }; | 2168 }; |
2167 | 2169 |
2168 | 2170 |
2169 class LStringAdd final : public LTemplateInstruction<1, 3, 0> { | 2171 class LStringAdd final : public LTemplateInstruction<1, 3, 0> { |
2170 public: | 2172 public: |
2171 LStringAdd(LOperand* context, LOperand* left, LOperand* right) { | 2173 LStringAdd(LOperand* context, LOperand* left, LOperand* right) { |
2172 inputs_[0] = context; | 2174 inputs_[0] = context; |
2173 inputs_[1] = left; | 2175 inputs_[1] = left; |
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2634 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2636 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2635 }; | 2637 }; |
2636 | 2638 |
2637 #undef DECLARE_HYDROGEN_ACCESSOR | 2639 #undef DECLARE_HYDROGEN_ACCESSOR |
2638 #undef DECLARE_CONCRETE_INSTRUCTION | 2640 #undef DECLARE_CONCRETE_INSTRUCTION |
2639 | 2641 |
2640 } // namespace internal | 2642 } // namespace internal |
2641 } // namespace v8 | 2643 } // namespace v8 |
2642 | 2644 |
2643 #endif // V8_CRANKSHAFT_X64_LITHIUM_X64_H_ | 2645 #endif // V8_CRANKSHAFT_X64_LITHIUM_X64_H_ |
OLD | NEW |