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

Unified Diff: runtime/vm/flow_graph_compiler.h

Issue 335173002: Save ICData of unoptimized code in the function, thus preserving it across repated unoptimized comp… (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/compiler.cc ('k') | runtime/vm/flow_graph_compiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_compiler.h
===================================================================
--- runtime/vm/flow_graph_compiler.h (revision 37375)
+++ runtime/vm/flow_graph_compiler.h (working copy)
@@ -457,6 +457,21 @@
static void SortICDataByCount(const ICData& ic_data,
GrowableArray<CidTarget>* sorted);
+ // Use in unoptimized compilation to preserve/reuse ICData.
+ const ICData* GetOrAddInstanceCallICData(intptr_t deopt_id,
+ const String& target_name,
+ const Array& arguments_descriptor,
+ intptr_t num_args_tested);
+
+ const ICData* GetOrAddStaticCallICData(intptr_t deopt_id,
+ const Function& target,
+ const Array& arguments_descriptor,
+ intptr_t num_args_tested);
+
+ const ZoneGrowableArray<const ICData*>& deopt_id_to_ic_data() const {
+ return *deopt_id_to_ic_data_;
+ }
+
private:
friend class CheckStackOverflowSlowPath; // For pending_deoptimization_env_.
@@ -603,6 +618,8 @@
intptr_t patch_code_pc_offset_;
intptr_t lazy_deopt_pc_offset_;
+ ZoneGrowableArray<const ICData*>* deopt_id_to_ic_data_;
+
DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler);
};
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/flow_graph_compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698