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

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

Issue 1310383002: Minor cleanup in preparation for removal of allocation in new space, and removal of an 'optimizatio… (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 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 | « 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 "platform/assert.h" 10 #include "platform/assert.h"
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 ArgumentListNode* arguments, 505 ArgumentListNode* arguments,
506 bool resolve_getter, 506 bool resolve_getter,
507 bool* is_no_such_method); 507 bool* is_no_such_method);
508 AstNode* ParseSuperCall(const String& function_name); 508 AstNode* ParseSuperCall(const String& function_name);
509 AstNode* ParseSuperFieldAccess(const String& field_name, intptr_t field_pos); 509 AstNode* ParseSuperFieldAccess(const String& field_name, intptr_t field_pos);
510 AstNode* ParseSuperOperator(); 510 AstNode* ParseSuperOperator();
511 AstNode* BuildUnarySuperOperator(Token::Kind op, PrimaryNode* super); 511 AstNode* BuildUnarySuperOperator(Token::Kind op, PrimaryNode* super);
512 512
513 static bool ParseFormalParameters(const Function& func, ParamList* params); 513 static bool ParseFormalParameters(const Function& func, ParamList* params);
514 514
515 static void SetupDefaultsForOptionalParams(const ParamList* params, 515 static void SetupDefaultsForOptionalParams(const ParamList& params,
516 Array* default_values); 516 Array* default_values);
517 ClosureNode* CreateImplicitClosureNode(const Function& func, 517 ClosureNode* CreateImplicitClosureNode(const Function& func,
518 intptr_t token_pos, 518 intptr_t token_pos,
519 AstNode* receiver); 519 AstNode* receiver);
520 static void AddFormalParamsToFunction(const ParamList* params, 520 static void AddFormalParamsToFunction(const ParamList* params,
521 const Function& func); 521 const Function& func);
522 void AddFormalParamsToScope(const ParamList* params, LocalScope* scope); 522 void AddFormalParamsToScope(const ParamList* params, LocalScope* scope);
523 523
524 SequenceNode* ParseConstructor(const Function& func, 524 SequenceNode* ParseConstructor(const Function& func,
525 Array* default_parameter_values); 525 Array* default_parameter_values);
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
883 883
884 // Indentation of parser trace. 884 // Indentation of parser trace.
885 intptr_t trace_indent_; 885 intptr_t trace_indent_;
886 886
887 DISALLOW_COPY_AND_ASSIGN(Parser); 887 DISALLOW_COPY_AND_ASSIGN(Parser);
888 }; 888 };
889 889
890 } // namespace dart 890 } // namespace dart
891 891
892 #endif // VM_PARSER_H_ 892 #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