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

Unified Diff: src/interface-descriptors.h

Issue 1676883002: [runtime] Optimize and unify rest parameters. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: src/interface-descriptors.h
diff --git a/src/interface-descriptors.h b/src/interface-descriptors.h
index 1c71d0f94005d5121d68aa8bc6afd6910e0de56f..f9720dfc50f3af69b482f3dbab92ed806c8d0000 100644
--- a/src/interface-descriptors.h
+++ b/src/interface-descriptors.h
@@ -25,6 +25,7 @@ class PlatformInterfaceDescriptor;
V(LoadWithVector) \
V(FastNewClosure) \
V(FastNewContext) \
+ V(FastNewRestParameter) \
V(ToNumber) \
V(ToLength) \
V(ToString) \
@@ -69,7 +70,6 @@ class PlatformInterfaceDescriptor;
V(ApiGetter) \
V(ArgumentsAccessRead) \
V(ArgumentsAccessNew) \
- V(RestParamAccess) \
V(LoadGlobalViaContext) \
V(StoreGlobalViaContext) \
V(MathPowTagged) \
@@ -80,7 +80,6 @@ class PlatformInterfaceDescriptor;
V(InterpreterPushArgsAndConstruct) \
V(InterpreterCEntry)
-
class CallInterfaceDescriptorData {
public:
CallInterfaceDescriptorData()
@@ -374,6 +373,11 @@ class FastNewContextDescriptor : public CallInterfaceDescriptor {
DECLARE_DESCRIPTOR(FastNewContextDescriptor, CallInterfaceDescriptor)
};
+class FastNewRestParameterDescriptor : public CallInterfaceDescriptor {
+ public:
+ DECLARE_DESCRIPTOR(FastNewRestParameterDescriptor, CallInterfaceDescriptor)
+};
+
class ToNumberDescriptor : public CallInterfaceDescriptor {
public:
@@ -717,16 +721,6 @@ class ArgumentsAccessNewDescriptor : public CallInterfaceDescriptor {
};
-class RestParamAccessDescriptor : public CallInterfaceDescriptor {
- public:
- DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(RestParamAccessDescriptor,
- CallInterfaceDescriptor)
- static const Register parameter_count();
- static const Register parameter_pointer();
- static const Register rest_parameter_index();
-};
-
-
class MathPowTaggedDescriptor : public CallInterfaceDescriptor {
public:
DECLARE_DESCRIPTOR(MathPowTaggedDescriptor, CallInterfaceDescriptor)

Powered by Google App Engine
This is Rietveld 408576698