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

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 up the typos/pointless newline 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
« src/objects.h ('K') | « src/objects.h ('k') | src/runtime/runtime.h » ('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 31439039de15f1506e13b117c2a56dd0b6109ac4..f6a51a0292f9e09dfda1943c29c1516b2c6388fa 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -5960,6 +5960,11 @@ bool SharedFunctionInfo::is_compiled() {
}
+bool SharedFunctionInfo::is_simple_parameter_list() {
+ return scope_info()->IsSimpleParameterList();
+}
+
+
bool SharedFunctionInfo::IsApiFunction() {
return function_data()->IsFunctionTemplateInfo();
}
@@ -6233,6 +6238,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();
« src/objects.h ('K') | « src/objects.h ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698