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

Unified Diff: src/preparser.h

Issue 1129823002: Remove Scope::scope_uses_this_ flag (Closed) Base URL: https://chromium.googlesource.com/v8/v8@master
Patch Set: Created 5 years, 7 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/compiler/ast-graph-builder.cc ('k') | src/scopes.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/preparser.h
diff --git a/src/preparser.h b/src/preparser.h
index 8184bd8d5f5af2bc93a872c80c71ab3b7cce8001..543f82ee56a281dfc5984a7aa9a9be91319cf659 100644
--- a/src/preparser.h
+++ b/src/preparser.h
@@ -2215,7 +2215,6 @@ ParserBase<Traits>::ParsePrimaryExpression(ExpressionClassifier* classifier,
break;
}
}
- scope_->RecordThisUsage();
arv (Not doing code reviews) 2015/05/06 14:23:52 It is not clear to me how this works now? Don't we
wingo 2015/05/06 14:37:42 ThisExpression for the full parser will create an
result = this->ThisExpression(scope_, factory(), beg_pos);
break;
}
@@ -3241,7 +3240,6 @@ ParserBase<Traits>::ParseStrongInitializationExpression(
Consume(Token::THIS);
int pos = position();
function_state_->set_this_location(scanner()->location());
- scope_->RecordThisUsage();
ExpressionT this_expr = this->ThisExpression(scope_, factory(), pos);
ExpressionT left = this->EmptyExpression();
« no previous file with comments | « src/compiler/ast-graph-builder.cc ('k') | src/scopes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698