| Index: src/isolate.cc
|
| diff --git a/src/isolate.cc b/src/isolate.cc
|
| index 8eb8b71b39347918cf32ef3c7127e410a3340bd4..8116f14d30260af9d630e8841d3c1e738bab5a5f 100644
|
| --- a/src/isolate.cc
|
| +++ b/src/isolate.cc
|
| @@ -2512,6 +2512,7 @@ bool Isolate::IsFastArrayConstructorPrototypeChainIntact() {
|
| }
|
|
|
| bool Isolate::IsArraySpeciesLookupChainIntact() {
|
| + if (!FLAG_harmony_species) return true;
|
| // Note: It would be nice to have debug checks to make sure that the
|
| // species protector is accurate, but this would be hard to do for most of
|
| // what the protector stands for:
|
| @@ -2530,6 +2531,7 @@ bool Isolate::IsArraySpeciesLookupChainIntact() {
|
| }
|
|
|
| void Isolate::InvalidateArraySpeciesProtector() {
|
| + if (!FLAG_harmony_species) return;
|
| DCHECK(factory()->species_protector()->value()->IsSmi());
|
| DCHECK(IsArraySpeciesLookupChainIntact());
|
| PropertyCell::SetValueWithInvalidation(
|
|
|