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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 V(CheckInstanceType) \ | 44 V(CheckInstanceType) \ |
45 V(CheckMaps) \ | 45 V(CheckMaps) \ |
46 V(CheckMapValue) \ | 46 V(CheckMapValue) \ |
47 V(CheckNonSmi) \ | 47 V(CheckNonSmi) \ |
48 V(CheckSmi) \ | 48 V(CheckSmi) \ |
49 V(CheckValue) \ | 49 V(CheckValue) \ |
50 V(ClampDToUint8) \ | 50 V(ClampDToUint8) \ |
51 V(ClampIToUint8) \ | 51 V(ClampIToUint8) \ |
52 V(ClampTToUint8) \ | 52 V(ClampTToUint8) \ |
53 V(ClassOfTestAndBranch) \ | 53 V(ClassOfTestAndBranch) \ |
54 V(CompareMinusZeroAndBranch) \ | |
55 V(CompareNumericAndBranch) \ | 54 V(CompareNumericAndBranch) \ |
56 V(CmpObjectEqAndBranch) \ | 55 V(CmpObjectEqAndBranch) \ |
57 V(CmpHoleAndBranch) \ | 56 V(CmpHoleAndBranch) \ |
58 V(CmpMapAndBranch) \ | 57 V(CmpMapAndBranch) \ |
59 V(CmpT) \ | 58 V(CmpT) \ |
60 V(ConstantD) \ | 59 V(ConstantD) \ |
61 V(ConstantE) \ | 60 V(ConstantE) \ |
62 V(ConstantI) \ | 61 V(ConstantI) \ |
63 V(ConstantS) \ | 62 V(ConstantS) \ |
64 V(ConstantT) \ | 63 V(ConstantT) \ |
(...skipping 902 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
967 inputs_[0] = object; | 966 inputs_[0] = object; |
968 } | 967 } |
969 | 968 |
970 LOperand* object() { return inputs_[0]; } | 969 LOperand* object() { return inputs_[0]; } |
971 | 970 |
972 DECLARE_CONCRETE_INSTRUCTION(CmpHoleAndBranch, "cmp-hole-and-branch") | 971 DECLARE_CONCRETE_INSTRUCTION(CmpHoleAndBranch, "cmp-hole-and-branch") |
973 DECLARE_HYDROGEN_ACCESSOR(CompareHoleAndBranch) | 972 DECLARE_HYDROGEN_ACCESSOR(CompareHoleAndBranch) |
974 }; | 973 }; |
975 | 974 |
976 | 975 |
977 class LCompareMinusZeroAndBranch final : public LControlInstruction<1, 1> { | |
978 public: | |
979 LCompareMinusZeroAndBranch(LOperand* value, LOperand* temp) { | |
980 inputs_[0] = value; | |
981 temps_[0] = temp; | |
982 } | |
983 | |
984 LOperand* value() { return inputs_[0]; } | |
985 LOperand* temp() { return temps_[0]; } | |
986 | |
987 DECLARE_CONCRETE_INSTRUCTION(CompareMinusZeroAndBranch, | |
988 "cmp-minus-zero-and-branch") | |
989 DECLARE_HYDROGEN_ACCESSOR(CompareMinusZeroAndBranch) | |
990 }; | |
991 | |
992 | |
993 class LIsStringAndBranch final : public LControlInstruction<1, 1> { | 976 class LIsStringAndBranch final : public LControlInstruction<1, 1> { |
994 public: | 977 public: |
995 LIsStringAndBranch(LOperand* value, LOperand* temp) { | 978 LIsStringAndBranch(LOperand* value, LOperand* temp) { |
996 inputs_[0] = value; | 979 inputs_[0] = value; |
997 temps_[0] = temp; | 980 temps_[0] = temp; |
998 } | 981 } |
999 | 982 |
1000 LOperand* value() { return inputs_[0]; } | 983 LOperand* value() { return inputs_[0]; } |
1001 LOperand* temp() { return temps_[0]; } | 984 LOperand* temp() { return temps_[0]; } |
1002 | 985 |
(...skipping 1761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2764 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2747 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2765 }; | 2748 }; |
2766 | 2749 |
2767 #undef DECLARE_HYDROGEN_ACCESSOR | 2750 #undef DECLARE_HYDROGEN_ACCESSOR |
2768 #undef DECLARE_CONCRETE_INSTRUCTION | 2751 #undef DECLARE_CONCRETE_INSTRUCTION |
2769 | 2752 |
2770 } // namespace internal | 2753 } // namespace internal |
2771 } // namespace v8 | 2754 } // namespace v8 |
2772 | 2755 |
2773 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ | 2756 #endif // V8_CRANKSHAFT_IA32_LITHIUM_IA32_H_ |
OLD | NEW |