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

Unified Diff: src/scopes.cc

Issue 12646003: Add parser support for generators. (Closed) Base URL: git://github.com/v8/v8.git@bleeding_edge
Patch Set: Created 7 years, 9 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
« src/preparser.cc ('K') | « src/scopes.h ('k') | src/token.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scopes.cc
diff --git a/src/scopes.cc b/src/scopes.cc
index e1326722b531303ee73ed11a532b4a953698593d..33ce236462e00bd6727311e2163cceb8650ab071 100644
--- a/src/scopes.cc
+++ b/src/scopes.cc
@@ -190,6 +190,7 @@ void Scope::SetDefaults(ScopeType type,
illegal_redecl_ = NULL;
scope_inside_with_ = false;
scope_contains_with_ = false;
+ scope_inside_generator_ = false;
scope_calls_eval_ = false;
// Inherit the strict mode from the parent scope.
language_mode_ = (outer_scope != NULL)
@@ -320,6 +321,7 @@ void Scope::Initialize() {
if (outer_scope_ != NULL) {
outer_scope_->inner_scopes_.Add(this, zone());
scope_inside_with_ = outer_scope_->scope_inside_with_ || is_with_scope();
+ scope_inside_generator_ = outer_scope_->inside_generator();
} else {
scope_inside_with_ = is_with_scope();
}
« src/preparser.cc ('K') | « src/scopes.h ('k') | src/token.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698