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

Unified Diff: src/ast/scopes.cc

Issue 2216563003: Remove redundant ParseInfo::scope_. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase. Created 4 years, 4 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/compiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast/scopes.cc
diff --git a/src/ast/scopes.cc b/src/ast/scopes.cc
index f272931b9258a01afe4573718db2861c322fc828..5211e082e0aa987eebea4d9985444a9bc22e4d32 100644
--- a/src/ast/scopes.cc
+++ b/src/ast/scopes.cc
@@ -368,7 +368,6 @@ int Scope::num_parameters() const {
bool Scope::Analyze(ParseInfo* info) {
DCHECK(info->literal() != NULL);
- DCHECK(info->scope() == NULL);
DeclarationScope* scope = info->literal()->scope();
DeclarationScope* top = scope;
@@ -396,7 +395,6 @@ bool Scope::Analyze(ParseInfo* info) {
scope->CheckZones();
#endif
- info->set_scope(scope);
return true;
}
« no previous file with comments | « no previous file | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698