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

Side by Side Diff: runtime/vm/parser.h

Issue 9271023: Optimize parsing of qualified identifiers. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | runtime/vm/parser.cc » ('j') | runtime/vm/parser.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_PARSER_H_ 5 #ifndef VM_PARSER_H_
6 #define VM_PARSER_H_ 6 #define VM_PARSER_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 9
10 #include "vm/ast.h" 10 #include "vm/ast.h"
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 RawAbstractType* ParseFinalVarOrType(TypeResolution type_resolution); 322 RawAbstractType* ParseFinalVarOrType(TypeResolution type_resolution);
323 AstNode* ParseVariableDeclaration(const AbstractType& type, bool is_const); 323 AstNode* ParseVariableDeclaration(const AbstractType& type, bool is_const);
324 AstNode* ParseVariableDeclarationList(); 324 AstNode* ParseVariableDeclarationList();
325 AstNode* ParseFunctionStatement(bool is_literal); 325 AstNode* ParseFunctionStatement(bool is_literal);
326 AstNode* ParseStatement(); 326 AstNode* ParseStatement();
327 SequenceNode* ParseNestedStatement(bool parsing_loop_body, 327 SequenceNode* ParseNestedStatement(bool parsing_loop_body,
328 SourceLabel* label); 328 SourceLabel* label);
329 void ParseStatementSequence(); 329 void ParseStatementSequence();
330 bool IsIdentifier(); 330 bool IsIdentifier();
331 bool IsFunctionTypeAliasName(); 331 bool IsFunctionTypeAliasName();
332 bool IsTypeParameter(); 332 bool TryParseTypeParameter();
333 bool IsOptionalType(); 333 bool TryParseOptionalType();
334 bool IsReturnType(); 334 bool TryParseReturnType();
335 bool IsVariableDeclaration(); 335 bool IsVariableDeclaration();
336 bool IsFunctionDeclaration(); 336 bool IsFunctionDeclaration();
337 bool IsFunctionLiteral(); 337 bool IsFunctionLiteral();
338 bool IsForInStatement(); 338 bool IsForInStatement();
339 bool IsTopLevelAccessor(); 339 bool IsTopLevelAccessor();
340 bool IsTopLevelFunction(); 340 bool IsTopLevelFunction();
341 341
342 AstNode* ParseBinaryExpr(int min_preced); 342 AstNode* ParseBinaryExpr(int min_preced);
343 LiteralNode* ParseConstExpr(); 343 LiteralNode* ParseConstExpr();
344 static const bool kRequireConst = true; 344 static const bool kRequireConst = true;
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 // code at all points in the try block where an exit from the block is 454 // code at all points in the try block where an exit from the block is
455 // done using 'return', 'break' or 'continue' statements. 455 // done using 'return', 'break' or 'continue' statements.
456 TryBlocks* try_blocks_list_; 456 TryBlocks* try_blocks_list_;
457 457
458 DISALLOW_COPY_AND_ASSIGN(Parser); 458 DISALLOW_COPY_AND_ASSIGN(Parser);
459 }; 459 };
460 460
461 } // namespace dart 461 } // namespace dart
462 462
463 #endif // VM_PARSER_H_ 463 #endif // VM_PARSER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/parser.cc » ('j') | runtime/vm/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698