OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64_LITHIUM_ARM64_H_ | 5 #ifndef V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ |
6 #define V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ | 6 #define V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_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(CmpHoleAndBranchT) \ | 50 V(CmpHoleAndBranchT) \ |
51 V(CmpMapAndBranch) \ | 51 V(CmpMapAndBranch) \ |
52 V(CmpObjectEqAndBranch) \ | 52 V(CmpObjectEqAndBranch) \ |
53 V(CmpT) \ | 53 V(CmpT) \ |
54 V(CompareNumericAndBranch) \ | 54 V(CompareNumericAndBranch) \ |
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(DoubleToIntOrSmi) \ | 68 V(DoubleToIntOrSmi) \ |
70 V(Drop) \ | 69 V(Drop) \ |
(...skipping 917 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
988 inputs_[0] = value; | 987 inputs_[0] = value; |
989 } | 988 } |
990 | 989 |
991 LOperand* value() { return inputs_[0]; } | 990 LOperand* value() { return inputs_[0]; } |
992 | 991 |
993 DECLARE_CONCRETE_INSTRUCTION(DoubleBits, "double-bits") | 992 DECLARE_CONCRETE_INSTRUCTION(DoubleBits, "double-bits") |
994 DECLARE_HYDROGEN_ACCESSOR(DoubleBits) | 993 DECLARE_HYDROGEN_ACCESSOR(DoubleBits) |
995 }; | 994 }; |
996 | 995 |
997 | 996 |
998 class LConstructDouble final : public LTemplateInstruction<1, 2, 0> { | |
999 public: | |
1000 LConstructDouble(LOperand* hi, LOperand* lo) { | |
1001 inputs_[0] = hi; | |
1002 inputs_[1] = lo; | |
1003 } | |
1004 | |
1005 LOperand* hi() { return inputs_[0]; } | |
1006 LOperand* lo() { return inputs_[1]; } | |
1007 | |
1008 DECLARE_CONCRETE_INSTRUCTION(ConstructDouble, "construct-double") | |
1009 }; | |
1010 | |
1011 | |
1012 class LClassOfTestAndBranch final : public LControlInstruction<1, 2> { | 997 class LClassOfTestAndBranch final : public LControlInstruction<1, 2> { |
1013 public: | 998 public: |
1014 LClassOfTestAndBranch(LOperand* value, LOperand* temp1, LOperand* temp2) { | 999 LClassOfTestAndBranch(LOperand* value, LOperand* temp1, LOperand* temp2) { |
1015 inputs_[0] = value; | 1000 inputs_[0] = value; |
1016 temps_[0] = temp1; | 1001 temps_[0] = temp1; |
1017 temps_[1] = temp2; | 1002 temps_[1] = temp2; |
1018 } | 1003 } |
1019 | 1004 |
1020 LOperand* value() { return inputs_[0]; } | 1005 LOperand* value() { return inputs_[0]; } |
1021 LOperand* temp1() { return temps_[0]; } | 1006 LOperand* temp1() { return temps_[0]; } |
(...skipping 2001 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3023 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 3008 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
3024 }; | 3009 }; |
3025 | 3010 |
3026 #undef DECLARE_HYDROGEN_ACCESSOR | 3011 #undef DECLARE_HYDROGEN_ACCESSOR |
3027 #undef DECLARE_CONCRETE_INSTRUCTION | 3012 #undef DECLARE_CONCRETE_INSTRUCTION |
3028 | 3013 |
3029 } // namespace internal | 3014 } // namespace internal |
3030 } // namespace v8 | 3015 } // namespace v8 |
3031 | 3016 |
3032 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ | 3017 #endif // V8_CRANKSHAFT_ARM64_LITHIUM_ARM64_H_ |
OLD | NEW |