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

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

Issue 11567012: Store optimized flow graph statistics on the function itself. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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 | runtime/vm/flow_graph_inliner.h » ('j') | runtime/vm/flow_graph_inliner.cc » ('J')
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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 flow_graph->ComputeUseLists(); 176 flow_graph->ComputeUseLists();
177 177
178 FlowGraphOptimizer optimizer(flow_graph); 178 FlowGraphOptimizer optimizer(flow_graph);
179 optimizer.ApplyICData(); 179 optimizer.ApplyICData();
180 180
181 // Compute the use lists. 181 // Compute the use lists.
182 flow_graph->ComputeUseLists(); 182 flow_graph->ComputeUseLists();
183 183
184 // Inlining (mutates the flow graph) 184 // Inlining (mutates the flow graph)
185 if (FLAG_use_inlining) { 185 if (FLAG_use_inlining) {
186 // Collect graph info and store it on the function.
187 // We might later use it for an early bailout from the inlining.
188 FlowGraphInliner::CollectGraphInfo(flow_graph);
Kevin Millikin (Google) 2012/12/13 16:43:40 Why not move this down into FlowGraphInliner::Inli
Vyacheslav Egorov (Google) 2012/12/13 18:54:46 Done.
189
186 TimerScope timer(FLAG_compiler_stats, 190 TimerScope timer(FLAG_compiler_stats,
187 &CompilerStats::graphinliner_timer); 191 &CompilerStats::graphinliner_timer);
188 FlowGraphInliner inliner(flow_graph); 192 FlowGraphInliner inliner(flow_graph);
189 inliner.Inline(); 193 inliner.Inline();
190 // Use lists are maintained and validated by the inliner. 194 // Use lists are maintained and validated by the inliner.
191 } 195 }
192 196
193 // Propagate types and eliminate more type tests. 197 // Propagate types and eliminate more type tests.
194 if (FLAG_propagate_types) { 198 if (FLAG_propagate_types) {
195 FlowGraphTypePropagator propagator(flow_graph); 199 FlowGraphTypePropagator propagator(flow_graph);
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 result = isolate->object_store()->sticky_error(); 642 result = isolate->object_store()->sticky_error();
639 isolate->object_store()->clear_sticky_error(); 643 isolate->object_store()->clear_sticky_error();
640 isolate->set_long_jump_base(base); 644 isolate->set_long_jump_base(base);
641 return result.raw(); 645 return result.raw();
642 } 646 }
643 UNREACHABLE(); 647 UNREACHABLE();
644 return Object::null(); 648 return Object::null();
645 } 649 }
646 650
647 } // namespace dart 651 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_inliner.h » ('j') | runtime/vm/flow_graph_inliner.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698