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

Side by Side Diff: runtime/vm/flow_graph_builder.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.cc ('k') | runtime/vm/flow_graph_builder.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_FLOW_GRAPH_BUILDER_H_ 5 #ifndef VM_FLOW_GRAPH_BUILDER_H_
6 #define VM_FLOW_GRAPH_BUILDER_H_ 6 #define VM_FLOW_GRAPH_BUILDER_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "platform/globals.h" 9 #include "platform/globals.h"
10 #include "vm/allocation.h" 10 #include "vm/allocation.h"
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 intptr_t num_non_copied_params() const { 146 intptr_t num_non_copied_params() const {
147 return num_non_copied_params_; 147 return num_non_copied_params_;
148 } 148 }
149 intptr_t num_stack_locals() const { 149 intptr_t num_stack_locals() const {
150 return num_stack_locals_; 150 return num_stack_locals_;
151 } 151 }
152 152
153 bool IsInlining() const { return (exit_collector_ != NULL); } 153 bool IsInlining() const { return (exit_collector_ != NULL); }
154 InlineExitCollector* exit_collector() const { return exit_collector_; } 154 InlineExitCollector* exit_collector() const { return exit_collector_; }
155 155
156 ZoneGrowableArray<const Field*>* guarded_fields() const {
157 return parsed_function_.guarded_fields();
158 }
159
160 ZoneGrowableArray<const LibraryPrefix*>* deferred_prefixes() const { 156 ZoneGrowableArray<const LibraryPrefix*>* deferred_prefixes() const {
161 return parsed_function_.deferred_prefixes(); 157 return parsed_function_.deferred_prefixes();
162 } 158 }
163 159
164 intptr_t temp_count() const { return temp_count_; } 160 intptr_t temp_count() const { return temp_count_; }
165 intptr_t AllocateTemp() { return temp_count_++; } 161 intptr_t AllocateTemp() { return temp_count_++; }
166 void DeallocateTemps(intptr_t count) { 162 void DeallocateTemps(intptr_t count) {
167 ASSERT(temp_count_ >= count); 163 ASSERT(temp_count_ >= count);
168 temp_count_ -= count; 164 temp_count_ -= count;
169 } 165 }
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 // Output parameters. 575 // Output parameters.
580 GrowableArray<TargetEntryInstr**> true_successor_addresses_; 576 GrowableArray<TargetEntryInstr**> true_successor_addresses_;
581 GrowableArray<TargetEntryInstr**> false_successor_addresses_; 577 GrowableArray<TargetEntryInstr**> false_successor_addresses_;
582 578
583 TokenPosition condition_token_pos_; 579 TokenPosition condition_token_pos_;
584 }; 580 };
585 581
586 } // namespace dart 582 } // namespace dart
587 583
588 #endif // VM_FLOW_GRAPH_BUILDER_H_ 584 #endif // VM_FLOW_GRAPH_BUILDER_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph.cc ('k') | runtime/vm/flow_graph_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698