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

Unified Diff: runtime/vm/flow_graph_inliner.cc

Issue 333403002: Cleanup: use a ZoneGrowableArray instead of Array for ICData map. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/flow_graph_builder.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 37378)
+++ runtime/vm/flow_graph_inliner.cc (working copy)
@@ -639,18 +639,15 @@
}
// Load IC data for the callee.
- Array& ic_data_array = Array::Handle();
+ ZoneGrowableArray<const ICData*>* ic_data_array =
+ new(isolate()) ZoneGrowableArray<const ICData*>();
+ function.RestoreICDataMap(ic_data_array);
- // IsInlineable above checked HasCode. Creating a Handle for the code
- // should have kept GC from detaching, but let's assert just to make sure.
- ASSERT(function.HasCode());
- ic_data_array = unoptimized_code.ExtractTypeFeedbackArray();
-
// Build the callee graph.
InlineExitCollector* exit_collector =
new(isolate()) InlineExitCollector(caller_graph_, call);
FlowGraphBuilder builder(parsed_function,
- ic_data_array,
+ *ic_data_array,
exit_collector,
Isolate::kNoDeoptId,
true);
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | runtime/vm/intermediate_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698