| Index: runtime/vm/object.cc
|
| diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
|
| index a8ccce53d8d8ff0a333b3058698b40d2154fd827..0e8d809feafdc30f197223096863cc1743504244 100644
|
| --- a/runtime/vm/object.cc
|
| +++ b/runtime/vm/object.cc
|
| @@ -2753,8 +2753,6 @@ class CHACodeArray : public WeakCodeReferences {
|
| }
|
| }
|
|
|
| - virtual void IncrementInvalidationGen() {}
|
| -
|
| private:
|
| const Class& cls_;
|
| DISALLOW_COPY_AND_ASSIGN(CHACodeArray);
|
| @@ -7684,10 +7682,6 @@ class FieldDependentArray : public WeakCodeReferences {
|
| }
|
| }
|
|
|
| - virtual void IncrementInvalidationGen() {
|
| - Isolate::Current()->IncrFieldInvalidationGen();
|
| - }
|
| -
|
| private:
|
| const Field& field_;
|
| DISALLOW_COPY_AND_ASSIGN(FieldDependentArray);
|
| @@ -7706,14 +7700,19 @@ void Field::RegisterDependentCode(const Code& code) const {
|
| void Field::DeoptimizeDependentCode() const {
|
| ASSERT(Thread::Current()->IsMutatorThread());
|
| ASSERT(IsOriginal());
|
| - if (FLAG_background_compilation) {
|
| - Isolate::Current()->AddDisablingField(*this);
|
| - }
|
| FieldDependentArray a(*this);
|
| a.DisableCode();
|
| }
|
|
|
|
|
| +bool Field::IsConsistentWith(const Field& other) const {
|
| + return (raw_ptr()->guarded_cid_ == other.raw_ptr()->guarded_cid_) &&
|
| + (raw_ptr()->is_nullable_ == other.raw_ptr()->is_nullable_) &&
|
| + (raw_ptr()->guarded_list_length_ ==
|
| + other.raw_ptr()->guarded_list_length_);
|
| +}
|
| +
|
| +
|
| bool Field::IsUninitialized() const {
|
| const Instance& value = Instance::Handle(raw_ptr()->value_.static_value_);
|
| ASSERT(value.raw() != Object::transition_sentinel().raw());
|
| @@ -10974,8 +10973,6 @@ class PrefixDependentArray : public WeakCodeReferences {
|
| }
|
| }
|
|
|
| - virtual void IncrementInvalidationGen() {}
|
| -
|
| private:
|
| const LibraryPrefix& prefix_;
|
| DISALLOW_COPY_AND_ASSIGN(PrefixDependentArray);
|
|
|