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 3135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3146 }; | 3146 }; |
3147 | 3147 |
3148 class ToNameStub final : public PlatformCodeStub { | 3148 class ToNameStub final : public PlatformCodeStub { |
3149 public: | 3149 public: |
3150 explicit ToNameStub(Isolate* isolate) : PlatformCodeStub(isolate) {} | 3150 explicit ToNameStub(Isolate* isolate) : PlatformCodeStub(isolate) {} |
3151 | 3151 |
3152 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion); | 3152 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion); |
3153 DEFINE_PLATFORM_CODE_STUB(ToName, PlatformCodeStub); | 3153 DEFINE_PLATFORM_CODE_STUB(ToName, PlatformCodeStub); |
3154 }; | 3154 }; |
3155 | 3155 |
3156 | 3156 class ToObjectStub final : public TurboFanCodeStub { |
3157 class ToObjectStub final : public HydrogenCodeStub { | |
3158 public: | 3157 public: |
3159 explicit ToObjectStub(Isolate* isolate) : HydrogenCodeStub(isolate) {} | 3158 explicit ToObjectStub(Isolate* isolate) : TurboFanCodeStub(isolate) {} |
3160 | 3159 |
3161 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion); | 3160 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion); |
3162 DEFINE_HYDROGEN_CODE_STUB(ToObject, HydrogenCodeStub); | 3161 DEFINE_TURBOFAN_CODE_STUB(ToObject, TurboFanCodeStub); |
3163 }; | 3162 }; |
3164 | 3163 |
3165 #undef DEFINE_CALL_INTERFACE_DESCRIPTOR | 3164 #undef DEFINE_CALL_INTERFACE_DESCRIPTOR |
3166 #undef DEFINE_PLATFORM_CODE_STUB | 3165 #undef DEFINE_PLATFORM_CODE_STUB |
3167 #undef DEFINE_HANDLER_CODE_STUB | 3166 #undef DEFINE_HANDLER_CODE_STUB |
3168 #undef DEFINE_HYDROGEN_CODE_STUB | 3167 #undef DEFINE_HYDROGEN_CODE_STUB |
3169 #undef DEFINE_CODE_STUB | 3168 #undef DEFINE_CODE_STUB |
3170 #undef DEFINE_CODE_STUB_BASE | 3169 #undef DEFINE_CODE_STUB_BASE |
3171 | 3170 |
3172 extern Representation RepresentationFromType(Type* type); | 3171 extern Representation RepresentationFromType(Type* type); |
3173 | 3172 |
3174 } // namespace internal | 3173 } // namespace internal |
3175 } // namespace v8 | 3174 } // namespace v8 |
3176 | 3175 |
3177 #endif // V8_CODE_STUBS_H_ | 3176 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |