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

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

Issue 11269040: More inlining flags and tuned heuristics. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: out/DebugIA32/dart --ignore-unrecognized-flags /usr/local/google/home/zerny/src/dart/dart/tests/co1… Created 8 years, 1 month 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.cc » ('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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 FLAG_deoptimization_counter_threshold) { 144 FLAG_deoptimization_counter_threshold) {
145 const Code& unoptimized_code = 145 const Code& unoptimized_code =
146 Code::Handle(parsed_function.function().unoptimized_code()); 146 Code::Handle(parsed_function.function().unoptimized_code());
147 isolate->set_ic_data_array( 147 isolate->set_ic_data_array(
148 unoptimized_code.ExtractTypeFeedbackArray()); 148 unoptimized_code.ExtractTypeFeedbackArray());
149 } 149 }
150 } 150 }
151 151
152 // Build the flow graph. 152 // Build the flow graph.
153 FlowGraphBuilder builder(parsed_function); 153 FlowGraphBuilder builder(parsed_function);
154 flow_graph = builder.BuildGraph(FlowGraphBuilder::kNotInlining); 154 flow_graph = builder.BuildGraph(FlowGraphBuilder::kNotInlining,
155 0); // The initial loop depth is zero.
155 } 156 }
156 157
157 if (optimized) { 158 if (optimized) {
158 TimerScope timer(FLAG_compiler_stats, 159 TimerScope timer(FLAG_compiler_stats,
159 &CompilerStats::ssa_timer, 160 &CompilerStats::ssa_timer,
160 isolate); 161 isolate);
161 // Transform to SSA (virtual register 0 and no inlining arguments). 162 // Transform to SSA (virtual register 0 and no inlining arguments).
162 flow_graph->ComputeSSA(0, NULL); 163 flow_graph->ComputeSSA(0, NULL);
163 } 164 }
164 165
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
605 result = isolate->object_store()->sticky_error(); 606 result = isolate->object_store()->sticky_error();
606 isolate->object_store()->clear_sticky_error(); 607 isolate->object_store()->clear_sticky_error();
607 isolate->set_long_jump_base(base); 608 isolate->set_long_jump_base(base);
608 return result.raw(); 609 return result.raw();
609 } 610 }
610 UNREACHABLE(); 611 UNREACHABLE();
611 return Object::null(); 612 return Object::null();
612 } 613 }
613 614
614 } // namespace dart 615 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph.cc » ('j') | runtime/vm/flow_graph_inliner.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698