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

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: more cleanup Created 4 years, 8 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(ArrayConstructor) \ 24 V(ArrayConstructor) \
25 V(AtomicsLoad) \
25 V(BinaryOpICWithAllocationSite) \ 26 V(BinaryOpICWithAllocationSite) \
26 V(CallApiCallback) \ 27 V(CallApiCallback) \
27 V(CallApiGetter) \ 28 V(CallApiGetter) \
28 V(CallConstruct) \ 29 V(CallConstruct) \
29 V(CallIC) \ 30 V(CallIC) \
30 V(CEntry) \ 31 V(CEntry) \
31 V(CompareIC) \ 32 V(CompareIC) \
32 V(DoubleToI) \ 33 V(DoubleToI) \
33 V(FunctionPrototype) \ 34 V(FunctionPrototype) \
34 V(InstanceOf) \ 35 V(InstanceOf) \
(...skipping 3055 matching lines...) Expand 10 before | Expand all | Expand 10 after
3090 3091
3091 3092
3092 class ToObjectStub final : public HydrogenCodeStub { 3093 class ToObjectStub final : public HydrogenCodeStub {
3093 public: 3094 public:
3094 explicit ToObjectStub(Isolate* isolate) : HydrogenCodeStub(isolate) {} 3095 explicit ToObjectStub(Isolate* isolate) : HydrogenCodeStub(isolate) {}
3095 3096
3096 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion); 3097 DEFINE_CALL_INTERFACE_DESCRIPTOR(TypeConversion);
3097 DEFINE_HYDROGEN_CODE_STUB(ToObject, HydrogenCodeStub); 3098 DEFINE_HYDROGEN_CODE_STUB(ToObject, HydrogenCodeStub);
3098 }; 3099 };
3099 3100
3101 class AtomicsLoadStub : public PlatformCodeStub {
3102 public:
3103 explicit AtomicsLoadStub(Isolate* isolate) : PlatformCodeStub(isolate) {}
3104
3105 DEFINE_CALL_INTERFACE_DESCRIPTOR(AtomicsLoad);
3106 DEFINE_PLATFORM_CODE_STUB(AtomicsLoad, PlatformCodeStub);
3107 };
3108
3100 #undef DEFINE_CALL_INTERFACE_DESCRIPTOR 3109 #undef DEFINE_CALL_INTERFACE_DESCRIPTOR
3101 #undef DEFINE_PLATFORM_CODE_STUB 3110 #undef DEFINE_PLATFORM_CODE_STUB
3102 #undef DEFINE_HANDLER_CODE_STUB 3111 #undef DEFINE_HANDLER_CODE_STUB
3103 #undef DEFINE_HYDROGEN_CODE_STUB 3112 #undef DEFINE_HYDROGEN_CODE_STUB
3104 #undef DEFINE_CODE_STUB 3113 #undef DEFINE_CODE_STUB
3105 #undef DEFINE_CODE_STUB_BASE 3114 #undef DEFINE_CODE_STUB_BASE
3106 3115
3107 extern Representation RepresentationFromType(Type* type); 3116 extern Representation RepresentationFromType(Type* type);
3108 3117
3109 } // namespace internal 3118 } // namespace internal
3110 } // namespace v8 3119 } // namespace v8
3111 3120
3112 #endif // V8_CODE_STUBS_H_ 3121 #endif // V8_CODE_STUBS_H_
OLDNEW
« src/builtins.cc ('K') | « src/code-factory.cc ('k') | src/compiler/code-stub-assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698