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

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

Issue 2673093003: Refactor type finalization in VM so that the parser only resolves type (Closed)
Patch Set: Created 3 years, 10 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 RUNTIME_VM_PARSER_H_ 5 #ifndef RUNTIME_VM_PARSER_H_
6 #define RUNTIME_VM_PARSER_H_ 6 #define RUNTIME_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 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 void ParseLibraryDefinition(const Object& tl_owner); 507 void ParseLibraryDefinition(const Object& tl_owner);
508 void ParseLibraryName(); 508 void ParseLibraryName();
509 void ParseLibraryImportExport(const Object& tl_owner, 509 void ParseLibraryImportExport(const Object& tl_owner,
510 TokenPosition metadata_pos); 510 TokenPosition metadata_pos);
511 void ParseLibraryPart(); 511 void ParseLibraryPart();
512 void ParsePartHeader(); 512 void ParsePartHeader();
513 void ParseLibraryNameObsoleteSyntax(); 513 void ParseLibraryNameObsoleteSyntax();
514 void ParseLibraryImportObsoleteSyntax(); 514 void ParseLibraryImportObsoleteSyntax();
515 void ParseLibraryIncludeObsoleteSyntax(); 515 void ParseLibraryIncludeObsoleteSyntax();
516 516
517 void ResolveSignature(ClassFinalizer::FinalizationKind finalization, 517 void ResolveSignature(const Function& signature);
518 const Function& signature); 518 void ResolveType(AbstractType* type);
519 void ResolveType(ClassFinalizer::FinalizationKind finalization, 519 RawAbstractType* CanonicalizeType(const AbstractType& type);
520 AbstractType* type);
521 RawAbstractType* ParseType(ClassFinalizer::FinalizationKind finalization, 520 RawAbstractType* ParseType(ClassFinalizer::FinalizationKind finalization,
522 bool allow_deferred_type = false, 521 bool allow_deferred_type = false,
523 bool consume_unresolved_prefix = true); 522 bool consume_unresolved_prefix = true);
524 RawAbstractType* ParseType(ClassFinalizer::FinalizationKind finalization, 523 RawAbstractType* ParseType(ClassFinalizer::FinalizationKind finalization,
525 bool allow_deferred_type, 524 bool allow_deferred_type,
526 bool consume_unresolved_prefix, 525 bool consume_unresolved_prefix,
527 LibraryPrefix* prefix); 526 LibraryPrefix* prefix);
528 RawType* ParseFunctionType(const AbstractType& result_type, 527 RawType* ParseFunctionType(const AbstractType& result_type,
529 ClassFinalizer::FinalizationKind finalization); 528 ClassFinalizer::FinalizationKind finalization);
530 RawAbstractType* ParseTypeOrFunctionType( 529 RawAbstractType* ParseTypeOrFunctionType(
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
985 984
986 intptr_t recursion_counter_; 985 intptr_t recursion_counter_;
987 friend class RecursionChecker; 986 friend class RecursionChecker;
988 987
989 DISALLOW_COPY_AND_ASSIGN(Parser); 988 DISALLOW_COPY_AND_ASSIGN(Parser);
990 }; 989 };
991 990
992 } // namespace dart 991 } // namespace dart
993 992
994 #endif // RUNTIME_VM_PARSER_H_ 993 #endif // RUNTIME_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