diff options
Diffstat (limited to 'deps/v8/src/execution/isolate-inl.h')
-rw-r--r-- | deps/v8/src/execution/isolate-inl.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/deps/v8/src/execution/isolate-inl.h b/deps/v8/src/execution/isolate-inl.h index fcbbed139c..7e037fb410 100644 --- a/deps/v8/src/execution/isolate-inl.h +++ b/deps/v8/src/execution/isolate-inl.h @@ -145,9 +145,10 @@ bool Isolate::IsTypedArraySpeciesLookupChainIntact() { Smi::ToInt(species_cell.value()) == kProtectorValid; } -bool Isolate::IsRegExpSpeciesLookupChainIntact() { - PropertyCell species_cell = - PropertyCell::cast(root(RootIndex::kRegExpSpeciesProtector)); +bool Isolate::IsRegExpSpeciesLookupChainIntact( + Handle<NativeContext> native_context) { + DCHECK_EQ(*native_context, this->raw_native_context()); + PropertyCell species_cell = native_context->regexp_species_protector(); return species_cell.value().IsSmi() && Smi::ToInt(species_cell.value()) == kProtectorValid; } |