| 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/codegen.h" | 10 #include "src/codegen.h" |
| 11 #include "src/compiler/code-stub-assembler.h" | 11 #include "src/compiler/code-stub-assembler.h" |
| 12 #include "src/globals.h" | 12 #include "src/globals.h" |
| 13 #include "src/ic/ic-state.h" | 13 #include "src/ic/ic-state.h" |
| 14 #include "src/interface-descriptors.h" | 14 #include "src/interface-descriptors.h" |
| 15 #include "src/macro-assembler.h" | 15 #include "src/macro-assembler.h" |
| 16 #include "src/ostreams.h" | 16 #include "src/ostreams.h" |
| 17 | 17 |
| 18 namespace v8 { | 18 namespace v8 { |
| 19 namespace internal { | 19 namespace internal { |
| 20 | 20 |
| 21 // List of code stubs used on all platforms. | 21 // List of code stubs used on all platforms. |
| 22 #define CODE_STUB_LIST_ALL_PLATFORMS(V) \ | 22 #define CODE_STUB_LIST_ALL_PLATFORMS(V) \ |
| 23 /* PlatformCodeStubs */ \ | 23 /* PlatformCodeStubs */ \ |
| 24 V(ArrayConstructor) \ | 24 V(ArrayConstructor) \ |
| 25 V(AtomicsLoad) \ | |
| 26 V(BinaryOpICWithAllocationSite) \ | 25 V(BinaryOpICWithAllocationSite) \ |
| 27 V(CallApiCallback) \ | 26 V(CallApiCallback) \ |
| 28 V(CallApiGetter) \ | 27 V(CallApiGetter) \ |
| 29 V(CallConstruct) \ | 28 V(CallConstruct) \ |
| 30 V(CallIC) \ | 29 V(CallIC) \ |
| 31 V(CEntry) \ | 30 V(CEntry) \ |
| 32 V(CompareIC) \ | 31 V(CompareIC) \ |
| 33 V(DoubleToI) \ | 32 V(DoubleToI) \ |
| 34 V(FunctionPrototype) \ | 33 V(FunctionPrototype) \ |
| 35 V(InstanceOf) \ | 34 V(InstanceOf) \ |
| (...skipping 3106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3142 | 3141 |
| 3143 | 3142 |
| 3144 class ToObjectStub final : public HydrogenCodeStub { | 3143 class ToObjectStub final : public HydrogenCodeStub { |
| 3145 public: | 3144 public: |
| 3146 explicit ToObjectStub(Isolate* isolate) : HydrogenCodeStub(isolate) {} | 3145 explicit ToObjectStub(Isolate* isolate) : HydrogenCodeStub(isolate) {} |
| 3147 | 3146 |
| 3148 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion); | 3147 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion); |
| 3149 DEFINE_HYDROGEN_CODE_STUB(ToObject, HydrogenCodeStub); | 3148 DEFINE_HYDROGEN_CODE_STUB(ToObject, HydrogenCodeStub); |
| 3150 }; | 3149 }; |
| 3151 | 3150 |
| 3152 class AtomicsLoadStub : public PlatformCodeStub { | |
| 3153 public: | |
| 3154 explicit AtomicsLoadStub(Isolate* isolate) : PlatformCodeStub(isolate) {} | |
| 3155 | |
| 3156 DEFINE_CALL_INTERFACE_DESCRIPTOR(AtomicsLoad); | |
| 3157 DEFINE_PLATFORM_CODE_STUB(AtomicsLoad, PlatformCodeStub); | |
| 3158 }; | |
| 3159 | |
| 3160 #undef DEFINE_CALL_INTERFACE_DESCRIPTOR | 3151 #undef DEFINE_CALL_INTERFACE_DESCRIPTOR |
| 3161 #undef DEFINE_PLATFORM_CODE_STUB | 3152 #undef DEFINE_PLATFORM_CODE_STUB |
| 3162 #undef DEFINE_HANDLER_CODE_STUB | 3153 #undef DEFINE_HANDLER_CODE_STUB |
| 3163 #undef DEFINE_HYDROGEN_CODE_STUB | 3154 #undef DEFINE_HYDROGEN_CODE_STUB |
| 3164 #undef DEFINE_CODE_STUB | 3155 #undef DEFINE_CODE_STUB |
| 3165 #undef DEFINE_CODE_STUB_BASE | 3156 #undef DEFINE_CODE_STUB_BASE |
| 3166 | 3157 |
| 3167 extern Representation RepresentationFromType(Type* type); | 3158 extern Representation RepresentationFromType(Type* type); |
| 3168 | 3159 |
| 3169 } // namespace internal | 3160 } // namespace internal |
| 3170 } // namespace v8 | 3161 } // namespace v8 |
| 3171 | 3162 |
| 3172 #endif // V8_CODE_STUBS_H_ | 3163 #endif // V8_CODE_STUBS_H_ |
| OLD | NEW |