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_CODE_STUBS_H_ | 5 #ifndef V8_CODE_STUBS_H_ |
6 #define V8_CODE_STUBS_H_ | 6 #define V8_CODE_STUBS_H_ |
7 | 7 |
8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/assembler.h" | 9 #include "src/assembler.h" |
10 #include "src/code-stub-assembler.h" | 10 #include "src/code-stub-assembler.h" |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 V(GreaterThan) \ | 141 V(GreaterThan) \ |
142 V(GreaterThanOrEqual) \ | 142 V(GreaterThanOrEqual) \ |
143 V(Equal) \ | 143 V(Equal) \ |
144 V(NotEqual) \ | 144 V(NotEqual) \ |
145 V(KeyedLoadSloppyArguments) \ | 145 V(KeyedLoadSloppyArguments) \ |
146 V(KeyedStoreSloppyArguments) \ | 146 V(KeyedStoreSloppyArguments) \ |
147 V(LoadScriptContextField) \ | 147 V(LoadScriptContextField) \ |
148 V(StoreScriptContextField) \ | 148 V(StoreScriptContextField) \ |
149 V(StrictEqual) \ | 149 V(StrictEqual) \ |
150 V(StrictNotEqual) \ | 150 V(StrictNotEqual) \ |
151 V(StringEqual) \ | |
152 V(StringNotEqual) \ | |
153 V(StringLessThan) \ | |
154 V(StringLessThanOrEqual) \ | |
155 V(StringGreaterThan) \ | |
156 V(StringGreaterThanOrEqual) \ | |
157 V(ToInteger) \ | 151 V(ToInteger) \ |
158 V(ToLength) \ | 152 V(ToLength) \ |
159 V(HasProperty) \ | 153 V(HasProperty) \ |
160 V(ForInFilter) \ | 154 V(ForInFilter) \ |
161 V(GetProperty) \ | 155 V(GetProperty) \ |
162 V(LoadICTF) \ | 156 V(LoadICTF) \ |
163 V(KeyedLoadICTF) \ | 157 V(KeyedLoadICTF) \ |
164 V(StoreFastElement) \ | 158 V(StoreFastElement) \ |
165 V(StoreField) \ | 159 V(StoreField) \ |
166 V(StoreGlobal) \ | 160 V(StoreGlobal) \ |
(...skipping 816 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
983 }; | 977 }; |
984 | 978 |
985 class StrictNotEqualStub final : public TurboFanCodeStub { | 979 class StrictNotEqualStub final : public TurboFanCodeStub { |
986 public: | 980 public: |
987 explicit StrictNotEqualStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} | 981 explicit StrictNotEqualStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
988 | 982 |
989 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); | 983 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); |
990 DEFINE_TURBOFAN_BINARY_OP_CODE_STUB(StrictNotEqual, TurboFanCodeStub); | 984 DEFINE_TURBOFAN_BINARY_OP_CODE_STUB(StrictNotEqual, TurboFanCodeStub); |
991 }; | 985 }; |
992 | 986 |
993 class StringEqualStub final : public TurboFanCodeStub { | |
994 public: | |
995 explicit StringEqualStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} | |
996 | |
997 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); | |
998 DEFINE_TURBOFAN_CODE_STUB(StringEqual, TurboFanCodeStub); | |
999 }; | |
1000 | |
1001 class StringNotEqualStub final : public TurboFanCodeStub { | |
1002 public: | |
1003 explicit StringNotEqualStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} | |
1004 | |
1005 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); | |
1006 DEFINE_TURBOFAN_CODE_STUB(StringNotEqual, TurboFanCodeStub); | |
1007 }; | |
1008 | |
1009 class StringLessThanStub final : public TurboFanCodeStub { | |
1010 public: | |
1011 explicit StringLessThanStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} | |
1012 | |
1013 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); | |
1014 DEFINE_TURBOFAN_CODE_STUB(StringLessThan, TurboFanCodeStub); | |
1015 }; | |
1016 | |
1017 class StringLessThanOrEqualStub final : public TurboFanCodeStub { | |
1018 public: | |
1019 explicit StringLessThanOrEqualStub(Isolate* isolate) | |
1020 : TurboFanCodeStub(isolate) {} | |
1021 | |
1022 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); | |
1023 DEFINE_TURBOFAN_CODE_STUB(StringLessThanOrEqual, TurboFanCodeStub); | |
1024 }; | |
1025 | |
1026 class StringGreaterThanStub final : public TurboFanCodeStub { | |
1027 public: | |
1028 explicit StringGreaterThanStub(Isolate* isolate) | |
1029 : TurboFanCodeStub(isolate) {} | |
1030 | |
1031 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); | |
1032 DEFINE_TURBOFAN_CODE_STUB(StringGreaterThan, TurboFanCodeStub); | |
1033 }; | |
1034 | |
1035 class StringGreaterThanOrEqualStub final : public TurboFanCodeStub { | |
1036 public: | |
1037 explicit StringGreaterThanOrEqualStub(Isolate* isolate) | |
1038 : TurboFanCodeStub(isolate) {} | |
1039 | |
1040 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); | |
1041 DEFINE_TURBOFAN_CODE_STUB(StringGreaterThanOrEqual, TurboFanCodeStub); | |
1042 }; | |
1043 | |
1044 class ToIntegerStub final : public TurboFanCodeStub { | 987 class ToIntegerStub final : public TurboFanCodeStub { |
1045 public: | 988 public: |
1046 explicit ToIntegerStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} | 989 explicit ToIntegerStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
1047 | 990 |
1048 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion); | 991 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion); |
1049 DEFINE_TURBOFAN_CODE_STUB(ToInteger, TurboFanCodeStub); | 992 DEFINE_TURBOFAN_CODE_STUB(ToInteger, TurboFanCodeStub); |
1050 }; | 993 }; |
1051 | 994 |
1052 class ToLengthStub final : public TurboFanCodeStub { | 995 class ToLengthStub final : public TurboFanCodeStub { |
1053 public: | 996 public: |
(...skipping 2128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3182 #undef DEFINE_HYDROGEN_CODE_STUB | 3125 #undef DEFINE_HYDROGEN_CODE_STUB |
3183 #undef DEFINE_CODE_STUB | 3126 #undef DEFINE_CODE_STUB |
3184 #undef DEFINE_CODE_STUB_BASE | 3127 #undef DEFINE_CODE_STUB_BASE |
3185 | 3128 |
3186 extern Representation RepresentationFromMachineType(MachineType type); | 3129 extern Representation RepresentationFromMachineType(MachineType type); |
3187 | 3130 |
3188 } // namespace internal | 3131 } // namespace internal |
3189 } // namespace v8 | 3132 } // namespace v8 |
3190 | 3133 |
3191 #endif // V8_CODE_STUBS_H_ | 3134 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |