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(ArgumentsAccess) \ | 24 V(ArgumentsAccess) \ |
25 V(ArrayConstructor) \ | 25 V(ArrayConstructor) \ |
| 26 V(AtomicsLoad) \ |
26 V(BinaryOpICWithAllocationSite) \ | 27 V(BinaryOpICWithAllocationSite) \ |
27 V(CallApiFunction) \ | 28 V(CallApiFunction) \ |
28 V(CallApiAccessor) \ | 29 V(CallApiAccessor) \ |
29 V(CallApiGetter) \ | 30 V(CallApiGetter) \ |
30 V(CallConstruct) \ | 31 V(CallConstruct) \ |
31 V(CallIC) \ | 32 V(CallIC) \ |
32 V(CEntry) \ | 33 V(CEntry) \ |
33 V(CompareIC) \ | 34 V(CompareIC) \ |
34 V(DoubleToI) \ | 35 V(DoubleToI) \ |
35 V(FunctionPrototype) \ | 36 V(FunctionPrototype) \ |
(...skipping 2921 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2957 | 2958 |
2958 class StringCompareStub : public PlatformCodeStub { | 2959 class StringCompareStub : public PlatformCodeStub { |
2959 public: | 2960 public: |
2960 explicit StringCompareStub(Isolate* isolate) : PlatformCodeStub(isolate) {} | 2961 explicit StringCompareStub(Isolate* isolate) : PlatformCodeStub(isolate) {} |
2961 | 2962 |
2962 DEFINE_CALL_INTERFACE_DESCRIPTOR(StringCompare); | 2963 DEFINE_CALL_INTERFACE_DESCRIPTOR(StringCompare); |
2963 DEFINE_PLATFORM_CODE_STUB(StringCompare, PlatformCodeStub); | 2964 DEFINE_PLATFORM_CODE_STUB(StringCompare, PlatformCodeStub); |
2964 }; | 2965 }; |
2965 | 2966 |
2966 | 2967 |
| 2968 class AtomicsLoadStub : public PlatformCodeStub { |
| 2969 public: |
| 2970 explicit AtomicsLoadStub(Isolate* isolate) : PlatformCodeStub(isolate) {} |
| 2971 |
| 2972 DEFINE_CALL_INTERFACE_DESCRIPTOR(AtomicsLoad); |
| 2973 DEFINE_PLATFORM_CODE_STUB(AtomicsLoad, PlatformCodeStub); |
| 2974 }; |
| 2975 |
| 2976 |
2967 #undef DEFINE_CALL_INTERFACE_DESCRIPTOR | 2977 #undef DEFINE_CALL_INTERFACE_DESCRIPTOR |
2968 #undef DEFINE_PLATFORM_CODE_STUB | 2978 #undef DEFINE_PLATFORM_CODE_STUB |
2969 #undef DEFINE_HANDLER_CODE_STUB | 2979 #undef DEFINE_HANDLER_CODE_STUB |
2970 #undef DEFINE_HYDROGEN_CODE_STUB | 2980 #undef DEFINE_HYDROGEN_CODE_STUB |
2971 #undef DEFINE_CODE_STUB | 2981 #undef DEFINE_CODE_STUB |
2972 #undef DEFINE_CODE_STUB_BASE | 2982 #undef DEFINE_CODE_STUB_BASE |
2973 | 2983 |
2974 extern Representation RepresentationFromType(Type* type); | 2984 extern Representation RepresentationFromType(Type* type); |
2975 | 2985 |
2976 } // namespace internal | 2986 } // namespace internal |
2977 } // namespace v8 | 2987 } // namespace v8 |
2978 | 2988 |
2979 #endif // V8_CODE_STUBS_H_ | 2989 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |