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

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

Issue 1952023002: Minor cleanup based on profiler output of CompileParseFunction. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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
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 832 matching lines...) Expand 10 before | Expand all | Expand 10 after
843 843
844 RawInstance* TryCanonicalize(const Instance& instance, 844 RawInstance* TryCanonicalize(const Instance& instance,
845 TokenPosition token_pos); 845 TokenPosition token_pos);
846 void CacheConstantValue(TokenPosition token_pos, const Instance& value); 846 void CacheConstantValue(TokenPosition token_pos, const Instance& value);
847 bool GetCachedConstant(TokenPosition token_pos, Instance* value); 847 bool GetCachedConstant(TokenPosition token_pos, Instance* value);
848 848
849 Thread* thread() const { return thread_; } 849 Thread* thread() const { return thread_; }
850 Isolate* isolate() const { return isolate_; } 850 Isolate* isolate() const { return isolate_; }
851 Zone* zone() const { return thread_->zone(); } 851 Zone* zone() const { return thread_->zone(); }
852 852
853 Thread* thread_; // Cached current thread.
853 Isolate* isolate_; // Cached current isolate. 854 Isolate* isolate_; // Cached current isolate.
854 Thread* thread_;
855 855
856 Script& script_; 856 Script& script_;
857 TokenStream::Iterator tokens_iterator_; 857 TokenStream::Iterator tokens_iterator_;
858 Token::Kind token_kind_; // Cached token kind for current token. 858 Token::Kind token_kind_; // Cached token kind for current token.
859 TokenPosition prev_token_pos_; 859 TokenPosition prev_token_pos_;
860 Block* current_block_; 860 Block* current_block_;
861 861
862 // is_top_level_ is true if parsing the "top level" of a compilation unit, 862 // is_top_level_ is true if parsing the "top level" of a compilation unit,
863 // that is class definitions, function type aliases, global functions, 863 // that is class definitions, function type aliases, global functions,
864 // global variables. 864 // global variables.
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
915 915
916 intptr_t recursion_counter_; 916 intptr_t recursion_counter_;
917 friend class RecursionChecker; 917 friend class RecursionChecker;
918 918
919 DISALLOW_COPY_AND_ASSIGN(Parser); 919 DISALLOW_COPY_AND_ASSIGN(Parser);
920 }; 920 };
921 921
922 } // namespace dart 922 } // namespace dart
923 923
924 #endif // VM_PARSER_H_ 924 #endif // VM_PARSER_H_
OLDNEW
« no previous file with comments | « runtime/vm/object_test.cc ('k') | runtime/vm/parser.cc » ('j') | runtime/vm/raw_object.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698