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

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

Issue 2941483003: Revert "[kernel] Stream everything. Replace .kernel_function with .kernel_offset" (Closed)
Patch Set: 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
799 kernel::FlowGraphBuilder builder( 802 kernel::FlowGraphBuilder builder(
800 parsed_function->function().kernel_offset(), parsed_function, 803 node, parsed_function, *ic_data_array,
801 *ic_data_array, /* not building var desc */ NULL, exit_collector, 804 /* not building var desc */ NULL, exit_collector,
802 Compiler::kNoOSRDeoptId, caller_graph_->max_block_id() + 1); 805 Compiler::kNoOSRDeoptId, caller_graph_->max_block_id() + 1);
803 { 806 {
804 CSTAT_TIMER_SCOPE(thread(), graphinliner_build_timer); 807 CSTAT_TIMER_SCOPE(thread(), graphinliner_build_timer);
805 callee_graph = builder.BuildGraph(); 808 callee_graph = builder.BuildGraph();
806 } 809 }
807 } else { 810 } else {
808 FlowGraphBuilder builder(*parsed_function, *ic_data_array, 811 FlowGraphBuilder builder(*parsed_function, *ic_data_array,
809 /* not building var desc */ NULL, 812 /* not building var desc */ NULL,
810 exit_collector, Compiler::kNoOSRDeoptId); 813 exit_collector, Compiler::kNoOSRDeoptId);
811 builder.SetInitialBlockId(caller_graph_->max_block_id()); 814 builder.SetInitialBlockId(caller_graph_->max_block_id());
(...skipping 2955 matching lines...) Expand 10 before | Expand all | Expand 10 after
3767 } 3770 }
3768 3771
3769 default: 3772 default:
3770 return false; 3773 return false;
3771 } 3774 }
3772 } 3775 }
3773 3776
3774 3777
3775 } // namespace dart 3778 } // namespace dart
3776 #endif // !defined(DART_PRECOMPILED_RUNTIME) 3779 #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