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

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

Issue 1865833002: [generators] Decouple generator resume from fullcodegen. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 V(ApiGetter) \ 83 V(ApiGetter) \
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 95
95 class CallInterfaceDescriptorData { 96 class CallInterfaceDescriptorData {
96 public: 97 public:
97 CallInterfaceDescriptorData() 98 CallInterfaceDescriptorData()
98 : register_param_count_(-1), function_type_(nullptr) {} 99 : register_param_count_(-1), function_type_(nullptr) {}
99 100
100 // A copy of the passed in registers and param_representations is made 101 // A copy of the passed in registers and param_representations is made
101 // and owned by the CallInterfaceDescriptorData. 102 // and owned by the CallInterfaceDescriptorData.
102 103
103 void InitializePlatformIndependent(FunctionType* function_type) { 104 void InitializePlatformIndependent(FunctionType* function_type) {
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after
815 DECLARE_DESCRIPTOR(InterpreterPushArgsAndConstructDescriptor, 816 DECLARE_DESCRIPTOR(InterpreterPushArgsAndConstructDescriptor,
816 CallInterfaceDescriptor) 817 CallInterfaceDescriptor)
817 }; 818 };
818 819
819 820
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
826 class ResumeGeneratorDescriptor final : public CallInterfaceDescriptor {
827 public:
828 DECLARE_DESCRIPTOR(ResumeGeneratorDescriptor, CallInterfaceDescriptor)
829 };
830
825 #undef DECLARE_DESCRIPTOR_WITH_BASE 831 #undef DECLARE_DESCRIPTOR_WITH_BASE
826 #undef DECLARE_DESCRIPTOR 832 #undef DECLARE_DESCRIPTOR
827 #undef DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE 833 #undef DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE
828 #undef DECLARE_DESCRIPTOR_WITH_BASE_AND_FUNCTION_TYPE_ARG 834 #undef DECLARE_DESCRIPTOR_WITH_BASE_AND_FUNCTION_TYPE_ARG
829 835
830 // We define the association between CallDescriptors::Key and the specialized 836 // We define the association between CallDescriptors::Key and the specialized
831 // descriptor here to reduce boilerplate and mistakes. 837 // descriptor here to reduce boilerplate and mistakes.
832 #define DEF_KEY(name) \ 838 #define DEF_KEY(name) \
833 CallDescriptors::Key name##Descriptor::key() { return CallDescriptors::name; } 839 CallDescriptors::Key name##Descriptor::key() { return CallDescriptors::name; }
834 INTERFACE_DESCRIPTOR_LIST(DEF_KEY) 840 INTERFACE_DESCRIPTOR_LIST(DEF_KEY)
835 #undef DEF_KEY 841 #undef DEF_KEY
836 } // namespace internal 842 } // namespace internal
837 } // namespace v8 843 } // namespace v8
838 844
839 845
840 #if V8_TARGET_ARCH_ARM64 846 #if V8_TARGET_ARCH_ARM64
841 #include "src/arm64/interface-descriptors-arm64.h" 847 #include "src/arm64/interface-descriptors-arm64.h"
842 #elif V8_TARGET_ARCH_ARM 848 #elif V8_TARGET_ARCH_ARM
843 #include "src/arm/interface-descriptors-arm.h" 849 #include "src/arm/interface-descriptors-arm.h"
844 #endif 850 #endif
845 851
846 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ 852 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_
OLDNEW
« src/deoptimizer.cc ('K') | « src/ia32/macro-assembler-ia32.cc ('k') | src/js/generator.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698