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

Unified Diff: src/ast/ast.h

Issue 2374963002: Preparse top-level functions in discardable zones (Closed)
Patch Set: Rebase Created 4 years, 3 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/ast.h
diff --git a/src/ast/ast.h b/src/ast/ast.h
index b27b7ca0fed67cb922bea46a434d46b886053efd..4dfc1a1a05d04bf3c43687a6628a5d95a2d275d9 100644
--- a/src/ast/ast.h
+++ b/src/ast/ast.h
@@ -3546,7 +3546,8 @@ class AstNodeFactory final BASE_EMBEDDED {
}
}
- ~BodyScope() { factory_->zone_ = prev_zone_; }
+ void Reset() { factory_->zone_ = prev_zone_; }
+ ~BodyScope() { Reset(); }
private:
AstNodeFactory* factory_;
« 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