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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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) \ | 136 V(ToBoolean) \ |
137 V(ToInteger) \ | 137 V(ToInteger) \ |
138 V(ToLength) \ | 138 V(ToLength) \ |
139 V(HasProperty) \ | 139 V(HasProperty) \ |
| 140 V(ForInFilter) \ |
140 V(GetProperty) \ | 141 V(GetProperty) \ |
141 V(LoadICTrampolineTF) \ | 142 V(LoadICTrampolineTF) \ |
142 V(LoadICTF) \ | 143 V(LoadICTF) \ |
143 /* IC Handler stubs */ \ | 144 /* IC Handler stubs */ \ |
144 V(KeyedLoadSloppyArguments) \ | 145 V(KeyedLoadSloppyArguments) \ |
145 V(KeyedStoreSloppyArguments) \ | 146 V(KeyedStoreSloppyArguments) \ |
146 V(LoadApiGetter) \ | 147 V(LoadApiGetter) \ |
147 V(LoadConstant) \ | 148 V(LoadConstant) \ |
148 V(LoadFastElement) \ | 149 V(LoadFastElement) \ |
149 V(LoadField) \ | 150 V(LoadField) \ |
(...skipping 834 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
984 | 985 |
985 // ES6 section 12.10.3 "in" operator evaluation. | 986 // ES6 section 12.10.3 "in" operator evaluation. |
986 class HasPropertyStub : public TurboFanCodeStub { | 987 class HasPropertyStub : public TurboFanCodeStub { |
987 public: | 988 public: |
988 explicit HasPropertyStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} | 989 explicit HasPropertyStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
989 | 990 |
990 DEFINE_CALL_INTERFACE_DESCRIPTOR(HasProperty); | 991 DEFINE_CALL_INTERFACE_DESCRIPTOR(HasProperty); |
991 DEFINE_TURBOFAN_BINARY_OP_CODE_STUB(HasProperty, TurboFanCodeStub); | 992 DEFINE_TURBOFAN_BINARY_OP_CODE_STUB(HasProperty, TurboFanCodeStub); |
992 }; | 993 }; |
993 | 994 |
| 995 class ForInFilterStub : public TurboFanCodeStub { |
| 996 public: |
| 997 explicit ForInFilterStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
| 998 |
| 999 DEFINE_CALL_INTERFACE_DESCRIPTOR(ForInFilter); |
| 1000 DEFINE_TURBOFAN_BINARY_OP_CODE_STUB(ForInFilter, TurboFanCodeStub); |
| 1001 }; |
| 1002 |
994 // ES6 [[Get]] operation. | 1003 // ES6 [[Get]] operation. |
995 class GetPropertyStub : public TurboFanCodeStub { | 1004 class GetPropertyStub : public TurboFanCodeStub { |
996 public: | 1005 public: |
997 explicit GetPropertyStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} | 1006 explicit GetPropertyStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
998 | 1007 |
999 DEFINE_CALL_INTERFACE_DESCRIPTOR(GetProperty); | 1008 DEFINE_CALL_INTERFACE_DESCRIPTOR(GetProperty); |
1000 DEFINE_TURBOFAN_CODE_STUB(GetProperty, TurboFanCodeStub); | 1009 DEFINE_TURBOFAN_CODE_STUB(GetProperty, TurboFanCodeStub); |
1001 }; | 1010 }; |
1002 | 1011 |
1003 enum StringAddFlags { | 1012 enum StringAddFlags { |
(...skipping 2102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3106 #undef DEFINE_HYDROGEN_CODE_STUB | 3115 #undef DEFINE_HYDROGEN_CODE_STUB |
3107 #undef DEFINE_CODE_STUB | 3116 #undef DEFINE_CODE_STUB |
3108 #undef DEFINE_CODE_STUB_BASE | 3117 #undef DEFINE_CODE_STUB_BASE |
3109 | 3118 |
3110 extern Representation RepresentationFromType(Type* type); | 3119 extern Representation RepresentationFromType(Type* type); |
3111 | 3120 |
3112 } // namespace internal | 3121 } // namespace internal |
3113 } // namespace v8 | 3122 } // namespace v8 |
3114 | 3123 |
3115 #endif // V8_CODE_STUBS_H_ | 3124 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |