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

Unified Diff: runtime/vm/flow_graph_compiler.h

Issue 1343383003: VM: Store edge counters in one per-function array. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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
diff --git a/runtime/vm/flow_graph_compiler.h b/runtime/vm/flow_graph_compiler.h
index 783c851bb4cf63ee52c11a3f56041d9c8bf202a4..3151009d9b2853b204811f222ed7276ca05177c2 100644
--- a/runtime/vm/flow_graph_compiler.h
+++ b/runtime/vm/flow_graph_compiler.h
@@ -387,11 +387,7 @@ class FlowGraphCompiler : public ValueObject {
bool NeedsEdgeCounter(TargetEntryInstr* block);
- void EmitEdgeCounter();
-
-#if !defined(TARGET_ARCH_ARM64) && !defined(TARGET_ARCH_MIPS)
- static int32_t EdgeCounterIncrementSizeInBytes();
-#endif // !TARGET_ARCH_ARM64 && !TARGET_ARCH_MIPS
+ void EmitEdgeCounter(intptr_t edge_id);
void EmitOptimizedInstanceCall(const StubEntry& stub_entry,
const ICData& ic_data,
@@ -537,6 +533,10 @@ class FlowGraphCompiler : public ValueObject {
return inlined_code_intervals_;
}
+ RawArray* edge_counters_array() const {
+ return edge_counters_array_.raw();
+ }
+
RawArray* InliningIdToFunction() const;
RawArray* CallerInliningIdMap() const;
@@ -731,6 +731,8 @@ class FlowGraphCompiler : public ValueObject {
ZoneGrowableArray<const ICData*>* deopt_id_to_ic_data_;
+ Array& edge_counters_array_;
+
Array& inlined_code_intervals_;
const GrowableArray<const Function*>& inline_id_to_function_;
const GrowableArray<intptr_t>& caller_inline_id_;
« 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