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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 V(CompareNumericAndBranch) \ | 50 V(CompareNumericAndBranch) \ |
51 V(CmpObjectEqAndBranch) \ | 51 V(CmpObjectEqAndBranch) \ |
52 V(CmpHoleAndBranch) \ | 52 V(CmpHoleAndBranch) \ |
53 V(CmpMapAndBranch) \ | 53 V(CmpMapAndBranch) \ |
54 V(CmpT) \ | 54 V(CmpT) \ |
55 V(ConstantD) \ | 55 V(ConstantD) \ |
56 V(ConstantE) \ | 56 V(ConstantE) \ |
57 V(ConstantI) \ | 57 V(ConstantI) \ |
58 V(ConstantS) \ | 58 V(ConstantS) \ |
59 V(ConstantT) \ | 59 V(ConstantT) \ |
60 V(ConstructDouble) \ | |
61 V(Context) \ | 60 V(Context) \ |
62 V(DebugBreak) \ | 61 V(DebugBreak) \ |
63 V(DeclareGlobals) \ | 62 V(DeclareGlobals) \ |
64 V(Deoptimize) \ | 63 V(Deoptimize) \ |
65 V(DivByConstI) \ | 64 V(DivByConstI) \ |
66 V(DivByPowerOf2I) \ | 65 V(DivByPowerOf2I) \ |
67 V(DivI) \ | 66 V(DivI) \ |
68 V(DoubleBits) \ | 67 V(DoubleBits) \ |
69 V(DoubleToI) \ | 68 V(DoubleToI) \ |
70 V(DoubleToSmi) \ | 69 V(DoubleToSmi) \ |
(...skipping 2287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2358 inputs_[0] = value; | 2357 inputs_[0] = value; |
2359 } | 2358 } |
2360 | 2359 |
2361 LOperand* value() { return inputs_[0]; } | 2360 LOperand* value() { return inputs_[0]; } |
2362 | 2361 |
2363 DECLARE_CONCRETE_INSTRUCTION(DoubleBits, "double-bits") | 2362 DECLARE_CONCRETE_INSTRUCTION(DoubleBits, "double-bits") |
2364 DECLARE_HYDROGEN_ACCESSOR(DoubleBits) | 2363 DECLARE_HYDROGEN_ACCESSOR(DoubleBits) |
2365 }; | 2364 }; |
2366 | 2365 |
2367 | 2366 |
2368 class LConstructDouble final : public LTemplateInstruction<1, 2, 0> { | |
2369 public: | |
2370 LConstructDouble(LOperand* hi, LOperand* lo) { | |
2371 inputs_[0] = hi; | |
2372 inputs_[1] = lo; | |
2373 } | |
2374 | |
2375 LOperand* hi() { return inputs_[0]; } | |
2376 LOperand* lo() { return inputs_[1]; } | |
2377 | |
2378 DECLARE_CONCRETE_INSTRUCTION(ConstructDouble, "construct-double") | |
2379 }; | |
2380 | |
2381 | |
2382 class LAllocate final : public LTemplateInstruction<1, 2, 1> { | 2367 class LAllocate final : public LTemplateInstruction<1, 2, 1> { |
2383 public: | 2368 public: |
2384 LAllocate(LOperand* context, LOperand* size, LOperand* temp) { | 2369 LAllocate(LOperand* context, LOperand* size, LOperand* temp) { |
2385 inputs_[0] = context; | 2370 inputs_[0] = context; |
2386 inputs_[1] = size; | 2371 inputs_[1] = size; |
2387 temps_[0] = temp; | 2372 temps_[0] = temp; |
2388 } | 2373 } |
2389 | 2374 |
2390 LOperand* context() { return inputs_[0]; } | 2375 LOperand* context() { return inputs_[0]; } |
2391 LOperand* size() { return inputs_[1]; } | 2376 LOperand* size() { return inputs_[1]; } |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2682 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2667 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2683 }; | 2668 }; |
2684 | 2669 |
2685 #undef DECLARE_HYDROGEN_ACCESSOR | 2670 #undef DECLARE_HYDROGEN_ACCESSOR |
2686 #undef DECLARE_CONCRETE_INSTRUCTION | 2671 #undef DECLARE_CONCRETE_INSTRUCTION |
2687 | 2672 |
2688 } // namespace internal | 2673 } // namespace internal |
2689 } // namespace v8 | 2674 } // namespace v8 |
2690 | 2675 |
2691 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ | 2676 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ |
OLD | NEW |