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

Unified Diff: runtime/vm/flow_graph_inliner.cc

Issue 2446093002: Use ZoneHandle when creating ConstantInstr (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_inliner.cc
diff --git a/runtime/vm/flow_graph_inliner.cc b/runtime/vm/flow_graph_inliner.cc
index 36e51a1a5087eae835f27afb56aecb6f60a551d5..3a049c2b317aa9107a096567979337fe9d04db2a 100644
--- a/runtime/vm/flow_graph_inliner.cc
+++ b/runtime/vm/flow_graph_inliner.cc
@@ -3833,7 +3833,7 @@ bool FlowGraphInliner::TryInlineRecognizedMethod(FlowGraph* flow_graph,
*entry = new(Z) TargetEntryInstr(flow_graph->allocate_block_id(),
call->GetBlock()->try_index());
(*entry)->InheritDeoptTarget(Z, call);
- *last = new(Z) ConstantInstr(type);
+ *last = new(Z) ConstantInstr(Type::ZoneHandle(Z, type.raw()));
siva 2016/10/25 10:42:32 The type handle seems to be created above, would i
flow_graph->AppendTo(*entry, *last,
call->deopt_id() != Thread::kNoDeoptId ?
call->env() : NULL,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698