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

Unified Diff: runtime/vm/compiler.cc

Issue 878243002: Cleanup: use const reference for ParsedFunction where possible. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/block_scheduler.cc ('k') | runtime/vm/flow_graph.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/compiler.cc
===================================================================
--- runtime/vm/compiler.cc (revision 43213)
+++ runtime/vm/compiler.cc (working copy)
@@ -96,7 +96,7 @@
const ZoneGrowableArray<const ICData*>& ic_data_array,
intptr_t osr_id) {
// Build the flow graph.
- FlowGraphBuilder builder(parsed_function,
+ FlowGraphBuilder builder(*parsed_function,
ic_data_array,
NULL, // NULL = not inlining.
osr_id);
@@ -134,12 +134,12 @@
parsed_function->AllocateIrregexpVariables(result.num_stack_locals);
// Build the flow graph.
- FlowGraphBuilder builder(parsed_function,
+ FlowGraphBuilder builder(*parsed_function,
ic_data_array,
NULL, // NULL = not inlining.
osr_id);
- return new(isolate_) FlowGraph(parsed_function,
+ return new(isolate_) FlowGraph(*parsed_function,
result.graph_entry,
result.num_blocks);
}
@@ -686,8 +686,9 @@
}
Assembler assembler(use_far_branches);
- FlowGraphCompiler graph_compiler(
- &assembler, flow_graph, optimized, inline_id_to_function);
+ FlowGraphCompiler graph_compiler(&assembler, flow_graph,
+ *parsed_function, optimized,
+ inline_id_to_function);
{
TimerScope timer(FLAG_compiler_stats,
&CompilerStats::graphcompiler_timer,
« no previous file with comments | « runtime/vm/block_scheduler.cc ('k') | runtime/vm/flow_graph.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698