| 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();
|
| }
|
|
|