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

Unified Diff: runtime/vm/flow_graph_inliner.cc

Issue 1416603002: VM: Always inline typed data list factories, clean up inliner. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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 | runtime/vm/method_recognizer.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
diff --git a/runtime/vm/flow_graph_inliner.cc b/runtime/vm/flow_graph_inliner.cc
index f8bcb22fdf9b928d01ed2540806560ca836bb72d..bcd5207582fca614219a79835c8ff7af1b94e5b4 100644
--- a/runtime/vm/flow_graph_inliner.cc
+++ b/runtime/vm/flow_graph_inliner.cc
@@ -618,9 +618,6 @@ class CallSiteInliner : public ValueObject {
function.ToCString(),
function.deoptimization_counter()));
- // Make a handle for the unoptimized code so that it is not disconnected
- // from the function while we are trying to inline it.
- const Code& unoptimized_code = Code::Handle(function.unoptimized_code());
// Abort if the inlinable bit on the function is low.
if (!function.CanBeInlined()) {
TRACE_INLINING(THR_Print(" Bailout: not inlinable\n"));
@@ -862,9 +859,6 @@ class CallSiteInliner : public ValueObject {
FlowGraphInliner::SetInliningId(callee_graph,
inliner_->NextInlineId(callee_graph->function(),
call_data->caller_inlining_id_));
- // We allocate a ZoneHandle for the unoptimized code so that it cannot be
- // disconnected from its function during the rest of compilation.
- Code::ZoneHandle(unoptimized_code.raw());
TRACE_INLINING(THR_Print(" Success\n"));
PRINT_INLINING_TREE(NULL,
&call_data->caller, &function, call);
« no previous file with comments | « no previous file | runtime/vm/method_recognizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698