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

Side by Side Diff: runtime/vm/flow_graph_builder.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: addressed comments, added test 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) 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 intptr_t catch_try_index() const { return catch_try_index_; } 133 intptr_t catch_try_index() const { return catch_try_index_; }
134 134
135 intptr_t next_await_counter() { return jump_count_++; } 135 intptr_t next_await_counter() { return jump_count_++; }
136 136
137 ZoneGrowableArray<JoinEntryInstr*>* await_joins() const { 137 ZoneGrowableArray<JoinEntryInstr*>* await_joins() const {
138 return await_joins_; 138 return await_joins_;
139 } 139 }
140 140
141 void AddCatchEntry(CatchBlockEntryInstr* entry); 141 void AddCatchEntry(CatchBlockEntryInstr* entry);
142 142
143 GraphEntryInstr* graph_entry() const {
144 return graph_entry_;
145 }
146
143 intptr_t num_copied_params() const { 147 intptr_t num_copied_params() const {
144 return num_copied_params_; 148 return num_copied_params_;
145 } 149 }
146 intptr_t num_non_copied_params() const { 150 intptr_t num_non_copied_params() const {
147 return num_non_copied_params_; 151 return num_non_copied_params_;
148 } 152 }
149 intptr_t num_stack_locals() const { 153 intptr_t num_stack_locals() const {
150 return num_stack_locals_; 154 return num_stack_locals_;
151 } 155 }
152 156
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
575 // Output parameters. 579 // Output parameters.
576 GrowableArray<TargetEntryInstr**> true_successor_addresses_; 580 GrowableArray<TargetEntryInstr**> true_successor_addresses_;
577 GrowableArray<TargetEntryInstr**> false_successor_addresses_; 581 GrowableArray<TargetEntryInstr**> false_successor_addresses_;
578 582
579 TokenPosition condition_token_pos_; 583 TokenPosition condition_token_pos_;
580 }; 584 };
581 585
582 } // namespace dart 586 } // namespace dart
583 587
584 #endif // VM_FLOW_GRAPH_BUILDER_H_ 588 #endif // VM_FLOW_GRAPH_BUILDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698