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

Unified Diff: src/parsing/preparser.h

Issue 2242583003: [Parser] Remove Variable::is_possibly_eval. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@toon_cl
Patch Set: Address comment 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 | « src/parsing/parser-base.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parsing/preparser.h
diff --git a/src/parsing/preparser.h b/src/parsing/preparser.h
index 26ddf233b4f3a91663400c4f8f097c297b1a1e3f..41711d6f5c6490dba9cb31ea3e343f27df6c842b 100644
--- a/src/parsing/preparser.h
+++ b/src/parsing/preparser.h
@@ -520,10 +520,11 @@ class PreParserFactory {
int pos) {
return PreParserExpression::Default();
}
- PreParserExpression NewCall(PreParserExpression expression,
- PreParserExpressionList arguments,
- int pos) {
- if (expression.IsIdentifier() && expression.AsIdentifier().IsEval()) {
+ PreParserExpression NewCall(
+ PreParserExpression expression, PreParserExpressionList arguments,
+ int pos, Call::PossiblyEval possibly_eval = Call::NOT_EVAL) {
+ if (possibly_eval == Call::IS_POSSIBLY_EVAL) {
+ DCHECK(expression.IsIdentifier() && expression.AsIdentifier().IsEval());
return PreParserExpression::CallEval();
}
return PreParserExpression::Call();
« no previous file with comments | « src/parsing/parser-base.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698