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

Unified Diff: runtime/vm/object.cc

Issue 1877973002: Invalidate background compilation only if relevant fields were invalidated. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: sync Created 4 years, 8 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
« runtime/vm/compiler.cc ('K') | « runtime/vm/isolate.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index a02ce2761597c98a681f788f86efb920066026ab..e3390b33d01e5d92a187b372c29f2167a5e23274 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -7745,8 +7745,11 @@ void Field::RegisterDependentCode(const Code& code) const {
void Field::DeoptimizeDependentCode() const {
- ASSERT(IsOriginal());
ASSERT(Thread::Current()->IsMutatorThread());
+ ASSERT(IsOriginal());
+ if (FLAG_background_compilation) {
+ Isolate::Current()->AddDisablingField(*this);
+ }
FieldDependentArray a(*this);
a.DisableCode();
}
« runtime/vm/compiler.cc ('K') | « runtime/vm/isolate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698