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

Unified Diff: src/parser.cc

Issue 1219993002: Remove unused is_class_scope bit from Scope and ScopeInfo (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 6 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 | « src/objects.h ('k') | src/scopeinfo.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parser.cc
diff --git a/src/parser.cc b/src/parser.cc
index b9dcbfd84d11baf66e5b9f51e3f822510e0ed1d1..8f53c257c68e3c2579ece335c0518a19787a243e 100644
--- a/src/parser.cc
+++ b/src/parser.cc
@@ -4421,11 +4421,7 @@ ClassLiteral* Parser::ParseClassLiteral(const AstRawString* name,
return NULL;
}
- // Create a block scope which is additionally tagged as class scope; this is
- // important for resolving variable references to the class name in the strong
- // mode.
Scope* block_scope = NewScope(scope_, BLOCK_SCOPE);
- block_scope->tag_as_class_scope();
BlockState block_state(&scope_, block_scope);
scope_->SetLanguageMode(
static_cast<LanguageMode>(scope_->language_mode() | STRICT_BIT));
« no previous file with comments | « src/objects.h ('k') | src/scopeinfo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698