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