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

Unified Diff: src/parsing/preparser.h

Issue 2224843003: Reduce number of scope() accesses (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Undo unrelated change 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 cea907fbe8062645ba8ea7b92e686d84bf27d535..4e2037deb2f2d92e5a28b49581fcfe369f278954 100644
--- a/src/parsing/preparser.h
+++ b/src/parsing/preparser.h
@@ -801,31 +801,27 @@ class PreParserTraits {
return PreParserIdentifier::Default();
}
- static PreParserExpression ThisExpression(Scope* scope,
- PreParserFactory* factory,
+ static PreParserExpression ThisExpression(PreParserFactory* factory,
int pos) {
return PreParserExpression::This();
}
static PreParserExpression NewSuperPropertyReference(
- Scope* scope, PreParserFactory* factory, int pos) {
+ PreParserFactory* factory, int pos) {
return PreParserExpression::Default();
}
- static PreParserExpression NewSuperCallReference(Scope* scope,
- PreParserFactory* factory,
+ static PreParserExpression NewSuperCallReference(PreParserFactory* factory,
int pos) {
return PreParserExpression::SuperCallReference();
}
- static PreParserExpression NewTargetExpression(Scope* scope,
- PreParserFactory* factory,
+ static PreParserExpression NewTargetExpression(PreParserFactory* factory,
int pos) {
return PreParserExpression::Default();
}
- static PreParserExpression FunctionSentExpression(Scope* scope,
- PreParserFactory* factory,
+ static PreParserExpression FunctionSentExpression(PreParserFactory* factory,
int pos) {
return PreParserExpression::Default();
}
@@ -838,7 +834,7 @@ class PreParserTraits {
static PreParserExpression ExpressionFromIdentifier(
PreParserIdentifier name, int start_position, int end_position,
- Scope* scope, PreParserFactory* factory) {
+ PreParserFactory* factory) {
return PreParserExpression::FromIdentifier(name);
}
« 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