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

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

Issue 10908091: Remove classes Computation and BindInstr. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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_IL_PRINTER_H_ 5 #ifndef VM_IL_PRINTER_H_
6 #define VM_IL_PRINTER_H_ 6 #define VM_IL_PRINTER_H_
7 7
8 #include "vm/flow_graph.h" 8 #include "vm/flow_graph.h"
9 #include "vm/intermediate_language.h" 9 #include "vm/intermediate_language.h"
10 10
(...skipping 28 matching lines...) Expand all
39 bool print_locations = false) 39 bool print_locations = false)
40 : function_(flow_graph.parsed_function().function()), 40 : function_(flow_graph.parsed_function().function()),
41 block_order_(flow_graph.reverse_postorder()), 41 block_order_(flow_graph.reverse_postorder()),
42 print_locations_(print_locations) { } 42 print_locations_(print_locations) { }
43 43
44 // Print the instructions in a block terminated by newlines. Add "goto N" 44 // Print the instructions in a block terminated by newlines. Add "goto N"
45 // to the end of the block if it ends with an unconditional jump to 45 // to the end of the block if it ends with an unconditional jump to
46 // another block and that block is not next in reverse postorder. 46 // another block and that block is not next in reverse postorder.
47 void PrintBlocks(); 47 void PrintBlocks();
48 void PrintInstruction(Instruction* instr); 48 void PrintInstruction(Instruction* instr);
49 static void PrintComputation(Computation* comp);
50 static void PrintTypeCheck(const ParsedFunction& parsed_function, 49 static void PrintTypeCheck(const ParsedFunction& parsed_function,
51 intptr_t token_pos, 50 intptr_t token_pos,
52 Value* value, 51 Value* value,
53 const AbstractType& dst_type, 52 const AbstractType& dst_type,
54 const String& dst_name, 53 const String& dst_name,
55 bool eliminated); 54 bool eliminated);
56 55
57 private: 56 private:
58 const Function& function_; 57 const Function& function_;
59 const GrowableArray<BlockEntryInstr*>& block_order_; 58 const GrowableArray<BlockEntryInstr*>& block_order_;
(...skipping 18 matching lines...) Expand all
78 const Function& function_; 77 const Function& function_;
79 const GrowableArray<BlockEntryInstr*>& block_order_; 78 const GrowableArray<BlockEntryInstr*>& block_order_;
80 intptr_t indent_; 79 intptr_t indent_;
81 80
82 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisualizer); 81 DISALLOW_COPY_AND_ASSIGN(FlowGraphVisualizer);
83 }; 82 };
84 83
85 } // namespace dart 84 } // namespace dart
86 85
87 #endif // VM_IL_PRINTER_H_ 86 #endif // VM_IL_PRINTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698