| 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 2157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2287 } | 2288 } |
| 2288 | 2289 |
| 2289 LOperand* object() { return inputs_[0]; } | 2290 LOperand* object() { return inputs_[0]; } |
| 2290 LOperand* temp() { return temps_[0]; } | 2291 LOperand* temp() { return temps_[0]; } |
| 2291 | 2292 |
| 2292 DECLARE_CONCRETE_INSTRUCTION(TrapAllocationMemento, | 2293 DECLARE_CONCRETE_INSTRUCTION(TrapAllocationMemento, |
| 2293 "trap-allocation-memento") | 2294 "trap-allocation-memento") |
| 2294 }; | 2295 }; |
| 2295 | 2296 |
| 2296 | 2297 |
| 2298 class LMaybeGrowElements final : public LTemplateInstruction<1, 5, 0> { |
| 2299 public: |
| 2300 LMaybeGrowElements(LOperand* context, LOperand* object, LOperand* elements, |
| 2301 LOperand* key, LOperand* current_capacity) { |
| 2302 inputs_[0] = context; |
| 2303 inputs_[1] = object; |
| 2304 inputs_[2] = elements; |
| 2305 inputs_[3] = key; |
| 2306 inputs_[4] = current_capacity; |
| 2307 } |
| 2308 |
| 2309 LOperand* context() { return inputs_[0]; } |
| 2310 LOperand* object() { return inputs_[1]; } |
| 2311 LOperand* elements() { return inputs_[2]; } |
| 2312 LOperand* key() { return inputs_[3]; } |
| 2313 LOperand* current_capacity() { return inputs_[4]; } |
| 2314 |
| 2315 DECLARE_HYDROGEN_ACCESSOR(MaybeGrowElements) |
| 2316 DECLARE_CONCRETE_INSTRUCTION(MaybeGrowElements, "maybe-grow-elements") |
| 2317 }; |
| 2318 |
| 2319 |
| 2297 class LStringAdd final : public LTemplateInstruction<1, 3, 0> { | 2320 class LStringAdd final : public LTemplateInstruction<1, 3, 0> { |
| 2298 public: | 2321 public: |
| 2299 LStringAdd(LOperand* context, LOperand* left, LOperand* right) { | 2322 LStringAdd(LOperand* context, LOperand* left, LOperand* right) { |
| 2300 inputs_[0] = context; | 2323 inputs_[0] = context; |
| 2301 inputs_[1] = left; | 2324 inputs_[1] = left; |
| 2302 inputs_[2] = right; | 2325 inputs_[2] = right; |
| 2303 } | 2326 } |
| 2304 | 2327 |
| 2305 LOperand* context() { return inputs_[0]; } | 2328 LOperand* context() { return inputs_[0]; } |
| 2306 LOperand* left() { return inputs_[1]; } | 2329 LOperand* left() { return inputs_[1]; } |
| (...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2855 | 2878 |
| 2856 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2879 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2857 }; | 2880 }; |
| 2858 | 2881 |
| 2859 #undef DECLARE_HYDROGEN_ACCESSOR | 2882 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2860 #undef DECLARE_CONCRETE_INSTRUCTION | 2883 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2861 | 2884 |
| 2862 } } // namespace v8::int | 2885 } } // namespace v8::int |
| 2863 | 2886 |
| 2864 #endif // V8_X64_LITHIUM_X64_H_ | 2887 #endif // V8_X64_LITHIUM_X64_H_ |
| OLD | NEW |