| 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 825 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 975 | 976 |
| 976 // ES6 section 12.10.3 "in" operator evaluation. | 977 // ES6 section 12.10.3 "in" operator evaluation. |
| 977 class HasPropertyStub : public TurboFanCodeStub { | 978 class HasPropertyStub : public TurboFanCodeStub { |
| 978 public: | 979 public: |
| 979 explicit HasPropertyStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} | 980 explicit HasPropertyStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
| 980 | 981 |
| 981 DEFINE_CALL_INTERFACE_DESCRIPTOR(HasProperty); | 982 DEFINE_CALL_INTERFACE_DESCRIPTOR(HasProperty); |
| 982 DEFINE_TURBOFAN_BINARY_OP_CODE_STUB(HasProperty, TurboFanCodeStub); | 983 DEFINE_TURBOFAN_BINARY_OP_CODE_STUB(HasProperty, TurboFanCodeStub); |
| 983 }; | 984 }; |
| 984 | 985 |
| 986 // ES6 [[Get]] operation. |
| 987 class GetPropertyStub : public TurboFanCodeStub { |
| 988 public: |
| 989 explicit GetPropertyStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
| 990 |
| 991 DEFINE_CALL_INTERFACE_DESCRIPTOR(GetProperty); |
| 992 DEFINE_TURBOFAN_CODE_STUB(GetProperty, TurboFanCodeStub); |
| 993 }; |
| 994 |
| 985 enum StringAddFlags { | 995 enum StringAddFlags { |
| 986 // Omit both parameter checks. | 996 // Omit both parameter checks. |
| 987 STRING_ADD_CHECK_NONE = 0, | 997 STRING_ADD_CHECK_NONE = 0, |
| 988 // Check left parameter. | 998 // Check left parameter. |
| 989 STRING_ADD_CHECK_LEFT = 1 << 0, | 999 STRING_ADD_CHECK_LEFT = 1 << 0, |
| 990 // Check right parameter. | 1000 // Check right parameter. |
| 991 STRING_ADD_CHECK_RIGHT = 1 << 1, | 1001 STRING_ADD_CHECK_RIGHT = 1 << 1, |
| 992 // Check both parameters. | 1002 // Check both parameters. |
| 993 STRING_ADD_CHECK_BOTH = STRING_ADD_CHECK_LEFT | STRING_ADD_CHECK_RIGHT, | 1003 STRING_ADD_CHECK_BOTH = STRING_ADD_CHECK_LEFT | STRING_ADD_CHECK_RIGHT, |
| 994 // Convert parameters when check fails (instead of throwing an exception). | 1004 // Convert parameters when check fails (instead of throwing an exception). |
| (...skipping 2108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3103 #undef DEFINE_HYDROGEN_CODE_STUB | 3113 #undef DEFINE_HYDROGEN_CODE_STUB |
| 3104 #undef DEFINE_CODE_STUB | 3114 #undef DEFINE_CODE_STUB |
| 3105 #undef DEFINE_CODE_STUB_BASE | 3115 #undef DEFINE_CODE_STUB_BASE |
| 3106 | 3116 |
| 3107 extern Representation RepresentationFromType(Type* type); | 3117 extern Representation RepresentationFromType(Type* type); |
| 3108 | 3118 |
| 3109 } // namespace internal | 3119 } // namespace internal |
| 3110 } // namespace v8 | 3120 } // namespace v8 |
| 3111 | 3121 |
| 3112 #endif // V8_CODE_STUBS_H_ | 3122 #endif // V8_CODE_STUBS_H_ |
| OLD | NEW |