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

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

Issue 1712563006: Cleanup access to guarded_fields (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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 | « runtime/vm/flow_graph_optimizer.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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 void AllocateVariables(); 159 void AllocateVariables();
160 void AllocateIrregexpVariables(intptr_t num_stack_locals); 160 void AllocateIrregexpVariables(intptr_t num_stack_locals);
161 161
162 void record_await() { have_seen_await_expr_ = true; } 162 void record_await() { have_seen_await_expr_ = true; }
163 bool have_seen_await() const { return have_seen_await_expr_; } 163 bool have_seen_await() const { return have_seen_await_expr_; }
164 164
165 Thread* thread() const { return thread_; } 165 Thread* thread() const { return thread_; }
166 Isolate* isolate() const { return thread_->isolate(); } 166 Isolate* isolate() const { return thread_->isolate(); }
167 Zone* zone() const { return thread_->zone(); } 167 Zone* zone() const { return thread_->zone(); }
168 168
169 // Adds only relevant fields: field must be unique and its guarded_cid()
170 // relevant.
171 void AddToGuardedFields(const Field* field) const;
172
169 private: 173 private:
170 Thread* thread_; 174 Thread* thread_;
171 const Function& function_; 175 const Function& function_;
172 Code& code_; 176 Code& code_;
173 SequenceNode* node_sequence_; 177 SequenceNode* node_sequence_;
174 RegExpCompileData* regexp_compile_data_; 178 RegExpCompileData* regexp_compile_data_;
175 LocalVariable* instantiator_; 179 LocalVariable* instantiator_;
176 LocalVariable* current_context_var_; 180 LocalVariable* current_context_var_;
177 LocalVariable* expression_temp_var_; 181 LocalVariable* expression_temp_var_;
178 LocalVariable* finally_return_temp_var_; 182 LocalVariable* finally_return_temp_var_;
(...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after
911 915
912 intptr_t recursion_counter_; 916 intptr_t recursion_counter_;
913 friend class RecursionChecker; 917 friend class RecursionChecker;
914 918
915 DISALLOW_COPY_AND_ASSIGN(Parser); 919 DISALLOW_COPY_AND_ASSIGN(Parser);
916 }; 920 };
917 921
918 } // namespace dart 922 } // namespace dart
919 923
920 #endif // VM_PARSER_H_ 924 #endif // VM_PARSER_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698