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

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: more WIP on using 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 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 V(ArgumentsAccessNew) \ 71 V(ArgumentsAccessNew) \
72 V(RestParamAccess) \ 72 V(RestParamAccess) \
73 V(LoadGlobalViaContext) \ 73 V(LoadGlobalViaContext) \
74 V(StoreGlobalViaContext) \ 74 V(StoreGlobalViaContext) \
75 V(MathPowTagged) \ 75 V(MathPowTagged) \
76 V(MathPowInteger) \ 76 V(MathPowInteger) \
77 V(ContextOnly) \ 77 V(ContextOnly) \
78 V(GrowArrayElements) \ 78 V(GrowArrayElements) \
79 V(InterpreterPushArgsAndCall) \ 79 V(InterpreterPushArgsAndCall) \
80 V(InterpreterPushArgsAndConstruct) \ 80 V(InterpreterPushArgsAndConstruct) \
81 V(InterpreterCEntry) 81 V(InterpreterCEntry) \
82 82 V(AtomicsLoad)
83 83
84 class CallInterfaceDescriptorData { 84 class CallInterfaceDescriptorData {
85 public: 85 public:
86 CallInterfaceDescriptorData() 86 CallInterfaceDescriptorData()
87 : register_param_count_(-1), function_type_(nullptr) {} 87 : register_param_count_(-1), function_type_(nullptr) {}
88 88
89 // A copy of the passed in registers and param_representations is made 89 // A copy of the passed in registers and param_representations is made
90 // and owned by the CallInterfaceDescriptorData. 90 // and owned by the CallInterfaceDescriptorData.
91 91
92 void InitializePlatformIndependent(Type::FunctionType* function_type) { 92 void InitializePlatformIndependent(Type::FunctionType* function_type) {
(...skipping 685 matching lines...) Expand 10 before | Expand all | Expand 10 after
778 CallInterfaceDescriptor) 778 CallInterfaceDescriptor)
779 }; 779 };
780 780
781 781
782 class InterpreterCEntryDescriptor : public CallInterfaceDescriptor { 782 class InterpreterCEntryDescriptor : public CallInterfaceDescriptor {
783 public: 783 public:
784 DECLARE_DESCRIPTOR(InterpreterCEntryDescriptor, CallInterfaceDescriptor) 784 DECLARE_DESCRIPTOR(InterpreterCEntryDescriptor, CallInterfaceDescriptor)
785 }; 785 };
786 786
787 787
788 class AtomicsLoadDescriptor : public CallInterfaceDescriptor {
789 public:
790 DECLARE_DESCRIPTOR(AtomicsLoadDescriptor, CallInterfaceDescriptor)
791 };
792
793
788 #undef DECLARE_DESCRIPTOR 794 #undef DECLARE_DESCRIPTOR
789 795
790 796
791 // We define the association between CallDescriptors::Key and the specialized 797 // We define the association between CallDescriptors::Key and the specialized
792 // descriptor here to reduce boilerplate and mistakes. 798 // descriptor here to reduce boilerplate and mistakes.
793 #define DEF_KEY(name) \ 799 #define DEF_KEY(name) \
794 CallDescriptors::Key name##Descriptor::key() { return CallDescriptors::name; } 800 CallDescriptors::Key name##Descriptor::key() { return CallDescriptors::name; }
795 INTERFACE_DESCRIPTOR_LIST(DEF_KEY) 801 INTERFACE_DESCRIPTOR_LIST(DEF_KEY)
796 #undef DEF_KEY 802 #undef DEF_KEY
797 } // namespace internal 803 } // namespace internal
798 } // namespace v8 804 } // namespace v8
799 805
800 806
801 #if V8_TARGET_ARCH_ARM64 807 #if V8_TARGET_ARCH_ARM64
802 #include "src/arm64/interface-descriptors-arm64.h" 808 #include "src/arm64/interface-descriptors-arm64.h"
803 #elif V8_TARGET_ARCH_ARM 809 #elif V8_TARGET_ARCH_ARM
804 #include "src/arm/interface-descriptors-arm.h" 810 #include "src/arm/interface-descriptors-arm.h"
805 #endif 811 #endif
806 812
807 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ 813 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698