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

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

Issue 10666026: Simple iterative liveness analysis over SSA. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 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
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 24 matching lines...) Expand all
35 35
36 // Each try in this function gets its own try index. 36 // Each try in this function gets its own try index.
37 intptr_t AllocateTryIndex() { return ++last_used_try_index_; } 37 intptr_t AllocateTryIndex() { return ++last_used_try_index_; }
38 38
39 // Manage the currently active try index. 39 // Manage the currently active try index.
40 void set_try_index(intptr_t value) { try_index_ = value; } 40 void set_try_index(intptr_t value) { try_index_ = value; }
41 intptr_t try_index() const { return try_index_; } 41 intptr_t try_index() const { return try_index_; }
42 42
43 void AddCatchEntry(TargetEntryInstr* entry); 43 void AddCatchEntry(TargetEntryInstr* entry);
44 44
45 intptr_t current_ssa_temp_index() const {
46 return current_ssa_temp_index_;
47 }
48
45 private: 49 private:
46 void ComputeDominators(GrowableArray<BlockEntryInstr*>* preorder, 50 void ComputeDominators(GrowableArray<BlockEntryInstr*>* preorder,
47 GrowableArray<intptr_t>* parent, 51 GrowableArray<intptr_t>* parent,
48 GrowableArray<BitVector*>* dominance_frontier); 52 GrowableArray<BitVector*>* dominance_frontier);
49 53
50 void CompressPath(intptr_t start_index, 54 void CompressPath(intptr_t start_index,
51 intptr_t current_index, 55 intptr_t current_index,
52 GrowableArray<intptr_t>* parent, 56 GrowableArray<intptr_t>* parent,
53 GrowableArray<intptr_t>* label); 57 GrowableArray<intptr_t>* label);
54 58
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 // Output parameters. 325 // Output parameters.
322 TargetEntryInstr** true_successor_address_; 326 TargetEntryInstr** true_successor_address_;
323 TargetEntryInstr** false_successor_address_; 327 TargetEntryInstr** false_successor_address_;
324 328
325 intptr_t condition_token_index_; 329 intptr_t condition_token_index_;
326 }; 330 };
327 331
328 } // namespace dart 332 } // namespace dart
329 333
330 #endif // VM_FLOW_GRAPH_BUILDER_H_ 334 #endif // VM_FLOW_GRAPH_BUILDER_H_
OLDNEW
« runtime/vm/flow_graph_allocator.cc ('K') | « runtime/vm/flow_graph_allocator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698