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

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

Issue 10826090: Optimize away most implicit const getter functions (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/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 (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 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 AstNode* ParseVariableDeclaration(const AbstractType& type, 396 AstNode* ParseVariableDeclaration(const AbstractType& type,
397 bool is_final, 397 bool is_final,
398 bool is_const); 398 bool is_const);
399 AstNode* ParseVariableDeclarationList(); 399 AstNode* ParseVariableDeclarationList();
400 AstNode* ParseFunctionStatement(bool is_literal); 400 AstNode* ParseFunctionStatement(bool is_literal);
401 AstNode* ParseStatement(); 401 AstNode* ParseStatement();
402 SequenceNode* ParseNestedStatement(bool parsing_loop_body, 402 SequenceNode* ParseNestedStatement(bool parsing_loop_body,
403 SourceLabel* label); 403 SourceLabel* label);
404 void ParseStatementSequence(); 404 void ParseStatementSequence();
405 bool IsIdentifier(); 405 bool IsIdentifier();
406 bool IsSimpleLiteral(const AbstractType& type, Instance* value);
406 bool IsFunctionTypeAliasName(); 407 bool IsFunctionTypeAliasName();
407 bool TryParseTypeParameter(); 408 bool TryParseTypeParameter();
408 bool TryParseOptionalType(); 409 bool TryParseOptionalType();
409 bool TryParseReturnType(); 410 bool TryParseReturnType();
410 bool IsVariableDeclaration(); 411 bool IsVariableDeclaration();
411 bool IsFunctionDeclaration(); 412 bool IsFunctionDeclaration();
412 bool IsFunctionLiteral(); 413 bool IsFunctionLiteral();
413 bool IsForInStatement(); 414 bool IsForInStatement();
414 bool IsTopLevelAccessor(); 415 bool IsTopLevelAccessor();
415 416
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 555
555 // Allocate temporary only once per function. 556 // Allocate temporary only once per function.
556 LocalVariable* expression_temp_; 557 LocalVariable* expression_temp_;
557 558
558 DISALLOW_COPY_AND_ASSIGN(Parser); 559 DISALLOW_COPY_AND_ASSIGN(Parser);
559 }; 560 };
560 561
561 } // namespace dart 562 } // namespace dart
562 563
563 #endif // VM_PARSER_H_ 564 #endif // VM_PARSER_H_
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698