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

Unified Diff: src/ast/scopes.h

Issue 2243833002: Get rid of dead RemoveTemporary (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Remove outdated comment Created 4 years, 4 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 | « no previous file | 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 6e0d79e2edd81e107aa498b8c7b847ab7c9cd12e..dd65d48c4a14c4e234e958c8ddc8c1a78648fdf0 100644
--- a/src/ast/scopes.h
+++ b/src/ast/scopes.h
@@ -800,12 +800,6 @@ class DeclarationScope : public Scope {
return this_function_;
}
- // Remove a temporary variable. This is for adjusting the scope of
- // temporaries used when desugaring parameter initializers.
- // Returns the index at which it was found in this scope, or -1 if
- // it was not found.
- int RemoveTemporary(Variable* var);
-
// Adds a temporary variable in this scope's TemporaryScope. This is for
// adjusting the scope of temporaries used when desugaring parameter
// initializers.
@@ -873,9 +867,7 @@ class DeclarationScope : public Scope {
int arity_;
int rest_index_;
Variable* rest_parameter_;
- // Compiler-allocated (user-invisible) temporaries. Due to the implementation
- // of RemoveTemporary(), may contain nulls, which must be skipped-over during
- // allocation and printing.
+ // Compiler-allocated (user-invisible) temporaries.
ZoneList<Variable*> temps_;
// Parameter list in source order.
ZoneList<Variable*> params_;
« no previous file with comments | « no previous file | src/ast/scopes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698