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

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: call code stub from TF 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 2935 matching lines...) Expand 10 before | Expand all | Expand 10 after
2971 2972
2972 class StringCompareStub : public PlatformCodeStub { 2973 class StringCompareStub : public PlatformCodeStub {
2973 public: 2974 public:
2974 explicit StringCompareStub(Isolate* isolate) : PlatformCodeStub(isolate) {} 2975 explicit StringCompareStub(Isolate* isolate) : PlatformCodeStub(isolate) {}
2975 2976
2976 DEFINE_CALL_INTERFACE_DESCRIPTOR(StringCompare); 2977 DEFINE_CALL_INTERFACE_DESCRIPTOR(StringCompare);
2977 DEFINE_PLATFORM_CODE_STUB(StringCompare, PlatformCodeStub); 2978 DEFINE_PLATFORM_CODE_STUB(StringCompare, PlatformCodeStub);
2978 }; 2979 };
2979 2980
2980 2981
2982 class AtomicsLoadStub : public PlatformCodeStub {
2983 public:
2984 explicit AtomicsLoadStub(Isolate* isolate) : PlatformCodeStub(isolate) {}
2985
2986 DEFINE_CALL_INTERFACE_DESCRIPTOR(AtomicsLoad);
2987 DEFINE_PLATFORM_CODE_STUB(AtomicsLoad, PlatformCodeStub);
2988 };
2989
2990
2981 #undef DEFINE_CALL_INTERFACE_DESCRIPTOR 2991 #undef DEFINE_CALL_INTERFACE_DESCRIPTOR
2982 #undef DEFINE_PLATFORM_CODE_STUB 2992 #undef DEFINE_PLATFORM_CODE_STUB
2983 #undef DEFINE_HANDLER_CODE_STUB 2993 #undef DEFINE_HANDLER_CODE_STUB
2984 #undef DEFINE_HYDROGEN_CODE_STUB 2994 #undef DEFINE_HYDROGEN_CODE_STUB
2985 #undef DEFINE_CODE_STUB 2995 #undef DEFINE_CODE_STUB
2986 #undef DEFINE_CODE_STUB_BASE 2996 #undef DEFINE_CODE_STUB_BASE
2987 2997
2988 extern Representation RepresentationFromType(Type* type); 2998 extern Representation RepresentationFromType(Type* type);
2989 2999
2990 } // namespace internal 3000 } // namespace internal
2991 } // namespace v8 3001 } // namespace v8
2992 3002
2993 #endif // V8_CODE_STUBS_H_ 3003 #endif // V8_CODE_STUBS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698