| 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_X64_LITHIUM_X64_H_ | 5 #ifndef V8_X64_LITHIUM_X64_H_ |
| 6 #define V8_X64_LITHIUM_X64_H_ | 6 #define V8_X64_LITHIUM_X64_H_ |
| 7 | 7 |
| 8 #include "src/hydrogen.h" | 8 #include "src/hydrogen.h" |
| 9 #include "src/lithium.h" | 9 #include "src/lithium.h" |
| 10 #include "src/lithium-allocator.h" | 10 #include "src/lithium-allocator.h" |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 V(MathAbs) \ | 110 V(MathAbs) \ |
| 111 V(MathClz32) \ | 111 V(MathClz32) \ |
| 112 V(MathExp) \ | 112 V(MathExp) \ |
| 113 V(MathFloor) \ | 113 V(MathFloor) \ |
| 114 V(MathFround) \ | 114 V(MathFround) \ |
| 115 V(MathLog) \ | 115 V(MathLog) \ |
| 116 V(MathMinMax) \ | 116 V(MathMinMax) \ |
| 117 V(MathPowHalf) \ | 117 V(MathPowHalf) \ |
| 118 V(MathRound) \ | 118 V(MathRound) \ |
| 119 V(MathSqrt) \ | 119 V(MathSqrt) \ |
| 120 V(MaybeGrowElements) \ |
| 120 V(ModByConstI) \ | 121 V(ModByConstI) \ |
| 121 V(ModByPowerOf2I) \ | 122 V(ModByPowerOf2I) \ |
| 122 V(ModI) \ | 123 V(ModI) \ |
| 123 V(MulI) \ | 124 V(MulI) \ |
| 124 V(NumberTagD) \ | 125 V(NumberTagD) \ |
| 125 V(NumberTagI) \ | 126 V(NumberTagI) \ |
| 126 V(NumberTagU) \ | 127 V(NumberTagU) \ |
| 127 V(NumberUntagD) \ | 128 V(NumberUntagD) \ |
| 128 V(OsrEntry) \ | 129 V(OsrEntry) \ |
| 129 V(Parameter) \ | 130 V(Parameter) \ |
| (...skipping 2153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2283 } | 2284 } |
| 2284 | 2285 |
| 2285 LOperand* object() { return inputs_[0]; } | 2286 LOperand* object() { return inputs_[0]; } |
| 2286 LOperand* temp() { return temps_[0]; } | 2287 LOperand* temp() { return temps_[0]; } |
| 2287 | 2288 |
| 2288 DECLARE_CONCRETE_INSTRUCTION(TrapAllocationMemento, | 2289 DECLARE_CONCRETE_INSTRUCTION(TrapAllocationMemento, |
| 2289 "trap-allocation-memento") | 2290 "trap-allocation-memento") |
| 2290 }; | 2291 }; |
| 2291 | 2292 |
| 2292 | 2293 |
| 2294 class LMaybeGrowElements final : public LTemplateInstruction<1, 5, 0> { |
| 2295 public: |
| 2296 LMaybeGrowElements(LOperand* context, LOperand* object, LOperand* elements, |
| 2297 LOperand* key, LOperand* current_capacity) { |
| 2298 inputs_[0] = context; |
| 2299 inputs_[1] = object; |
| 2300 inputs_[2] = elements; |
| 2301 inputs_[3] = key; |
| 2302 inputs_[4] = current_capacity; |
| 2303 } |
| 2304 |
| 2305 LOperand* context() { return inputs_[0]; } |
| 2306 LOperand* object() { return inputs_[1]; } |
| 2307 LOperand* elements() { return inputs_[2]; } |
| 2308 LOperand* key() { return inputs_[3]; } |
| 2309 LOperand* current_capacity() { return inputs_[4]; } |
| 2310 |
| 2311 DECLARE_HYDROGEN_ACCESSOR(MaybeGrowElements) |
| 2312 DECLARE_CONCRETE_INSTRUCTION(MaybeGrowElements, "maybe-grow-elements") |
| 2313 }; |
| 2314 |
| 2315 |
| 2293 class LStringAdd final : public LTemplateInstruction<1, 3, 0> { | 2316 class LStringAdd final : public LTemplateInstruction<1, 3, 0> { |
| 2294 public: | 2317 public: |
| 2295 LStringAdd(LOperand* context, LOperand* left, LOperand* right) { | 2318 LStringAdd(LOperand* context, LOperand* left, LOperand* right) { |
| 2296 inputs_[0] = context; | 2319 inputs_[0] = context; |
| 2297 inputs_[1] = left; | 2320 inputs_[1] = left; |
| 2298 inputs_[2] = right; | 2321 inputs_[2] = right; |
| 2299 } | 2322 } |
| 2300 | 2323 |
| 2301 LOperand* context() { return inputs_[0]; } | 2324 LOperand* context() { return inputs_[0]; } |
| 2302 LOperand* left() { return inputs_[1]; } | 2325 LOperand* left() { return inputs_[1]; } |
| (...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2851 | 2874 |
| 2852 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2875 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2853 }; | 2876 }; |
| 2854 | 2877 |
| 2855 #undef DECLARE_HYDROGEN_ACCESSOR | 2878 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2856 #undef DECLARE_CONCRETE_INSTRUCTION | 2879 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2857 | 2880 |
| 2858 } } // namespace v8::int | 2881 } } // namespace v8::int |
| 2859 | 2882 |
| 2860 #endif // V8_X64_LITHIUM_X64_H_ | 2883 #endif // V8_X64_LITHIUM_X64_H_ |
| OLD | NEW |