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

Side by Side Diff: src/interface-descriptors.h

Issue 1617503003: [Atomics] code stubs for atomic operations (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: merge master + reduce kSlotIndexBits 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
« no previous file with comments | « src/ia32/macro-assembler-ia32.h ('k') | src/js/harmony-atomics.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_CALL_INTERFACE_DESCRIPTOR_H_ 5 #ifndef V8_CALL_INTERFACE_DESCRIPTOR_H_
6 #define V8_CALL_INTERFACE_DESCRIPTOR_H_ 6 #define V8_CALL_INTERFACE_DESCRIPTOR_H_
7 7
8 #include "src/assembler.h" 8 #include "src/assembler.h"
9 #include "src/macro-assembler.h" 9 #include "src/macro-assembler.h"
10 10
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 V(LoadGlobalViaContext) \ 84 V(LoadGlobalViaContext) \
85 V(StoreGlobalViaContext) \ 85 V(StoreGlobalViaContext) \
86 V(MathPowTagged) \ 86 V(MathPowTagged) \
87 V(MathPowInteger) \ 87 V(MathPowInteger) \
88 V(ContextOnly) \ 88 V(ContextOnly) \
89 V(GrowArrayElements) \ 89 V(GrowArrayElements) \
90 V(InterpreterDispatch) \ 90 V(InterpreterDispatch) \
91 V(InterpreterPushArgsAndCall) \ 91 V(InterpreterPushArgsAndCall) \
92 V(InterpreterPushArgsAndConstruct) \ 92 V(InterpreterPushArgsAndConstruct) \
93 V(InterpreterCEntry) \ 93 V(InterpreterCEntry) \
94 V(ResumeGenerator) 94 V(ResumeGenerator) \
95 V(AtomicsLoad)
95 96
96 class CallInterfaceDescriptorData { 97 class CallInterfaceDescriptorData {
97 public: 98 public:
98 CallInterfaceDescriptorData() 99 CallInterfaceDescriptorData()
99 : register_param_count_(-1), function_type_(nullptr) {} 100 : register_param_count_(-1), function_type_(nullptr) {}
100 101
101 // A copy of the passed in registers and param_representations is made 102 // A copy of the passed in registers and param_representations is made
102 // and owned by the CallInterfaceDescriptorData. 103 // and owned by the CallInterfaceDescriptorData.
103 104
104 void InitializePlatformIndependent(FunctionType* function_type) { 105 void InitializePlatformIndependent(FunctionType* function_type) {
(...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after
820 class InterpreterCEntryDescriptor : public CallInterfaceDescriptor { 821 class InterpreterCEntryDescriptor : public CallInterfaceDescriptor {
821 public: 822 public:
822 DECLARE_DESCRIPTOR(InterpreterCEntryDescriptor, CallInterfaceDescriptor) 823 DECLARE_DESCRIPTOR(InterpreterCEntryDescriptor, CallInterfaceDescriptor)
823 }; 824 };
824 825
825 class ResumeGeneratorDescriptor final : public CallInterfaceDescriptor { 826 class ResumeGeneratorDescriptor final : public CallInterfaceDescriptor {
826 public: 827 public:
827 DECLARE_DESCRIPTOR(ResumeGeneratorDescriptor, CallInterfaceDescriptor) 828 DECLARE_DESCRIPTOR(ResumeGeneratorDescriptor, CallInterfaceDescriptor)
828 }; 829 };
829 830
831 class AtomicsLoadDescriptor : public CallInterfaceDescriptor {
832 public:
833 DECLARE_DESCRIPTOR(AtomicsLoadDescriptor, CallInterfaceDescriptor)
834 };
835
830 #undef DECLARE_DESCRIPTOR_WITH_BASE 836 #undef DECLARE_DESCRIPTOR_WITH_BASE
831 #undef DECLARE_DESCRIPTOR 837 #undef DECLARE_DESCRIPTOR
832 #undef DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE 838 #undef DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE
833 #undef DECLARE_DESCRIPTOR_WITH_BASE_AND_FUNCTION_TYPE_ARG 839 #undef DECLARE_DESCRIPTOR_WITH_BASE_AND_FUNCTION_TYPE_ARG
834 840
835 // We define the association between CallDescriptors::Key and the specialized 841 // We define the association between CallDescriptors::Key and the specialized
836 // descriptor here to reduce boilerplate and mistakes. 842 // descriptor here to reduce boilerplate and mistakes.
837 #define DEF_KEY(name) \ 843 #define DEF_KEY(name) \
838 CallDescriptors::Key name##Descriptor::key() { return CallDescriptors::name; } 844 CallDescriptors::Key name##Descriptor::key() { return CallDescriptors::name; }
839 INTERFACE_DESCRIPTOR_LIST(DEF_KEY) 845 INTERFACE_DESCRIPTOR_LIST(DEF_KEY)
840 #undef DEF_KEY 846 #undef DEF_KEY
841 } // namespace internal 847 } // namespace internal
842 } // namespace v8 848 } // namespace v8
843 849
844 850
845 #if V8_TARGET_ARCH_ARM64 851 #if V8_TARGET_ARCH_ARM64
846 #include "src/arm64/interface-descriptors-arm64.h" 852 #include "src/arm64/interface-descriptors-arm64.h"
847 #elif V8_TARGET_ARCH_ARM 853 #elif V8_TARGET_ARCH_ARM
848 #include "src/arm/interface-descriptors-arm.h" 854 #include "src/arm/interface-descriptors-arm.h"
849 #endif 855 #endif
850 856
851 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ 857 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_
OLDNEW
« no previous file with comments | « src/ia32/macro-assembler-ia32.h ('k') | src/js/harmony-atomics.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698