| 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_IA32_LITHIUM_IA32_H_ | 5 #ifndef V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ |
| 6 #define V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ | 6 #define V8_CRANKSHAFT_IA32_LITHIUM_IA32_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 2153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2164 inputs_[3] = key; | 2164 inputs_[3] = key; |
| 2165 inputs_[4] = current_capacity; | 2165 inputs_[4] = current_capacity; |
| 2166 } | 2166 } |
| 2167 | 2167 |
| 2168 LOperand* context() { return inputs_[0]; } | 2168 LOperand* context() { return inputs_[0]; } |
| 2169 LOperand* object() { return inputs_[1]; } | 2169 LOperand* object() { return inputs_[1]; } |
| 2170 LOperand* elements() { return inputs_[2]; } | 2170 LOperand* elements() { return inputs_[2]; } |
| 2171 LOperand* key() { return inputs_[3]; } | 2171 LOperand* key() { return inputs_[3]; } |
| 2172 LOperand* current_capacity() { return inputs_[4]; } | 2172 LOperand* current_capacity() { return inputs_[4]; } |
| 2173 | 2173 |
| 2174 bool ClobbersDoubleRegisters(Isolate* isolate) const override { return true; } |
| 2175 |
| 2174 DECLARE_HYDROGEN_ACCESSOR(MaybeGrowElements) | 2176 DECLARE_HYDROGEN_ACCESSOR(MaybeGrowElements) |
| 2175 DECLARE_CONCRETE_INSTRUCTION(MaybeGrowElements, "maybe-grow-elements") | 2177 DECLARE_CONCRETE_INSTRUCTION(MaybeGrowElements, "maybe-grow-elements") |
| 2176 }; | 2178 }; |
| 2177 | 2179 |
| 2178 | 2180 |
| 2179 class LStringAdd final : public LTemplateInstruction<1, 3, 0> { | 2181 class LStringAdd final : public LTemplateInstruction<1, 3, 0> { |
| 2180 public: | 2182 public: |
| 2181 LStringAdd(LOperand* context, LOperand* left, LOperand* right) { | 2183 LStringAdd(LOperand* context, LOperand* left, LOperand* right) { |
| 2182 inputs_[0] = context; | 2184 inputs_[0] = context; |
| 2183 inputs_[1] = left; | 2185 inputs_[1] = left; |
| (...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2649 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2651 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2650 }; | 2652 }; |
| 2651 | 2653 |
| 2652 #undef DECLARE_HYDROGEN_ACCESSOR | 2654 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2653 #undef DECLARE_CONCRETE_INSTRUCTION | 2655 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2654 | 2656 |
| 2655 } // namespace internal | 2657 } // namespace internal |
| 2656 } // namespace v8 | 2658 } // namespace v8 |
| 2657 | 2659 |
| 2658 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ | 2660 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ |
| OLD | NEW |