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

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

Issue 2894953002: Support inlining of calls where type arguments are passed to generic functions. (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « no previous file | runtime/vm/flow_graph.h » ('j') | runtime/vm/flow_graph.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/block_scheduler.h" 10 #include "vm/block_scheduler.h"
(...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after
799 NOT_IN_PRODUCT(TimelineDurationScope tds( 799 NOT_IN_PRODUCT(TimelineDurationScope tds(
800 thread(), compiler_timeline, "BlockScheduler::AssignEdgeWeights")); 800 thread(), compiler_timeline, "BlockScheduler::AssignEdgeWeights"));
801 block_scheduler.AssignEdgeWeights(); 801 block_scheduler.AssignEdgeWeights();
802 } 802 }
803 803
804 if (optimized()) { 804 if (optimized()) {
805 NOT_IN_PRODUCT(TimelineDurationScope tds(thread(), compiler_timeline, 805 NOT_IN_PRODUCT(TimelineDurationScope tds(thread(), compiler_timeline,
806 "ComputeSSA")); 806 "ComputeSSA"));
807 CSTAT_TIMER_SCOPE(thread(), ssa_timer); 807 CSTAT_TIMER_SCOPE(thread(), ssa_timer);
808 // Transform to SSA (virtual register 0 and no inlining arguments). 808 // Transform to SSA (virtual register 0 and no inlining arguments).
809 flow_graph->ComputeSSA(0, NULL); 809 flow_graph->ComputeSSA(0, NULL, NULL);
810 DEBUG_ASSERT(flow_graph->VerifyUseLists()); 810 DEBUG_ASSERT(flow_graph->VerifyUseLists());
811 if (print_flow_graph) { 811 if (print_flow_graph) {
812 FlowGraphPrinter::PrintGraph("After SSA", flow_graph); 812 FlowGraphPrinter::PrintGraph("After SSA", flow_graph);
813 } 813 }
814 } 814 }
815 815
816 // Maps inline_id_to_function[inline_id] -> function. Top scope 816 // Maps inline_id_to_function[inline_id] -> function. Top scope
817 // function has inline_id 0. The map is populated by the inliner. 817 // function has inline_id 0. The map is populated by the inliner.
818 GrowableArray<const Function*> inline_id_to_function; 818 GrowableArray<const Function*> inline_id_to_function;
819 // Token position where inlining occured. 819 // Token position where inlining occured.
(...skipping 1491 matching lines...) Expand 10 before | Expand all | Expand 10 after
2311 2311
2312 2312
2313 bool BackgroundCompiler::IsDisabled() { 2313 bool BackgroundCompiler::IsDisabled() {
2314 UNREACHABLE(); 2314 UNREACHABLE();
2315 return true; 2315 return true;
2316 } 2316 }
2317 2317
2318 #endif // DART_PRECOMPILED_RUNTIME 2318 #endif // DART_PRECOMPILED_RUNTIME
2319 2319
2320 } // namespace dart 2320 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph.h » ('j') | runtime/vm/flow_graph.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698