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

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

Issue 2502293002: Reland of [refactoring] Split CodeAssemblerState out of CodeAssembler (Closed)
Patch Set: fix Created 4 years, 1 month 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/ic/keyed-store-generic.cc ('k') | src/interpreter/interpreter.cc » ('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 <memory> 8 #include <memory>
9 9
10 #include "src/assembler.h" 10 #include "src/assembler.h"
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 class CallDescriptors { 150 class CallDescriptors {
151 public: 151 public:
152 enum Key { 152 enum Key {
153 #define DEF_ENUM(name) name, 153 #define DEF_ENUM(name) name,
154 INTERFACE_DESCRIPTOR_LIST(DEF_ENUM) 154 INTERFACE_DESCRIPTOR_LIST(DEF_ENUM)
155 #undef DEF_ENUM 155 #undef DEF_ENUM
156 NUMBER_OF_DESCRIPTORS 156 NUMBER_OF_DESCRIPTORS
157 }; 157 };
158 }; 158 };
159 159
160 160 class V8_EXPORT_PRIVATE CallInterfaceDescriptor {
161 class CallInterfaceDescriptor {
162 public: 161 public:
163 CallInterfaceDescriptor() : data_(NULL) {} 162 CallInterfaceDescriptor() : data_(NULL) {}
164 virtual ~CallInterfaceDescriptor() {} 163 virtual ~CallInterfaceDescriptor() {}
165 164
166 CallInterfaceDescriptor(Isolate* isolate, CallDescriptors::Key key) 165 CallInterfaceDescriptor(Isolate* isolate, CallDescriptors::Key key)
167 : data_(isolate->call_descriptor_data(key)) {} 166 : data_(isolate->call_descriptor_data(key)) {}
168 167
169 int GetParameterCount() const { return data()->param_count(); } 168 int GetParameterCount() const { return data()->param_count(); }
170 169
171 int GetRegisterParameterCount() const { 170 int GetRegisterParameterCount() const {
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after
768 // TODO(turbofan): We should probably rename this to GrowFastElementsDescriptor. 767 // TODO(turbofan): We should probably rename this to GrowFastElementsDescriptor.
769 class GrowArrayElementsDescriptor : public CallInterfaceDescriptor { 768 class GrowArrayElementsDescriptor : public CallInterfaceDescriptor {
770 public: 769 public:
771 DEFINE_PARAMETERS(kObject, kKey) 770 DEFINE_PARAMETERS(kObject, kKey)
772 DECLARE_DESCRIPTOR(GrowArrayElementsDescriptor, CallInterfaceDescriptor) 771 DECLARE_DESCRIPTOR(GrowArrayElementsDescriptor, CallInterfaceDescriptor)
773 772
774 static const Register ObjectRegister(); 773 static const Register ObjectRegister();
775 static const Register KeyRegister(); 774 static const Register KeyRegister();
776 }; 775 };
777 776
778 class InterpreterDispatchDescriptor : public CallInterfaceDescriptor { 777 class V8_EXPORT_PRIVATE InterpreterDispatchDescriptor
778 : public CallInterfaceDescriptor {
779 public: 779 public:
780 DEFINE_PARAMETERS(kAccumulator, kBytecodeOffset, kBytecodeArray, 780 DEFINE_PARAMETERS(kAccumulator, kBytecodeOffset, kBytecodeArray,
781 kDispatchTable) 781 kDispatchTable)
782 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(InterpreterDispatchDescriptor, 782 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(InterpreterDispatchDescriptor,
783 CallInterfaceDescriptor) 783 CallInterfaceDescriptor)
784 }; 784 };
785 785
786 class InterpreterPushArgsAndCallDescriptor : public CallInterfaceDescriptor { 786 class InterpreterPushArgsAndCallDescriptor : public CallInterfaceDescriptor {
787 public: 787 public:
788 DEFINE_PARAMETERS(kNumberOfArguments, kFirstArgument, kFunction) 788 DEFINE_PARAMETERS(kNumberOfArguments, kFirstArgument, kFunction)
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
837 } // namespace v8 837 } // namespace v8
838 838
839 839
840 #if V8_TARGET_ARCH_ARM64 840 #if V8_TARGET_ARCH_ARM64
841 #include "src/arm64/interface-descriptors-arm64.h" 841 #include "src/arm64/interface-descriptors-arm64.h"
842 #elif V8_TARGET_ARCH_ARM 842 #elif V8_TARGET_ARCH_ARM
843 #include "src/arm/interface-descriptors-arm.h" 843 #include "src/arm/interface-descriptors-arm.h"
844 #endif 844 #endif
845 845
846 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ 846 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_
OLDNEW
« no previous file with comments | « src/ic/keyed-store-generic.cc ('k') | src/interpreter/interpreter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698