| OLD | NEW |
| 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_INTERMEDIATE_LANGUAGE_H_ | 5 #ifndef VM_INTERMEDIATE_LANGUAGE_H_ |
| 6 #define VM_INTERMEDIATE_LANGUAGE_H_ | 6 #define VM_INTERMEDIATE_LANGUAGE_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 1367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1378 return const_cast<BlockEntryInstr*>(this); | 1378 return const_cast<BlockEntryInstr*>(this); |
| 1379 } | 1379 } |
| 1380 | 1380 |
| 1381 // Helper to mutate the graph during inlining. This block should be | 1381 // Helper to mutate the graph during inlining. This block should be |
| 1382 // replaced with new_block as a predecessor of all of this block's | 1382 // replaced with new_block as a predecessor of all of this block's |
| 1383 // successors. | 1383 // successors. |
| 1384 void ReplaceAsPredecessorWith(BlockEntryInstr* new_block); | 1384 void ReplaceAsPredecessorWith(BlockEntryInstr* new_block); |
| 1385 | 1385 |
| 1386 void set_block_id(intptr_t block_id) { block_id_ = block_id; } | 1386 void set_block_id(intptr_t block_id) { block_id_ = block_id; } |
| 1387 | 1387 |
| 1388 // For all instruction in this block: Remove all inputs (including in the |
| 1389 // environment) from their definition's use lists for all instructions. |
| 1390 void ClearAllInstructions(); |
| 1391 |
| 1388 protected: | 1392 protected: |
| 1389 BlockEntryInstr(intptr_t block_id, intptr_t try_index) | 1393 BlockEntryInstr(intptr_t block_id, intptr_t try_index) |
| 1390 : block_id_(block_id), | 1394 : block_id_(block_id), |
| 1391 try_index_(try_index), | 1395 try_index_(try_index), |
| 1392 preorder_number_(-1), | 1396 preorder_number_(-1), |
| 1393 postorder_number_(-1), | 1397 postorder_number_(-1), |
| 1394 dominator_(NULL), | 1398 dominator_(NULL), |
| 1395 dominated_blocks_(1), | 1399 dominated_blocks_(1), |
| 1396 last_instruction_(NULL), | 1400 last_instruction_(NULL), |
| 1397 parallel_move_(NULL), | 1401 parallel_move_(NULL), |
| (...skipping 6518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7916 ForwardInstructionIterator* current_iterator_; | 7920 ForwardInstructionIterator* current_iterator_; |
| 7917 | 7921 |
| 7918 private: | 7922 private: |
| 7919 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); | 7923 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisitor); |
| 7920 }; | 7924 }; |
| 7921 | 7925 |
| 7922 | 7926 |
| 7923 } // namespace dart | 7927 } // namespace dart |
| 7924 | 7928 |
| 7925 #endif // VM_INTERMEDIATE_LANGUAGE_H_ | 7929 #endif // VM_INTERMEDIATE_LANGUAGE_H_ |
| OLD | NEW |