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

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

Issue 1841073003: VM: Fix receiver type propagation in presence of try-catch. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: share code between jit_ and aot_optimizer Created 4 years, 8 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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_H_ 5 #ifndef VM_FLOW_GRAPH_H_
6 #define VM_FLOW_GRAPH_H_ 6 #define VM_FLOW_GRAPH_H_
7 7
8 #include "vm/bit_vector.h" 8 #include "vm/bit_vector.h"
9 #include "vm/growable_array.h" 9 #include "vm/growable_array.h"
10 #include "vm/hash_map.h" 10 #include "vm/hash_map.h"
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 152
153 intptr_t current_ssa_temp_index() const { return current_ssa_temp_index_; } 153 intptr_t current_ssa_temp_index() const { return current_ssa_temp_index_; }
154 void set_current_ssa_temp_index(intptr_t index) { 154 void set_current_ssa_temp_index(intptr_t index) {
155 current_ssa_temp_index_ = index; 155 current_ssa_temp_index_ = index;
156 } 156 }
157 157
158 intptr_t max_virtual_register_number() const { 158 intptr_t max_virtual_register_number() const {
159 return current_ssa_temp_index(); 159 return current_ssa_temp_index();
160 } 160 }
161 161
162 bool InstanceCallNeedsClassCheck(InstanceCallInstr* call,
163 RawFunction::Kind kind) const;
164
162 Thread* thread() const { return thread_; } 165 Thread* thread() const { return thread_; }
163 Zone* zone() const { return thread()->zone(); } 166 Zone* zone() const { return thread()->zone(); }
164 Isolate* isolate() const { return thread()->isolate(); } 167 Isolate* isolate() const { return thread()->isolate(); }
165 168
166 intptr_t max_block_id() const { return max_block_id_; } 169 intptr_t max_block_id() const { return max_block_id_; }
167 void set_max_block_id(intptr_t id) { max_block_id_ = id; } 170 void set_max_block_id(intptr_t id) { max_block_id_ = id; }
168 intptr_t allocate_block_id() { return ++max_block_id_; } 171 intptr_t allocate_block_id() { return ++max_block_id_; }
169 172
170 GraphEntryInstr* graph_entry() const { 173 GraphEntryInstr* graph_entry() const {
171 return graph_entry_; 174 return graph_entry_;
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 536
534 private: 537 private:
535 GrowableArray<Definition*> defs_; 538 GrowableArray<Definition*> defs_;
536 BitVector* contains_vector_; 539 BitVector* contains_vector_;
537 }; 540 };
538 541
539 542
540 } // namespace dart 543 } // namespace dart
541 544
542 #endif // VM_FLOW_GRAPH_H_ 545 #endif // VM_FLOW_GRAPH_H_
OLDNEW
« no previous file with comments | « runtime/vm/aot_optimizer.cc ('k') | runtime/vm/flow_graph.cc » ('j') | runtime/vm/flow_graph.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698