Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index d04839ce5cf21bd2b3a8d1cc4e4ac90c04296131..9d3511327e63dd8592c2a33f296e6cc0308d748b 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -2652,6 +2652,15 @@ void Isolate::UpdateArrayProtectorOnSetElement(Handle<JSObject> object) { |
handle(Smi::FromInt(kArrayProtectorInvalid), this)); |
} |
+void Isolate::InvalidateHasInstanceProtector() { |
+ DCHECK(factory()->has_instance_protector()->value()->IsSmi()); |
+ DCHECK(IsHasInstanceLookupChainIntact()); |
+ PropertyCell::SetValueWithInvalidation( |
+ factory()->has_instance_protector(), |
+ handle(Smi::FromInt(kArrayProtectorInvalid), this)); |
+ DCHECK(!IsHasInstanceLookupChainIntact()); |
+} |
+ |
void Isolate::InvalidateIsConcatSpreadableProtector() { |
DCHECK(factory()->is_concat_spreadable_protector()->value()->IsSmi()); |
DCHECK(IsIsConcatSpreadableLookupChainIntact()); |