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 2943 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2979 | 2980 |
2980 class StringCompareStub : public PlatformCodeStub { | 2981 class StringCompareStub : public PlatformCodeStub { |
2981 public: | 2982 public: |
2982 explicit StringCompareStub(Isolate* isolate) : PlatformCodeStub(isolate) {} | 2983 explicit StringCompareStub(Isolate* isolate) : PlatformCodeStub(isolate) {} |
2983 | 2984 |
2984 DEFINE_CALL_INTERFACE_DESCRIPTOR(StringCompare); | 2985 DEFINE_CALL_INTERFACE_DESCRIPTOR(StringCompare); |
2985 DEFINE_PLATFORM_CODE_STUB(StringCompare, PlatformCodeStub); | 2986 DEFINE_PLATFORM_CODE_STUB(StringCompare, PlatformCodeStub); |
2986 }; | 2987 }; |
2987 | 2988 |
2988 | 2989 |
| 2990 class AtomicsLoadStub : public PlatformCodeStub { |
| 2991 public: |
| 2992 explicit AtomicsLoadStub(Isolate* isolate) : PlatformCodeStub(isolate) {} |
| 2993 |
| 2994 DEFINE_CALL_INTERFACE_DESCRIPTOR(AtomicsLoad); |
| 2995 DEFINE_PLATFORM_CODE_STUB(AtomicsLoad, PlatformCodeStub); |
| 2996 }; |
| 2997 |
| 2998 |
2989 #undef DEFINE_CALL_INTERFACE_DESCRIPTOR | 2999 #undef DEFINE_CALL_INTERFACE_DESCRIPTOR |
2990 #undef DEFINE_PLATFORM_CODE_STUB | 3000 #undef DEFINE_PLATFORM_CODE_STUB |
2991 #undef DEFINE_HANDLER_CODE_STUB | 3001 #undef DEFINE_HANDLER_CODE_STUB |
2992 #undef DEFINE_HYDROGEN_CODE_STUB | 3002 #undef DEFINE_HYDROGEN_CODE_STUB |
2993 #undef DEFINE_CODE_STUB | 3003 #undef DEFINE_CODE_STUB |
2994 #undef DEFINE_CODE_STUB_BASE | 3004 #undef DEFINE_CODE_STUB_BASE |
2995 | 3005 |
2996 extern Representation RepresentationFromType(Type* type); | 3006 extern Representation RepresentationFromType(Type* type); |
2997 | 3007 |
2998 } // namespace internal | 3008 } // namespace internal |
2999 } // namespace v8 | 3009 } // namespace v8 |
3000 | 3010 |
3001 #endif // V8_CODE_STUBS_H_ | 3011 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |