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

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

Issue 2901533002: [kernel] Stream everything. Replace .kernel_function with .kernel_offset (Closed)
Patch Set: Fix for bad merge Created 3 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
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/kernel.h » ('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 #if !defined(DART_PRECOMPILED_RUNTIME) 4 #if !defined(DART_PRECOMPILED_RUNTIME)
5 #include "vm/flow_graph_inliner.h" 5 #include "vm/flow_graph_inliner.h"
6 6
7 #include "vm/aot_optimizer.h" 7 #include "vm/aot_optimizer.h"
8 #include "vm/precompiler.h" 8 #include "vm/precompiler.h"
9 #include "vm/block_scheduler.h" 9 #include "vm/block_scheduler.h"
10 #include "vm/branch_optimizer.h" 10 #include "vm/branch_optimizer.h"
(...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after
789 return false; 789 return false;
790 } 790 }
791 } 791 }
792 792
793 793
794 // Build the callee graph. 794 // Build the callee graph.
795 InlineExitCollector* exit_collector = 795 InlineExitCollector* exit_collector =
796 new (Z) InlineExitCollector(caller_graph_, call); 796 new (Z) InlineExitCollector(caller_graph_, call);
797 FlowGraph* callee_graph; 797 FlowGraph* callee_graph;
798 if (UseKernelFrontEndFor(parsed_function)) { 798 if (UseKernelFrontEndFor(parsed_function)) {
799 kernel::TreeNode* node = static_cast<kernel::TreeNode*>(
800 parsed_function->function().kernel_function());
801
802 kernel::FlowGraphBuilder builder( 799 kernel::FlowGraphBuilder builder(
803 node, parsed_function, *ic_data_array, 800 parsed_function->function().kernel_offset(), parsed_function,
804 /* not building var desc */ NULL, exit_collector, 801 *ic_data_array, /* not building var desc */ NULL, exit_collector,
805 Compiler::kNoOSRDeoptId, caller_graph_->max_block_id() + 1); 802 Compiler::kNoOSRDeoptId, caller_graph_->max_block_id() + 1);
806 { 803 {
807 CSTAT_TIMER_SCOPE(thread(), graphinliner_build_timer); 804 CSTAT_TIMER_SCOPE(thread(), graphinliner_build_timer);
808 callee_graph = builder.BuildGraph(); 805 callee_graph = builder.BuildGraph();
809 } 806 }
810 } else { 807 } else {
811 FlowGraphBuilder builder(*parsed_function, *ic_data_array, 808 FlowGraphBuilder builder(*parsed_function, *ic_data_array,
812 /* not building var desc */ NULL, 809 /* not building var desc */ NULL,
813 exit_collector, Compiler::kNoOSRDeoptId); 810 exit_collector, Compiler::kNoOSRDeoptId);
814 builder.SetInitialBlockId(caller_graph_->max_block_id()); 811 builder.SetInitialBlockId(caller_graph_->max_block_id());
(...skipping 2955 matching lines...) Expand 10 before | Expand all | Expand 10 after
3770 } 3767 }
3771 3768
3772 default: 3769 default:
3773 return false; 3770 return false;
3774 } 3771 }
3775 } 3772 }
3776 3773
3777 3774
3778 } // namespace dart 3775 } // namespace dart
3779 #endif // !defined(DART_PRECOMPILED_RUNTIME) 3776 #endif // !defined(DART_PRECOMPILED_RUNTIME)
OLDNEW
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/kernel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698