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

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

Issue 2316233004: Class fields, part 2 (desugaring) (Closed)
Patch Set: rebase harder Created 4 years, 3 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/ast/ast-value-factory.h ('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/ast/ast.h" 8 #include "src/ast/ast.h"
9 #include "src/ast/scopes.h" 9 #include "src/ast/scopes.h"
10 #include "src/parsing/parser-base.h" 10 #include "src/parsing/parser-base.h"
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 bool accept_IN, int pos, bool* ok); 432 bool accept_IN, int pos, bool* ok);
433 433
434 void RewriteDoExpression(Expression* expr, bool* ok); 434 void RewriteDoExpression(Expression* expr, bool* ok);
435 435
436 FunctionLiteral* ParseFunctionLiteral( 436 FunctionLiteral* ParseFunctionLiteral(
437 const AstRawString* name, Scanner::Location function_name_location, 437 const AstRawString* name, Scanner::Location function_name_location,
438 FunctionNameValidity function_name_validity, FunctionKind kind, 438 FunctionNameValidity function_name_validity, FunctionKind kind,
439 int function_token_position, FunctionLiteral::FunctionType type, 439 int function_token_position, FunctionLiteral::FunctionType type,
440 LanguageMode language_mode, bool* ok); 440 LanguageMode language_mode, bool* ok);
441 441
442 Expression* InstallHomeObject(Expression* function_literal,
443 Expression* home_object);
444 FunctionLiteral* SynthesizeClassFieldInitializer(int count);
445 FunctionLiteral* InsertClassFieldInitializer(FunctionLiteral* constructor);
446
442 Expression* ParseClassLiteral(const AstRawString* name, 447 Expression* ParseClassLiteral(const AstRawString* name,
443 Scanner::Location class_name_location, 448 Scanner::Location class_name_location,
444 bool name_is_strict_reserved, int pos, 449 bool name_is_strict_reserved, int pos,
445 bool* ok); 450 bool* ok);
446 451
447 // Magical syntax support. 452 // Magical syntax support.
448 Expression* ParseV8Intrinsic(bool* ok); 453 Expression* ParseV8Intrinsic(bool* ok);
449 454
450 // Get odd-ball literals. 455 // Get odd-ball literals.
451 Literal* GetLiteralUndefined(int position); 456 Literal* GetLiteralUndefined(int position);
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after
1062 1067
1063 #ifdef DEBUG 1068 #ifdef DEBUG
1064 void Print(AstNode* node); 1069 void Print(AstNode* node);
1065 #endif // DEBUG 1070 #endif // DEBUG
1066 }; 1071 };
1067 1072
1068 } // namespace internal 1073 } // namespace internal
1069 } // namespace v8 1074 } // namespace v8
1070 1075
1071 #endif // V8_PARSING_PARSER_H_ 1076 #endif // V8_PARSING_PARSER_H_
OLDNEW
« no previous file with comments | « src/ast/ast-value-factory.h ('k') | src/parsing/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698