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

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

Issue 10388161: Initial work on computing SSA. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 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 | « no previous file | runtime/vm/flow_graph_builder.cc » ('j') | runtime/vm/intermediate_language.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 private: 45 private:
46 void ComputeDominators(GrowableArray<BlockEntryInstr*>* preorder, 46 void ComputeDominators(GrowableArray<BlockEntryInstr*>* preorder,
47 GrowableArray<intptr_t>* parent, 47 GrowableArray<intptr_t>* parent,
48 GrowableArray<BitVector*>* dominance_frontier); 48 GrowableArray<BitVector*>* dominance_frontier);
49 49
50 void CompressPath(intptr_t start_index, 50 void CompressPath(intptr_t start_index,
51 intptr_t current_index, 51 intptr_t current_index,
52 GrowableArray<intptr_t>* parent, 52 GrowableArray<intptr_t>* parent,
53 GrowableArray<intptr_t>* label); 53 GrowableArray<intptr_t>* label);
54 54
55 void InsertPhis(GrowableArray<BlockEntryInstr*>* preorder,
56 GrowableArray<BitVector*>* assigned_vars,
57 intptr_t var_count,
58 GrowableArray<BitVector*>* dom_frontier);
59
55 const ParsedFunction& parsed_function_; 60 const ParsedFunction& parsed_function_;
56 GrowableArray<BlockEntryInstr*> preorder_block_entries_; 61 GrowableArray<BlockEntryInstr*> preorder_block_entries_;
57 GrowableArray<BlockEntryInstr*> postorder_block_entries_; 62 GrowableArray<BlockEntryInstr*> postorder_block_entries_;
58 intptr_t context_level_; 63 intptr_t context_level_;
59 intptr_t last_used_try_index_; 64 intptr_t last_used_try_index_;
60 intptr_t try_index_; 65 intptr_t try_index_;
61 GraphEntryInstr* graph_entry_; 66 GraphEntryInstr* graph_entry_;
62 67
63 DISALLOW_IMPLICIT_CONSTRUCTORS(FlowGraphBuilder); 68 DISALLOW_IMPLICIT_CONSTRUCTORS(FlowGraphBuilder);
64 }; 69 };
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 // Output parameters. 295 // Output parameters.
291 TargetEntryInstr** true_successor_address_; 296 TargetEntryInstr** true_successor_address_;
292 TargetEntryInstr** false_successor_address_; 297 TargetEntryInstr** false_successor_address_;
293 298
294 intptr_t condition_token_index_; 299 intptr_t condition_token_index_;
295 }; 300 };
296 301
297 } // namespace dart 302 } // namespace dart
298 303
299 #endif // VM_FLOW_GRAPH_BUILDER_H_ 304 #endif // VM_FLOW_GRAPH_BUILDER_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_builder.cc » ('j') | runtime/vm/intermediate_language.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698