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

Side by Side Diff: runtime/vm/compiler.cc

Issue 11099061: Remove support for generating visualizer format file for the flowgraph. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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 | « runtime/include/dart_api.h ('k') | runtime/vm/dart_api_impl.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 #include "vm/compiler.h" 5 #include "vm/compiler.h"
6 6
7 #include "vm/assembler.h" 7 #include "vm/assembler.h"
8 8
9 #include "vm/ast_printer.h" 9 #include "vm/ast_printer.h"
10 #include "vm/code_generator.h" 10 #include "vm/code_generator.h"
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 flow_graph = builder.BuildGraph(FlowGraphBuilder::kNotInlining); 158 flow_graph = builder.BuildGraph(FlowGraphBuilder::kNotInlining);
159 159
160 // Transform to SSA. 160 // Transform to SSA.
161 if (optimized) flow_graph->ComputeSSA(0); // Start at virtual register 0. 161 if (optimized) flow_graph->ComputeSSA(0); // Start at virtual register 0.
162 162
163 if (FLAG_print_flow_graph) { 163 if (FLAG_print_flow_graph) {
164 OS::Print("Before Optimizations\n"); 164 OS::Print("Before Optimizations\n");
165 FlowGraphPrinter printer(*flow_graph); 165 FlowGraphPrinter printer(*flow_graph);
166 printer.PrintBlocks(); 166 printer.PrintBlocks();
167 } 167 }
168 if (Dart::flow_graph_writer() != NULL) {
169 // Write flow graph to file.
170 FlowGraphVisualizer printer(*flow_graph);
171 printer.PrintFunction();
172 }
173 168
174 if (optimized) { 169 if (optimized) {
175 flow_graph->ComputeUseLists(); 170 flow_graph->ComputeUseLists();
176 171
177 FlowGraphOptimizer optimizer(flow_graph); 172 FlowGraphOptimizer optimizer(flow_graph);
178 optimizer.ApplyICData(); 173 optimizer.ApplyICData();
179 174
180 // Compute the use lists. 175 // Compute the use lists.
181 flow_graph->ComputeUseLists(); 176 flow_graph->ComputeUseLists();
182 177
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 result = isolate->object_store()->sticky_error(); 591 result = isolate->object_store()->sticky_error();
597 isolate->object_store()->clear_sticky_error(); 592 isolate->object_store()->clear_sticky_error();
598 isolate->set_long_jump_base(base); 593 isolate->set_long_jump_base(base);
599 return result.raw(); 594 return result.raw();
600 } 595 }
601 UNREACHABLE(); 596 UNREACHABLE();
602 return Object::null(); 597 return Object::null();
603 } 598 }
604 599
605 } // namespace dart 600 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/include/dart_api.h ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698