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

Unified Diff: src/ast/scopes.h

Issue 1485823003: [cleanup] Remove cruft from old rest parameter implementation (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/ast/ast-value-factory.h ('k') | src/ast/scopes.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast/scopes.h
diff --git a/src/ast/scopes.h b/src/ast/scopes.h
index 3ef40ecf91d4e646be78d63065beda1f73578d6d..9effd1d02981bc51050544880786d8b31dbba464 100644
--- a/src/ast/scopes.h
+++ b/src/ast/scopes.h
@@ -420,17 +420,6 @@ class Scope: public ZoneObject {
int num_parameters() const { return params_.length(); }
- // A function can have at most one rest parameter. Returns Variable* or NULL.
- Variable* rest_parameter(int* index) const {
- *index = rest_index_;
- if (rest_index_ < 0) return NULL;
- return rest_parameter_;
- }
-
- bool has_rest_parameter() const {
- return rest_index_ >= 0;
- }
-
bool has_simple_parameters() const {
return has_simple_parameters_;
}
@@ -702,7 +691,6 @@ class Scope: public ZoneObject {
int arity_;
bool has_simple_parameters_;
Variable* rest_parameter_;
- int rest_index_;
// Serialized scope info support.
Handle<ScopeInfo> scope_info_;
« no previous file with comments | « src/ast/ast-value-factory.h ('k') | src/ast/scopes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698