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

Unified Diff: runtime/vm/flow_graph_inliner.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/flow_graph_compiler.cc ('k') | runtime/vm/intermediate_language.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_inliner.cc
===================================================================
--- runtime/vm/flow_graph_inliner.cc (revision 43213)
+++ runtime/vm/flow_graph_inliner.cc (working copy)
@@ -686,7 +686,7 @@
// Build the callee graph.
InlineExitCollector* exit_collector =
new(Z) InlineExitCollector(caller_graph_, call);
- FlowGraphBuilder builder(parsed_function,
+ FlowGraphBuilder builder(*parsed_function,
*ic_data_array,
exit_collector,
Isolate::kNoDeoptId);
@@ -1472,10 +1472,12 @@
FlowGraph::kEffect);
entry->set_last_instruction(result);
exit_collector->AddExit(result);
+ ParsedFunction* temp_parsed_function =
+ new ParsedFunction(Thread::Current(), target);
GraphEntryInstr* graph_entry =
- new(Z) GraphEntryInstr(NULL, // No parsed function.
- entry,
- Isolate::kNoDeoptId); // No OSR id.
+ new(Z) GraphEntryInstr(*temp_parsed_function,
+ entry,
+ Isolate::kNoDeoptId); // No OSR id.
// Update polymorphic inliner state.
inlined_entries_.Add(graph_entry);
exit_collector_->Union(exit_collector);
« no previous file with comments | « runtime/vm/flow_graph_compiler.cc ('k') | runtime/vm/intermediate_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698