Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Side by Side Diff: src/code-stubs.h

Issue 1617503003: [Atomics] code stubs for atomic operations (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: remove FCG+CS intrinsic wiring, experiments with CodeStubAssembler Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 2939 matching lines...) Expand 10 before | Expand all | Expand 10 after
2975 2976
2976 class StringCompareStub : public PlatformCodeStub { 2977 class StringCompareStub : public PlatformCodeStub {
2977 public: 2978 public:
2978 explicit StringCompareStub(Isolate* isolate) : PlatformCodeStub(isolate) {} 2979 explicit StringCompareStub(Isolate* isolate) : PlatformCodeStub(isolate) {}
2979 2980
2980 DEFINE_CALL_INTERFACE_DESCRIPTOR(StringCompare); 2981 DEFINE_CALL_INTERFACE_DESCRIPTOR(StringCompare);
2981 DEFINE_PLATFORM_CODE_STUB(StringCompare, PlatformCodeStub); 2982 DEFINE_PLATFORM_CODE_STUB(StringCompare, PlatformCodeStub);
2982 }; 2983 };
2983 2984
2984 2985
2986 class AtomicsLoadStub : public PlatformCodeStub {
2987 public:
2988 explicit AtomicsLoadStub(Isolate* isolate) : PlatformCodeStub(isolate) {}
2989
2990 DEFINE_CALL_INTERFACE_DESCRIPTOR(AtomicsLoad);
2991 DEFINE_PLATFORM_CODE_STUB(AtomicsLoad, PlatformCodeStub);
2992 };
2993
2994
2985 #undef DEFINE_CALL_INTERFACE_DESCRIPTOR 2995 #undef DEFINE_CALL_INTERFACE_DESCRIPTOR
2986 #undef DEFINE_PLATFORM_CODE_STUB 2996 #undef DEFINE_PLATFORM_CODE_STUB
2987 #undef DEFINE_HANDLER_CODE_STUB 2997 #undef DEFINE_HANDLER_CODE_STUB
2988 #undef DEFINE_HYDROGEN_CODE_STUB 2998 #undef DEFINE_HYDROGEN_CODE_STUB
2989 #undef DEFINE_CODE_STUB 2999 #undef DEFINE_CODE_STUB
2990 #undef DEFINE_CODE_STUB_BASE 3000 #undef DEFINE_CODE_STUB_BASE
2991 3001
2992 extern Representation RepresentationFromType(Type* type); 3002 extern Representation RepresentationFromType(Type* type);
2993 3003
2994 } // namespace internal 3004 } // namespace internal
2995 } // namespace v8 3005 } // namespace v8
2996 3006
2997 #endif // V8_CODE_STUBS_H_ 3007 #endif // V8_CODE_STUBS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698