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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 V(Equal) \ | 126 V(Equal) \ |
127 V(NotEqual) \ | 127 V(NotEqual) \ |
128 V(StrictEqual) \ | 128 V(StrictEqual) \ |
129 V(StrictNotEqual) \ | 129 V(StrictNotEqual) \ |
130 V(StringEqual) \ | 130 V(StringEqual) \ |
131 V(StringNotEqual) \ | 131 V(StringNotEqual) \ |
132 V(StringLessThan) \ | 132 V(StringLessThan) \ |
133 V(StringLessThanOrEqual) \ | 133 V(StringLessThanOrEqual) \ |
134 V(StringGreaterThan) \ | 134 V(StringGreaterThan) \ |
135 V(StringGreaterThanOrEqual) \ | 135 V(StringGreaterThanOrEqual) \ |
136 V(ToBoolean) \ | |
137 V(ToInteger) \ | 136 V(ToInteger) \ |
138 V(ToLength) \ | 137 V(ToLength) \ |
139 V(HasProperty) \ | 138 V(HasProperty) \ |
140 V(GetProperty) \ | 139 V(GetProperty) \ |
141 V(LoadICTrampolineTF) \ | 140 V(LoadICTrampolineTF) \ |
142 V(LoadICTF) \ | 141 V(LoadICTF) \ |
143 /* IC Handler stubs */ \ | 142 /* IC Handler stubs */ \ |
144 V(KeyedLoadSloppyArguments) \ | 143 V(KeyedLoadSloppyArguments) \ |
145 V(KeyedStoreSloppyArguments) \ | 144 V(KeyedStoreSloppyArguments) \ |
146 V(LoadApiGetter) \ | 145 V(LoadApiGetter) \ |
(...skipping 779 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
926 | 925 |
927 class StringGreaterThanOrEqualStub final : public TurboFanCodeStub { | 926 class StringGreaterThanOrEqualStub final : public TurboFanCodeStub { |
928 public: | 927 public: |
929 explicit StringGreaterThanOrEqualStub(Isolate* isolate) | 928 explicit StringGreaterThanOrEqualStub(Isolate* isolate) |
930 : TurboFanCodeStub(isolate) {} | 929 : TurboFanCodeStub(isolate) {} |
931 | 930 |
932 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); | 931 DEFINE_CALL_INTERFACE_DESCRIPTOR(Compare); |
933 DEFINE_TURBOFAN_CODE_STUB(StringGreaterThanOrEqual, TurboFanCodeStub); | 932 DEFINE_TURBOFAN_CODE_STUB(StringGreaterThanOrEqual, TurboFanCodeStub); |
934 }; | 933 }; |
935 | 934 |
936 class ToBooleanStub final : public TurboFanCodeStub { | |
937 public: | |
938 explicit ToBooleanStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} | |
939 | |
940 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion); | |
941 DEFINE_TURBOFAN_UNARY_OP_CODE_STUB(ToBoolean, TurboFanCodeStub); | |
942 }; | |
943 | |
944 class ToIntegerStub final : public TurboFanCodeStub { | 935 class ToIntegerStub final : public TurboFanCodeStub { |
945 public: | 936 public: |
946 explicit ToIntegerStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} | 937 explicit ToIntegerStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
947 | 938 |
948 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion); | 939 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion); |
949 DEFINE_TURBOFAN_CODE_STUB(ToInteger, TurboFanCodeStub); | 940 DEFINE_TURBOFAN_CODE_STUB(ToInteger, TurboFanCodeStub); |
950 }; | 941 }; |
951 | 942 |
952 class ToLengthStub final : public TurboFanCodeStub { | 943 class ToLengthStub final : public TurboFanCodeStub { |
953 public: | 944 public: |
(...skipping 2152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3106 #undef DEFINE_HYDROGEN_CODE_STUB | 3097 #undef DEFINE_HYDROGEN_CODE_STUB |
3107 #undef DEFINE_CODE_STUB | 3098 #undef DEFINE_CODE_STUB |
3108 #undef DEFINE_CODE_STUB_BASE | 3099 #undef DEFINE_CODE_STUB_BASE |
3109 | 3100 |
3110 extern Representation RepresentationFromType(Type* type); | 3101 extern Representation RepresentationFromType(Type* type); |
3111 | 3102 |
3112 } // namespace internal | 3103 } // namespace internal |
3113 } // namespace v8 | 3104 } // namespace v8 |
3114 | 3105 |
3115 #endif // V8_CODE_STUBS_H_ | 3106 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |