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

Unified Diff: runtime/vm/block_scheduler.cc

Issue 1410733006: More general CHA-based inlining and devirtualization for precompiled code. (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/cha.cc » ('j') | runtime/vm/flow_graph_compiler.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/block_scheduler.cc
diff --git a/runtime/vm/block_scheduler.cc b/runtime/vm/block_scheduler.cc
index a84a5d96300b070fb4959b719a97e53a7455fe1e..38dfabb1cb0e4c38c9b995012b99a41ae0df4eb3 100644
--- a/runtime/vm/block_scheduler.cc
+++ b/runtime/vm/block_scheduler.cc
@@ -60,6 +60,10 @@ void BlockScheduler::AssignEdgeWeights() const {
const Array& ic_data_array = Array::Handle(flow_graph()->zone(),
flow_graph()->parsed_function().function().ic_data_array());
+ if (ic_data_array.IsNull()) {
+ // Function was not compiled yet. No edge counters available.
+ return;
srdjan 2015/10/21 17:37:46 When can this happen? In precompilation FLAG_emit_
Florian Schneider 2015/10/22 13:59:25 Yes, not needed with precompilation. Left over che
+ }
Array& edge_counters = Array::Handle();
edge_counters ^= ic_data_array.At(0);
« no previous file with comments | « no previous file | runtime/vm/cha.cc » ('j') | runtime/vm/flow_graph_compiler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698