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

Side by Side Diff: vm/flow_graph_builder.h

Issue 10693048: Revert r9253 because of dartium test failures (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
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
« no previous file with comments | « no previous file | vm/flow_graph_builder.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) 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 Instruction* entry() const { return entry_; } 107 Instruction* entry() const { return entry_; }
108 Instruction* exit() const { return exit_; } 108 Instruction* exit() const { return exit_; }
109 109
110 bool is_empty() const { return entry_ == NULL; } 110 bool is_empty() const { return entry_ == NULL; }
111 bool is_open() const { return is_empty() || exit_ != NULL; } 111 bool is_open() const { return is_empty() || exit_ != NULL; }
112 112
113 void Bailout(const char* reason); 113 void Bailout(const char* reason);
114 114
115 // Append a graph fragment to this graph. Assumes this graph is open. 115 // Append a graph fragment to this graph. Assumes this graph is open.
116 void Append(const EffectGraphVisitor& other_fragment); 116 void Append(const EffectGraphVisitor& other_fragment);
117 // Append a single instruction. Assumes this graph is open. Can not be a 117 // Append a single instruction. Assumes this graph is open.
118 // block entry instruction.
119 void AddInstruction(Instruction* instruction); 118 void AddInstruction(Instruction* instruction);
120 119
121 // Append a new block entry to the graph.
122 void AddBlockEntry(BlockEntryInstr* successor);
123
124 // Append a 'diamond' branch and join to this graph, depending on which 120 // Append a 'diamond' branch and join to this graph, depending on which
125 // parts are reachable. Assumes this graph is open. 121 // parts are reachable. Assumes this graph is open.
126 void Join(const TestGraphVisitor& test_fragment, 122 void Join(const TestGraphVisitor& test_fragment,
127 const EffectGraphVisitor& true_fragment, 123 const EffectGraphVisitor& true_fragment,
128 const EffectGraphVisitor& false_fragment); 124 const EffectGraphVisitor& false_fragment);
129 125
130 // Append a 'while loop' test and back edge to this graph, depending on 126 // Append a 'while loop' test and back edge to this graph, depending on
131 // which parts are reachable. Afterward, the graph exit is the false 127 // which parts are reachable. Afterward, the graph exit is the false
132 // successor of the loop condition. 128 // successor of the loop condition.
133 void TieLoop(const TestGraphVisitor& test_fragment, 129 void TieLoop(const TestGraphVisitor& test_fragment,
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 // Output parameters. 327 // Output parameters.
332 TargetEntryInstr** true_successor_address_; 328 TargetEntryInstr** true_successor_address_;
333 TargetEntryInstr** false_successor_address_; 329 TargetEntryInstr** false_successor_address_;
334 330
335 intptr_t condition_token_pos_; 331 intptr_t condition_token_pos_;
336 }; 332 };
337 333
338 } // namespace dart 334 } // namespace dart
339 335
340 #endif // VM_FLOW_GRAPH_BUILDER_H_ 336 #endif // VM_FLOW_GRAPH_BUILDER_H_
OLDNEW
« no previous file with comments | « no previous file | vm/flow_graph_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698