| OLD | NEW |
| 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 "vm/allocation.h" | 8 #include "vm/allocation.h" |
| 9 #include "vm/ast.h" | 9 #include "vm/ast.h" |
| 10 #include "vm/growable_array.h" | 10 #include "vm/growable_array.h" |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 void set_context_level(intptr_t value) { context_level_ = value; } | 100 void set_context_level(intptr_t value) { context_level_ = value; } |
| 101 intptr_t context_level() const { return context_level_; } | 101 intptr_t context_level() const { return context_level_; } |
| 102 | 102 |
| 103 // Each try in this function gets its own try index. | 103 // Each try in this function gets its own try index. |
| 104 intptr_t AllocateTryIndex() { return ++last_used_try_index_; } | 104 intptr_t AllocateTryIndex() { return ++last_used_try_index_; } |
| 105 | 105 |
| 106 // Manage the currently active try index. | 106 // Manage the currently active try index. |
| 107 void set_try_index(intptr_t value) { try_index_ = value; } | 107 void set_try_index(intptr_t value) { try_index_ = value; } |
| 108 intptr_t try_index() const { return try_index_; } | 108 intptr_t try_index() const { return try_index_; } |
| 109 | 109 |
| 110 void AddCatchEntry(TargetEntryInstr* entry); | 110 void AddCatchEntry(CatchBlockEntryInstr* entry); |
| 111 | 111 |
| 112 intptr_t num_copied_params() const { | 112 intptr_t num_copied_params() const { |
| 113 return num_copied_params_; | 113 return num_copied_params_; |
| 114 } | 114 } |
| 115 intptr_t num_non_copied_params() const { | 115 intptr_t num_non_copied_params() const { |
| 116 return num_non_copied_params_; | 116 return num_non_copied_params_; |
| 117 } | 117 } |
| 118 intptr_t num_stack_locals() const { | 118 intptr_t num_stack_locals() const { |
| 119 return num_stack_locals_; | 119 return num_stack_locals_; |
| 120 } | 120 } |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 // Output parameters. | 462 // Output parameters. |
| 463 GrowableArray<TargetEntryInstr**> true_successor_addresses_; | 463 GrowableArray<TargetEntryInstr**> true_successor_addresses_; |
| 464 GrowableArray<TargetEntryInstr**> false_successor_addresses_; | 464 GrowableArray<TargetEntryInstr**> false_successor_addresses_; |
| 465 | 465 |
| 466 intptr_t condition_token_pos_; | 466 intptr_t condition_token_pos_; |
| 467 }; | 467 }; |
| 468 | 468 |
| 469 } // namespace dart | 469 } // namespace dart |
| 470 | 470 |
| 471 #endif // VM_FLOW_GRAPH_BUILDER_H_ | 471 #endif // VM_FLOW_GRAPH_BUILDER_H_ |
| OLD | NEW |