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

Side by Side Diff: src/parsing/parser.h

Issue 2109773004: Move RelocInfo::kNoPosition. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@removedead
Patch Set: rebase Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « src/objects.cc ('k') | src/parsing/parser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_PARSING_PARSER_H_ 5 #ifndef V8_PARSING_PARSER_H_
6 #define V8_PARSING_PARSER_H_ 6 #define V8_PARSING_PARSER_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/ast/ast.h" 9 #include "src/ast/ast.h"
10 #include "src/ast/scopes.h" 10 #include "src/ast/scopes.h"
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 498
499 // Odd-ball literal creators. 499 // Odd-ball literal creators.
500 Literal* GetLiteralTheHole(int position, AstNodeFactory* factory); 500 Literal* GetLiteralTheHole(int position, AstNodeFactory* factory);
501 501
502 // Producing data during the recursive descent. 502 // Producing data during the recursive descent.
503 const AstRawString* GetSymbol(Scanner* scanner); 503 const AstRawString* GetSymbol(Scanner* scanner);
504 const AstRawString* GetNextSymbol(Scanner* scanner); 504 const AstRawString* GetNextSymbol(Scanner* scanner);
505 const AstRawString* GetNumberAsSymbol(Scanner* scanner); 505 const AstRawString* GetNumberAsSymbol(Scanner* scanner);
506 506
507 Expression* ThisExpression(Scope* scope, AstNodeFactory* factory, 507 Expression* ThisExpression(Scope* scope, AstNodeFactory* factory,
508 int pos = RelocInfo::kNoPosition); 508 int pos = kNoSourcePosition);
509 Expression* SuperPropertyReference(Scope* scope, AstNodeFactory* factory, 509 Expression* SuperPropertyReference(Scope* scope, AstNodeFactory* factory,
510 int pos); 510 int pos);
511 Expression* SuperCallReference(Scope* scope, AstNodeFactory* factory, 511 Expression* SuperCallReference(Scope* scope, AstNodeFactory* factory,
512 int pos); 512 int pos);
513 Expression* NewTargetExpression(Scope* scope, AstNodeFactory* factory, 513 Expression* NewTargetExpression(Scope* scope, AstNodeFactory* factory,
514 int pos); 514 int pos);
515 Expression* FunctionSentExpression(Scope* scope, AstNodeFactory* factory, 515 Expression* FunctionSentExpression(Scope* scope, AstNodeFactory* factory,
516 int pos); 516 int pos);
517 Literal* ExpressionFromLiteral(Token::Value token, int pos, Scanner* scanner, 517 Literal* ExpressionFromLiteral(Token::Value token, int pos, Scanner* scanner,
518 AstNodeFactory* factory); 518 AstNodeFactory* factory);
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
964 Expression* BuildIteratorNextResult(Expression* iterator, Variable* result, 964 Expression* BuildIteratorNextResult(Expression* iterator, Variable* result,
965 int pos); 965 int pos);
966 966
967 967
968 // Initialize the components of a for-in / for-of statement. 968 // Initialize the components of a for-in / for-of statement.
969 void InitializeForEachStatement(ForEachStatement* stmt, Expression* each, 969 void InitializeForEachStatement(ForEachStatement* stmt, Expression* each,
970 Expression* subject, Statement* body, 970 Expression* subject, Statement* body,
971 int each_keyword_pos); 971 int each_keyword_pos);
972 void InitializeForOfStatement(ForOfStatement* stmt, Expression* each, 972 void InitializeForOfStatement(ForOfStatement* stmt, Expression* each,
973 Expression* iterable, Statement* body, 973 Expression* iterable, Statement* body,
974 int next_result_pos = RelocInfo::kNoPosition); 974 int next_result_pos = kNoSourcePosition);
975 Statement* DesugarLexicalBindingsInForStatement( 975 Statement* DesugarLexicalBindingsInForStatement(
976 Scope* inner_scope, VariableMode mode, 976 Scope* inner_scope, VariableMode mode,
977 ZoneList<const AstRawString*>* names, ForStatement* loop, Statement* init, 977 ZoneList<const AstRawString*>* names, ForStatement* loop, Statement* init,
978 Expression* cond, Statement* next, Statement* body, bool* ok); 978 Expression* cond, Statement* next, Statement* body, bool* ok);
979 979
980 void DesugarAsyncFunctionBody(const AstRawString* function_name, Scope* scope, 980 void DesugarAsyncFunctionBody(const AstRawString* function_name, Scope* scope,
981 ZoneList<Statement*>* body, 981 ZoneList<Statement*>* body,
982 Type::ExpressionClassifier* classifier, 982 Type::ExpressionClassifier* classifier,
983 FunctionKind kind, FunctionBody type, 983 FunctionKind kind, FunctionBody type,
984 bool accept_IN, int pos, bool* ok); 984 bool accept_IN, int pos, bool* ok);
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
1297 1297
1298 DoExpression* ParserTraits::ParseDoExpression(bool* ok) { 1298 DoExpression* ParserTraits::ParseDoExpression(bool* ok) {
1299 return parser_->ParseDoExpression(ok); 1299 return parser_->ParseDoExpression(ok);
1300 } 1300 }
1301 1301
1302 1302
1303 } // namespace internal 1303 } // namespace internal
1304 } // namespace v8 1304 } // namespace v8
1305 1305
1306 #endif // V8_PARSING_PARSER_H_ 1306 #endif // V8_PARSING_PARSER_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/parsing/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698