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(GetProperty) \ |
140 V(LoadICTrampolineTF) \ | 141 V(LoadICTrampolineTF) \ |
141 V(LoadICTF) \ | 142 V(LoadICTF) \ |
142 /* IC Handler stubs */ \ | 143 /* IC Handler stubs */ \ |
143 V(KeyedLoadSloppyArguments) \ | 144 V(KeyedLoadSloppyArguments) \ |
144 V(KeyedStoreSloppyArguments) \ | 145 V(KeyedStoreSloppyArguments) \ |
145 V(LoadApiGetter) \ | 146 V(LoadApiGetter) \ |
146 V(LoadConstant) \ | 147 V(LoadConstant) \ |
147 V(LoadFastElement) \ | 148 V(LoadFastElement) \ |
148 V(LoadField) \ | 149 V(LoadField) \ |
149 V(LoadIndexedInterceptor) \ | 150 V(LoadIndexedInterceptor) \ |
(...skipping 833 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
983 | 984 |
984 // ES6 section 12.10.3 "in" operator evaluation. | 985 // ES6 section 12.10.3 "in" operator evaluation. |
985 class HasPropertyStub : public TurboFanCodeStub { | 986 class HasPropertyStub : public TurboFanCodeStub { |
986 public: | 987 public: |
987 explicit HasPropertyStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} | 988 explicit HasPropertyStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
988 | 989 |
989 DEFINE_CALL_INTERFACE_DESCRIPTOR(HasProperty); | 990 DEFINE_CALL_INTERFACE_DESCRIPTOR(HasProperty); |
990 DEFINE_TURBOFAN_BINARY_OP_CODE_STUB(HasProperty, TurboFanCodeStub); | 991 DEFINE_TURBOFAN_BINARY_OP_CODE_STUB(HasProperty, TurboFanCodeStub); |
991 }; | 992 }; |
992 | 993 |
| 994 // ES6 [[Get]] operation. |
| 995 class GetPropertyStub : public TurboFanCodeStub { |
| 996 public: |
| 997 explicit GetPropertyStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
| 998 |
| 999 DEFINE_CALL_INTERFACE_DESCRIPTOR(GetProperty); |
| 1000 DEFINE_TURBOFAN_CODE_STUB(GetProperty, TurboFanCodeStub); |
| 1001 }; |
| 1002 |
993 enum StringAddFlags { | 1003 enum StringAddFlags { |
994 // Omit both parameter checks. | 1004 // Omit both parameter checks. |
995 STRING_ADD_CHECK_NONE = 0, | 1005 STRING_ADD_CHECK_NONE = 0, |
996 // Check left parameter. | 1006 // Check left parameter. |
997 STRING_ADD_CHECK_LEFT = 1 << 0, | 1007 STRING_ADD_CHECK_LEFT = 1 << 0, |
998 // Check right parameter. | 1008 // Check right parameter. |
999 STRING_ADD_CHECK_RIGHT = 1 << 1, | 1009 STRING_ADD_CHECK_RIGHT = 1 << 1, |
1000 // Check both parameters. | 1010 // Check both parameters. |
1001 STRING_ADD_CHECK_BOTH = STRING_ADD_CHECK_LEFT | STRING_ADD_CHECK_RIGHT, | 1011 STRING_ADD_CHECK_BOTH = STRING_ADD_CHECK_LEFT | STRING_ADD_CHECK_RIGHT, |
1002 // Convert parameters when check fails (instead of throwing an exception). | 1012 // Convert parameters when check fails (instead of throwing an exception). |
(...skipping 2095 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3098 #undef DEFINE_HYDROGEN_CODE_STUB | 3108 #undef DEFINE_HYDROGEN_CODE_STUB |
3099 #undef DEFINE_CODE_STUB | 3109 #undef DEFINE_CODE_STUB |
3100 #undef DEFINE_CODE_STUB_BASE | 3110 #undef DEFINE_CODE_STUB_BASE |
3101 | 3111 |
3102 extern Representation RepresentationFromType(Type* type); | 3112 extern Representation RepresentationFromType(Type* type); |
3103 | 3113 |
3104 } // namespace internal | 3114 } // namespace internal |
3105 } // namespace v8 | 3115 } // namespace v8 |
3106 | 3116 |
3107 #endif // V8_CODE_STUBS_H_ | 3117 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |