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

Unified Diff: src/ast/scopes.h

Issue 2414003002: Move function length tracking from Scope to (Pre)?ParserFormalParameters. (Closed)
Patch Set: oops cont Created 4 years, 2 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/ast/ast.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 3d5004041ed3279b41eb664ea1f430cfb9d72df5..005b0fe97e73fb2d41e160810b51aecef142f88f 100644
--- a/src/ast/scopes.h
+++ b/src/ast/scopes.h
@@ -706,16 +706,6 @@ class DeclarationScope : public Scope {
return params_[index];
}
- // Returns the default function arity excluding default or rest parameters.
- // This will be used to set the length of the function, by default.
- // Class field initializers use this property to indicate the number of
- // fields being initialized.
- int arity() const { return arity_; }
-
- // Normal code should not need to call this. Class field initializers use this
- // property to indicate the number of fields being initialized.
- void set_arity(int arity) { arity_ = arity; }
-
// Returns the number of formal parameters, excluding a possible rest
// parameter. Examples:
// function foo(a, b) {} ==> 2
@@ -848,8 +838,6 @@ class DeclarationScope : public Scope {
// This scope uses "super" property ('super.foo').
bool scope_uses_super_property_ : 1;
- // Info about the parameter list of a function.
- int arity_;
// Parameter list in source order.
ZoneList<Variable*> params_;
// Map of function names to lists of functions defined in sloppy blocks
« no previous file with comments | « src/ast/ast.h ('k') | src/ast/scopes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698