Index: src/ast/scopes.h |
diff --git a/src/ast/scopes.h b/src/ast/scopes.h |
index 0e7d209d466891eae6a6ff55ccff1a5648f0ef80..6c261f63c376fdf9357eb06ad8cf397f1c08a9ec 100644 |
--- a/src/ast/scopes.h |
+++ b/src/ast/scopes.h |
@@ -209,6 +209,15 @@ class Scope: public ZoneObject { |
// names. |
Variable* NewTemporary(const AstRawString* name); |
+ // Remove a temporary variable. This is for adjusting the scope of |
+ // temporaries used when desugaring parameter initializers. |
+ bool 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. |
+ void AddTemporary(Variable* var) { temps_.Add(var, zone()); } |
+ |
// Adds the specific declaration node to the list of declarations in |
// this scope. The declarations are processed as part of entering |
// the scope; see codegen.cc:ProcessDeclarations. |