| 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_MIPS_LITHIUM_MIPS_H_ | 5 #ifndef V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ |
| 6 #define V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ | 6 #define V8_CRANKSHAFT_MIPS_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 2098 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2109 inputs_[3] = key; | 2109 inputs_[3] = key; |
| 2110 inputs_[4] = current_capacity; | 2110 inputs_[4] = current_capacity; |
| 2111 } | 2111 } |
| 2112 | 2112 |
| 2113 LOperand* context() { return inputs_[0]; } | 2113 LOperand* context() { return inputs_[0]; } |
| 2114 LOperand* object() { return inputs_[1]; } | 2114 LOperand* object() { return inputs_[1]; } |
| 2115 LOperand* elements() { return inputs_[2]; } | 2115 LOperand* elements() { return inputs_[2]; } |
| 2116 LOperand* key() { return inputs_[3]; } | 2116 LOperand* key() { return inputs_[3]; } |
| 2117 LOperand* current_capacity() { return inputs_[4]; } | 2117 LOperand* current_capacity() { return inputs_[4]; } |
| 2118 | 2118 |
| 2119 bool ClobbersDoubleRegisters(Isolate* isolate) const override { return true; } |
| 2120 |
| 2119 DECLARE_HYDROGEN_ACCESSOR(MaybeGrowElements) | 2121 DECLARE_HYDROGEN_ACCESSOR(MaybeGrowElements) |
| 2120 DECLARE_CONCRETE_INSTRUCTION(MaybeGrowElements, "maybe-grow-elements") | 2122 DECLARE_CONCRETE_INSTRUCTION(MaybeGrowElements, "maybe-grow-elements") |
| 2121 }; | 2123 }; |
| 2122 | 2124 |
| 2123 | 2125 |
| 2124 class LStringAdd final : public LTemplateInstruction<1, 3, 0> { | 2126 class LStringAdd final : public LTemplateInstruction<1, 3, 0> { |
| 2125 public: | 2127 public: |
| 2126 LStringAdd(LOperand* context, LOperand* left, LOperand* right) { | 2128 LStringAdd(LOperand* context, LOperand* left, LOperand* right) { |
| 2127 inputs_[0] = context; | 2129 inputs_[0] = context; |
| 2128 inputs_[1] = left; | 2130 inputs_[1] = left; |
| (...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2587 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2589 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2588 }; | 2590 }; |
| 2589 | 2591 |
| 2590 #undef DECLARE_HYDROGEN_ACCESSOR | 2592 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2591 #undef DECLARE_CONCRETE_INSTRUCTION | 2593 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2592 | 2594 |
| 2593 } // namespace internal | 2595 } // namespace internal |
| 2594 } // namespace v8 | 2596 } // namespace v8 |
| 2595 | 2597 |
| 2596 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ | 2598 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ |
| OLD | NEW |