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

Unified Diff: src/ast.h

Issue 1354523003: Fix temp_zone scoping when parsing inner function literals (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast.h
diff --git a/src/ast.h b/src/ast.h
index 34de3e4c74b5e876b395f136f8ee4379f605a0b3..af82541ec668e60bcd4098da1c10ea39d4c9af5f 100644
--- a/src/ast.h
+++ b/src/ast.h
@@ -3676,9 +3676,9 @@ class AstNodeFactory final BASE_EMBEDDED {
// Handles use of temporary zones when parsing inner function bodies.
class BodyScope {
public:
- BodyScope(AstNodeFactory* factory, Zone* temp_zone, bool can_use_temp_zone)
+ BodyScope(AstNodeFactory* factory, Zone* temp_zone, bool use_temp_zone)
: factory_(factory), prev_zone_(factory->local_zone_) {
- if (can_use_temp_zone) {
+ if (use_temp_zone) {
factory->local_zone_ = temp_zone;
}
}
« no previous file with comments | « no previous file | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698