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

Unified Diff: src/parsing/parser.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 | « no previous file | src/parsing/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parsing/parser.h
diff --git a/src/parsing/parser.h b/src/parsing/parser.h
index 9d63145ef1b38b700328aab98d09e67c8b5275b0..acec1387241a81f827306e38b687239ec2750840 100644
--- a/src/parsing/parser.h
+++ b/src/parsing/parser.h
@@ -549,21 +549,17 @@ class ParserTraits {
const AstRawString* GetNextSymbol(Scanner* scanner);
const AstRawString* GetNumberAsSymbol(Scanner* scanner);
- Expression* ThisExpression(Scope* scope, AstNodeFactory* factory,
+ Expression* ThisExpression(AstNodeFactory* factory,
int pos = kNoSourcePosition);
- Expression* NewSuperPropertyReference(Scope* scope, AstNodeFactory* factory,
- int pos);
- Expression* NewSuperCallReference(Scope* scope, AstNodeFactory* factory,
- int pos);
- Expression* NewTargetExpression(Scope* scope, AstNodeFactory* factory,
- int pos);
- Expression* FunctionSentExpression(Scope* scope, AstNodeFactory* factory,
- int pos);
+ Expression* NewSuperPropertyReference(AstNodeFactory* factory, int pos);
+ Expression* NewSuperCallReference(AstNodeFactory* factory, int pos);
+ Expression* NewTargetExpression(AstNodeFactory* factory, int pos);
+ Expression* FunctionSentExpression(AstNodeFactory* factory, int pos);
Literal* ExpressionFromLiteral(Token::Value token, int pos, Scanner* scanner,
AstNodeFactory* factory);
Expression* ExpressionFromIdentifier(const AstRawString* name,
int start_position, int end_position,
- Scope* scope, AstNodeFactory* factory);
+ AstNodeFactory* factory);
Expression* ExpressionFromString(int pos, Scanner* scanner,
AstNodeFactory* factory);
Expression* GetIterator(Expression* iterable, AstNodeFactory* factory,
« no previous file with comments | « no previous file | src/parsing/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698