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

Unified Diff: src/interface-descriptors.cc

Issue 2380523005: [interpreter] Specify and type the parameters of the Interpreter*Descriptors. (Closed)
Patch Set: Update. Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/interface-descriptors.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/interface-descriptors.cc
diff --git a/src/interface-descriptors.cc b/src/interface-descriptors.cc
index dd8ed975385a3b4a02ffc6046edca34dd6d7bfa1..02b2b6dd4c4850fb9cf83b9a3e12af4e3b3b267c 100644
--- a/src/interface-descriptors.cc
+++ b/src/interface-descriptors.cc
@@ -424,5 +424,44 @@ void InterpreterDispatchDescriptor::InitializePlatformIndependent(
machine_types);
}
+void InterpreterPushArgsAndCallDescriptor::InitializePlatformIndependent(
+ CallInterfaceDescriptorData* data) {
+ // kNumberOfArguments, kFirstArgument, kFunction
+ MachineType machine_types[] = {MachineType::Int32(), MachineType::Pointer(),
+ MachineType::AnyTagged()};
+ data->InitializePlatformIndependent(arraysize(machine_types), 0,
+ machine_types);
+}
+
+void InterpreterPushArgsAndConstructDescriptor::InitializePlatformIndependent(
+ CallInterfaceDescriptorData* data) {
+ // kNumberOfArguments, kNewTarget, kConstructor, kFeedbackElement,
+ // kFirstArgument
+ MachineType machine_types[] = {
+ MachineType::Int32(), MachineType::AnyTagged(), MachineType::AnyTagged(),
+ MachineType::AnyTagged(), MachineType::Pointer()};
+ data->InitializePlatformIndependent(arraysize(machine_types), 0,
+ machine_types);
+}
+
+void InterpreterPushArgsAndConstructArrayDescriptor::
+ InitializePlatformIndependent(CallInterfaceDescriptorData* data) {
+ // kNumberOfArguments, kFunction, kFeedbackElement, kFirstArgument
+ MachineType machine_types[] = {MachineType::Int32(), MachineType::AnyTagged(),
+ MachineType::AnyTagged(),
+ MachineType::Pointer()};
+ data->InitializePlatformIndependent(arraysize(machine_types), 0,
+ machine_types);
+}
+
+void InterpreterCEntryDescriptor::InitializePlatformIndependent(
+ CallInterfaceDescriptorData* data) {
+ // kNumberOfArguments, kFirstArgument, kFunctionEntry
+ MachineType machine_types[] = {MachineType::Int32(), MachineType::Pointer(),
+ MachineType::Pointer()};
+ data->InitializePlatformIndependent(arraysize(machine_types), 0,
+ machine_types);
+}
+
} // namespace internal
} // namespace v8
« no previous file with comments | « src/interface-descriptors.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698