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

Unified Diff: runtime/vm/block_scheduler.cc

Issue 1965823002: Initial isolate reload support (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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
Index: runtime/vm/block_scheduler.cc
diff --git a/runtime/vm/block_scheduler.cc b/runtime/vm/block_scheduler.cc
index 9c00cfbe81879c7b706f150c351fe2eecffe370f..d79255145d7000deb781320d776226a29604c9e6 100644
--- a/runtime/vm/block_scheduler.cc
+++ b/runtime/vm/block_scheduler.cc
@@ -64,7 +64,10 @@ void BlockScheduler::AssignEdgeWeights() const {
Compiler::AbortBackgroundCompilation(Thread::kNoDeoptId,
"BlockScheduler: ICData array cleared");
}
- ASSERT(!ic_data_array.IsNull());
+ if (ic_data_array.IsNull()) {
+ ASSERT(Isolate::Current()->HasAttemptedReload());
+ return;
+ }
Array& edge_counters = Array::Handle();
edge_counters ^= ic_data_array.At(0);

Powered by Google App Engine
This is Rietveld 408576698