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

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

Issue 24744002: Pattern match on generated code to find edge counters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Incorporated review comments. Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/flow_graph.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) 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/growable_array.h" 8 #include "vm/growable_array.h"
9 #include "vm/intermediate_language.h" 9 #include "vm/intermediate_language.h"
10 #include "vm/parser.h" 10 #include "vm/parser.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 // Flow graph orders. 75 // Flow graph orders.
76 const GrowableArray<BlockEntryInstr*>& preorder() const { 76 const GrowableArray<BlockEntryInstr*>& preorder() const {
77 return preorder_; 77 return preorder_;
78 } 78 }
79 const GrowableArray<BlockEntryInstr*>& postorder() const { 79 const GrowableArray<BlockEntryInstr*>& postorder() const {
80 return postorder_; 80 return postorder_;
81 } 81 }
82 const GrowableArray<BlockEntryInstr*>& reverse_postorder() const { 82 const GrowableArray<BlockEntryInstr*>& reverse_postorder() const {
83 return reverse_postorder_; 83 return reverse_postorder_;
84 } 84 }
85 GrowableArray<BlockEntryInstr*>* codegen_block_order(bool is_optimized); 85 static bool ShouldReorderBlocks(const Function& function, bool is_optimized);
86 GrowableArray<BlockEntryInstr*>* CodegenBlockOrder(bool is_optimized);
86 87
87 // Iterators. 88 // Iterators.
88 BlockIterator reverse_postorder_iterator() const { 89 BlockIterator reverse_postorder_iterator() const {
89 return BlockIterator(reverse_postorder()); 90 return BlockIterator(reverse_postorder());
90 } 91 }
91 BlockIterator postorder_iterator() const { 92 BlockIterator postorder_iterator() const {
92 return BlockIterator(postorder()); 93 return BlockIterator(postorder());
93 } 94 }
94 95
95 intptr_t current_ssa_temp_index() const { return current_ssa_temp_index_; } 96 intptr_t current_ssa_temp_index() const { return current_ssa_temp_index_; }
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 // Per block sets of available blocks. Block A is available at the block B if 376 // Per block sets of available blocks. Block A is available at the block B if
376 // and only if A dominates B and all paths from A to B are free of side 377 // and only if A dominates B and all paths from A to B are free of side
377 // effects. 378 // effects.
378 GrowableArray<BitVector*> available_at_; 379 GrowableArray<BitVector*> available_at_;
379 }; 380 };
380 381
381 382
382 } // namespace dart 383 } // namespace dart
383 384
384 #endif // VM_FLOW_GRAPH_H_ 385 #endif // VM_FLOW_GRAPH_H_
OLDNEW
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/flow_graph.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698