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

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

Issue 135123011: Introduce cache of resolved names in library (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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 | 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 "platform/assert.h" 10 #include "platform/assert.h"
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 const String& ident); 590 const String& ident);
591 AstNode* ResolveIdentInPrefixScope(intptr_t ident_pos, 591 AstNode* ResolveIdentInPrefixScope(intptr_t ident_pos,
592 const LibraryPrefix& prefix, 592 const LibraryPrefix& prefix,
593 const String& ident); 593 const String& ident);
594 594
595 // Find class with the given name in the library or prefix scope. 595 // Find class with the given name in the library or prefix scope.
596 RawClass* ResolveClassInCurrentLibraryScope(const String& name); 596 RawClass* ResolveClassInCurrentLibraryScope(const String& name);
597 RawClass* ResolveClassInPrefixScope(const LibraryPrefix& prefix, 597 RawClass* ResolveClassInPrefixScope(const LibraryPrefix& prefix,
598 const String& name); 598 const String& name);
599 599
600 // Find name in the library or prefix scope and return the corresponding
601 // object (field, class, function etc).
602 RawObject* ResolveNameInCurrentLibraryScope(const String& ident);
603 RawObject* ResolveNameInPrefixScope(const LibraryPrefix& prefix,
604 const String& name);
605
606 AstNode* ResolveIdent(intptr_t ident_pos, 600 AstNode* ResolveIdent(intptr_t ident_pos,
607 const String& ident, 601 const String& ident,
608 bool allow_closure_names); 602 bool allow_closure_names);
609 RawString* ResolveImportVar(intptr_t ident_pos, const String& ident); 603 RawString* ResolveImportVar(intptr_t ident_pos, const String& ident);
610 AstNode* OptimizeBinaryOpNode(intptr_t op_pos, 604 AstNode* OptimizeBinaryOpNode(intptr_t op_pos,
611 Token::Kind binary_op, 605 Token::Kind binary_op,
612 AstNode* lhs, 606 AstNode* lhs,
613 AstNode* rhs); 607 AstNode* rhs);
614 AstNode* ExpandAssignableOp(intptr_t op_pos, 608 AstNode* ExpandAssignableOp(intptr_t op_pos,
615 Token::Kind assignment_op, 609 Token::Kind assignment_op,
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 intptr_t last_used_try_index_; 708 intptr_t last_used_try_index_;
715 709
716 bool unregister_pending_function_; 710 bool unregister_pending_function_;
717 711
718 DISALLOW_COPY_AND_ASSIGN(Parser); 712 DISALLOW_COPY_AND_ASSIGN(Parser);
719 }; 713 };
720 714
721 } // namespace dart 715 } // namespace dart
722 716
723 #endif // VM_PARSER_H_ 717 #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