OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 V(ClassOfTest) \ | 79 V(ClassOfTest) \ |
80 V(ClassOfTestAndBranch) \ | 80 V(ClassOfTestAndBranch) \ |
81 V(CmpID) \ | 81 V(CmpID) \ |
82 V(CmpIDAndBranch) \ | 82 V(CmpIDAndBranch) \ |
83 V(CmpJSObjectEq) \ | 83 V(CmpJSObjectEq) \ |
84 V(CmpJSObjectEqAndBranch) \ | 84 V(CmpJSObjectEqAndBranch) \ |
85 V(CmpMapAndBranch) \ | 85 V(CmpMapAndBranch) \ |
86 V(CmpSymbolEq) \ | 86 V(CmpSymbolEq) \ |
87 V(CmpSymbolEqAndBranch) \ | 87 V(CmpSymbolEqAndBranch) \ |
88 V(CmpT) \ | 88 V(CmpT) \ |
89 V(CmpTAndBranch) \ | |
90 V(ConstantD) \ | 89 V(ConstantD) \ |
91 V(ConstantI) \ | 90 V(ConstantI) \ |
92 V(ConstantT) \ | 91 V(ConstantT) \ |
93 V(Context) \ | 92 V(Context) \ |
94 V(DeleteProperty) \ | 93 V(DeleteProperty) \ |
95 V(Deoptimize) \ | 94 V(Deoptimize) \ |
96 V(DivI) \ | 95 V(DivI) \ |
97 V(DoubleToI) \ | 96 V(DoubleToI) \ |
98 V(ExternalArrayLength) \ | 97 V(ExternalArrayLength) \ |
99 V(FixedArrayLength) \ | 98 V(FixedArrayLength) \ |
100 V(FunctionLiteral) \ | 99 V(FunctionLiteral) \ |
101 V(GetCachedArrayIndex) \ | 100 V(GetCachedArrayIndex) \ |
102 V(GlobalObject) \ | 101 V(GlobalObject) \ |
103 V(GlobalReceiver) \ | 102 V(GlobalReceiver) \ |
104 V(Goto) \ | 103 V(Goto) \ |
105 V(HasCachedArrayIndex) \ | 104 V(HasCachedArrayIndex) \ |
106 V(HasCachedArrayIndexAndBranch) \ | 105 V(HasCachedArrayIndexAndBranch) \ |
107 V(HasInstanceType) \ | 106 V(HasInstanceType) \ |
108 V(HasInstanceTypeAndBranch) \ | 107 V(HasInstanceTypeAndBranch) \ |
109 V(In) \ | 108 V(In) \ |
110 V(InstanceOf) \ | 109 V(InstanceOf) \ |
111 V(InstanceOfAndBranch) \ | |
112 V(InstanceOfKnownGlobal) \ | 110 V(InstanceOfKnownGlobal) \ |
113 V(InstructionGap) \ | 111 V(InstructionGap) \ |
114 V(Integer32ToDouble) \ | 112 V(Integer32ToDouble) \ |
115 V(InvokeFunction) \ | 113 V(InvokeFunction) \ |
116 V(IsConstructCall) \ | 114 V(IsConstructCall) \ |
117 V(IsConstructCallAndBranch) \ | 115 V(IsConstructCallAndBranch) \ |
118 V(IsNull) \ | 116 V(IsNull) \ |
119 V(IsNullAndBranch) \ | 117 V(IsNullAndBranch) \ |
120 V(IsObject) \ | 118 V(IsObject) \ |
121 V(IsObjectAndBranch) \ | 119 V(IsObjectAndBranch) \ |
(...skipping 781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
903 inputs_[1] = right; | 901 inputs_[1] = right; |
904 } | 902 } |
905 | 903 |
906 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t") | 904 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t") |
907 DECLARE_HYDROGEN_ACCESSOR(Compare) | 905 DECLARE_HYDROGEN_ACCESSOR(Compare) |
908 | 906 |
909 Token::Value op() const { return hydrogen()->token(); } | 907 Token::Value op() const { return hydrogen()->token(); } |
910 }; | 908 }; |
911 | 909 |
912 | 910 |
913 class LCmpTAndBranch: public LControlInstruction<2, 0> { | |
914 public: | |
915 LCmpTAndBranch(LOperand* left, LOperand* right) { | |
916 inputs_[0] = left; | |
917 inputs_[1] = right; | |
918 } | |
919 | |
920 DECLARE_CONCRETE_INSTRUCTION(CmpTAndBranch, "cmp-t-and-branch") | |
921 DECLARE_HYDROGEN_ACCESSOR(Compare) | |
922 | |
923 Token::Value op() const { return hydrogen()->token(); } | |
924 }; | |
925 | |
926 | |
927 class LInstanceOf: public LTemplateInstruction<1, 2, 0> { | 911 class LInstanceOf: public LTemplateInstruction<1, 2, 0> { |
928 public: | 912 public: |
929 LInstanceOf(LOperand* left, LOperand* right) { | 913 LInstanceOf(LOperand* left, LOperand* right) { |
930 inputs_[0] = left; | 914 inputs_[0] = left; |
931 inputs_[1] = right; | 915 inputs_[1] = right; |
932 } | 916 } |
933 | 917 |
934 DECLARE_CONCRETE_INSTRUCTION(InstanceOf, "instance-of") | 918 DECLARE_CONCRETE_INSTRUCTION(InstanceOf, "instance-of") |
935 }; | 919 }; |
936 | 920 |
937 | 921 |
938 class LInstanceOfAndBranch: public LControlInstruction<2, 0> { | |
939 public: | |
940 LInstanceOfAndBranch(LOperand* left, LOperand* right) { | |
941 inputs_[0] = left; | |
942 inputs_[1] = right; | |
943 } | |
944 | |
945 DECLARE_CONCRETE_INSTRUCTION(InstanceOfAndBranch, "instance-of-and-branch") | |
946 }; | |
947 | |
948 | |
949 class LInstanceOfKnownGlobal: public LTemplateInstruction<1, 1, 1> { | 922 class LInstanceOfKnownGlobal: public LTemplateInstruction<1, 1, 1> { |
950 public: | 923 public: |
951 LInstanceOfKnownGlobal(LOperand* value, LOperand* temp) { | 924 LInstanceOfKnownGlobal(LOperand* value, LOperand* temp) { |
952 inputs_[0] = value; | 925 inputs_[0] = value; |
953 temps_[0] = temp; | 926 temps_[0] = temp; |
954 } | 927 } |
955 | 928 |
956 DECLARE_CONCRETE_INSTRUCTION(InstanceOfKnownGlobal, | 929 DECLARE_CONCRETE_INSTRUCTION(InstanceOfKnownGlobal, |
957 "instance-of-known-global") | 930 "instance-of-known-global") |
958 DECLARE_HYDROGEN_ACCESSOR(InstanceOfKnownGlobal) | 931 DECLARE_HYDROGEN_ACCESSOR(InstanceOfKnownGlobal) |
(...skipping 1386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2345 | 2318 |
2346 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2319 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2347 }; | 2320 }; |
2348 | 2321 |
2349 #undef DECLARE_HYDROGEN_ACCESSOR | 2322 #undef DECLARE_HYDROGEN_ACCESSOR |
2350 #undef DECLARE_CONCRETE_INSTRUCTION | 2323 #undef DECLARE_CONCRETE_INSTRUCTION |
2351 | 2324 |
2352 } } // namespace v8::internal | 2325 } } // namespace v8::internal |
2353 | 2326 |
2354 #endif // V8_ARM_LITHIUM_ARM_H_ | 2327 #endif // V8_ARM_LITHIUM_ARM_H_ |
OLD | NEW |