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

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

Issue 57423003: Restore 0-based temporary index numbering in the VM compiler. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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 | « no previous file | 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 } 154 }
155 155
156 bool IsInlining() const { return (exit_collector_ != NULL); } 156 bool IsInlining() const { return (exit_collector_ != NULL); }
157 InlineExitCollector* exit_collector() const { return exit_collector_; } 157 InlineExitCollector* exit_collector() const { return exit_collector_; }
158 158
159 ZoneGrowableArray<const Field*>* guarded_fields() const { 159 ZoneGrowableArray<const Field*>* guarded_fields() const {
160 return guarded_fields_; 160 return guarded_fields_;
161 } 161 }
162 162
163 intptr_t temp_count() const { return temp_count_; } 163 intptr_t temp_count() const { return temp_count_; }
164 intptr_t AllocateTemp() { return ++temp_count_; } 164 intptr_t AllocateTemp() { return temp_count_++; }
165 void DeallocateTemps(intptr_t count) { 165 void DeallocateTemps(intptr_t count) {
166 ASSERT(temp_count_ >= count); 166 ASSERT(temp_count_ >= count);
167 temp_count_ -= count; 167 temp_count_ -= count;
168 } 168 }
169 169
170 intptr_t args_pushed() const { return args_pushed_; } 170 intptr_t args_pushed() const { return args_pushed_; }
171 void add_args_pushed(intptr_t n) { args_pushed_ += n; } 171 void add_args_pushed(intptr_t n) { args_pushed_ += n; }
172 172
173 // When compiling for OSR, remove blocks that are not reachable from the 173 // When compiling for OSR, remove blocks that are not reachable from the
174 // OSR entry point. 174 // OSR entry point.
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 // Output parameters. 537 // Output parameters.
538 GrowableArray<TargetEntryInstr**> true_successor_addresses_; 538 GrowableArray<TargetEntryInstr**> true_successor_addresses_;
539 GrowableArray<TargetEntryInstr**> false_successor_addresses_; 539 GrowableArray<TargetEntryInstr**> false_successor_addresses_;
540 540
541 intptr_t condition_token_pos_; 541 intptr_t condition_token_pos_;
542 }; 542 };
543 543
544 } // namespace dart 544 } // namespace dart
545 545
546 #endif // VM_FLOW_GRAPH_BUILDER_H_ 546 #endif // VM_FLOW_GRAPH_BUILDER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698