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

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

Issue 9706086: Clean-up CodeGenState: remove unused loop_level and move context_level to CodeGenerator (and add it… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 9 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 14 matching lines...) Expand all
25 void BuildGraph(); 25 void BuildGraph();
26 26
27 const ParsedFunction& parsed_function() const { return parsed_function_; } 27 const ParsedFunction& parsed_function() const { return parsed_function_; }
28 28
29 const GrowableArray<BlockEntryInstr*>* blocks() const { 29 const GrowableArray<BlockEntryInstr*>* blocks() const {
30 return &postorder_block_entries_; 30 return &postorder_block_entries_;
31 } 31 }
32 32
33 void Bailout(const char* reason); 33 void Bailout(const char* reason);
34 34
35 void set_context_level(intptr_t value) { context_level_ = value; }
36 intptr_t context_level() const { return context_level_; }
37
35 private: 38 private:
36 const ParsedFunction& parsed_function_; 39 const ParsedFunction& parsed_function_;
37 GrowableArray<BlockEntryInstr*> postorder_block_entries_; 40 GrowableArray<BlockEntryInstr*> postorder_block_entries_;
41 intptr_t context_level_;
38 }; 42 };
39 43
40 44
41 class TestGraphVisitor; 45 class TestGraphVisitor;
42 46
43 // Translate an AstNode to a control-flow graph fragment for its effects 47 // Translate an AstNode to a control-flow graph fragment for its effects
44 // (e.g., a statement or an expression in an effect context). Implements a 48 // (e.g., a statement or an expression in an effect context). Implements a
45 // function from an AstNode and next temporary index to a graph fragment 49 // function from an AstNode and next temporary index to a graph fragment
46 // with a single entry and at most one exit. The fragment is represented by 50 // with a single entry and at most one exit. The fragment is represented by
47 // an (entry, exit) pair of Instruction pointers: 51 // an (entry, exit) pair of Instruction pointers:
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 } 262 }
259 263
260 // Output parameters. 264 // Output parameters.
261 BlockEntryInstr** true_successor_address_; 265 BlockEntryInstr** true_successor_address_;
262 BlockEntryInstr** false_successor_address_; 266 BlockEntryInstr** false_successor_address_;
263 }; 267 };
264 268
265 } // namespace dart 269 } // namespace dart
266 270
267 #endif // VM_FLOW_GRAPH_BUILDER_H_ 271 #endif // VM_FLOW_GRAPH_BUILDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698