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

Unified Diff: src/objects-inl.h

Issue 816913003: Implement ES6 rest parameters (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix typo in ARM port Created 5 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
« no previous file with comments | « src/objects.cc ('k') | src/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects-inl.h
diff --git a/src/objects-inl.h b/src/objects-inl.h
index 5e6e32c7945ab08435876923fa8d0526cf6358c2..ffbf92e719c337b2e1b9164930153a645b18be33 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -5959,6 +5959,11 @@ bool SharedFunctionInfo::is_compiled() {
}
+bool SharedFunctionInfo::is_simple_parameter_list() {
+ return scope_info()->IsSimpleParameterList();
+}
+
+
bool SharedFunctionInfo::IsApiFunction() {
return function_data()->IsFunctionTemplateInfo();
}
@@ -6232,6 +6237,11 @@ bool JSFunction::is_compiled() {
}
+bool JSFunction::is_simple_parameter_list() {
+ return shared()->is_simple_parameter_list();
+}
+
+
FixedArray* JSFunction::literals() {
DCHECK(!shared()->bound());
return literals_or_bindings();
« no previous file with comments | « src/objects.cc ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698