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

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

Issue 17233003: Reapply "Initial implementation of on-stack replacement (OSR)." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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/vm/flow_graph_compiler_x64.cc ('k') | runtime/vm/flow_graph_type_propagator.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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/flow_graph_inliner.h" 5 #include "vm/flow_graph_inliner.h"
6 6
7 #include "vm/compiler.h" 7 #include "vm/compiler.h"
8 #include "vm/flags.h" 8 #include "vm/flags.h"
9 #include "vm/flow_graph.h" 9 #include "vm/flow_graph.h"
10 #include "vm/flow_graph_builder.h" 10 #include "vm/flow_graph_builder.h"
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 Array& ic_data_array = Array::Handle(); 487 Array& ic_data_array = Array::Handle();
488 if (function.HasCode()) { 488 if (function.HasCode()) {
489 const Code& unoptimized_code = 489 const Code& unoptimized_code =
490 Code::Handle(function.unoptimized_code()); 490 Code::Handle(function.unoptimized_code());
491 ic_data_array = unoptimized_code.ExtractTypeFeedbackArray(); 491 ic_data_array = unoptimized_code.ExtractTypeFeedbackArray();
492 } 492 }
493 493
494 // Build the callee graph. 494 // Build the callee graph.
495 InlineExitCollector* exit_collector = 495 InlineExitCollector* exit_collector =
496 new InlineExitCollector(caller_graph_, call); 496 new InlineExitCollector(caller_graph_, call);
497 FlowGraphBuilder builder(parsed_function, ic_data_array, exit_collector); 497 FlowGraphBuilder builder(parsed_function,
498 ic_data_array,
499 exit_collector,
500 Isolate::kNoDeoptId);
498 builder.SetInitialBlockId(caller_graph_->max_block_id()); 501 builder.SetInitialBlockId(caller_graph_->max_block_id());
499 FlowGraph* callee_graph; 502 FlowGraph* callee_graph;
500 { 503 {
501 TimerScope timer(FLAG_compiler_stats, 504 TimerScope timer(FLAG_compiler_stats,
502 &CompilerStats::graphinliner_build_timer, 505 &CompilerStats::graphinliner_build_timer,
503 isolate); 506 isolate);
504 callee_graph = builder.BuildGraph(); 507 callee_graph = builder.BuildGraph();
505 } 508 }
506 509
507 // The parameter stubs are a copy of the actual arguments providing 510 // The parameter stubs are a copy of the actual arguments providing
(...skipping 830 matching lines...) Expand 10 before | Expand all | Expand 10 after
1338 OS::Print("After Inlining of %s\n", flow_graph_-> 1341 OS::Print("After Inlining of %s\n", flow_graph_->
1339 parsed_function().function().ToFullyQualifiedCString()); 1342 parsed_function().function().ToFullyQualifiedCString());
1340 FlowGraphPrinter printer(*flow_graph_); 1343 FlowGraphPrinter printer(*flow_graph_);
1341 printer.PrintBlocks(); 1344 printer.PrintBlocks();
1342 } 1345 }
1343 } 1346 }
1344 } 1347 }
1345 } 1348 }
1346 1349
1347 } // namespace dart 1350 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.cc ('k') | runtime/vm/flow_graph_type_propagator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698