| Index: src/isolate.cc
|
| diff --git a/src/isolate.cc b/src/isolate.cc
|
| index b5613a8ca50e6f975d3c57c3c25f499182ed61e8..261d77a3f634cd5ae4aee2378af24faf056a6896 100644
|
| --- a/src/isolate.cc
|
| +++ b/src/isolate.cc
|
| @@ -2960,6 +2960,15 @@ void Isolate::InvalidateArrayIteratorProtector() {
|
| DCHECK(!IsArrayIteratorLookupChainIntact());
|
| }
|
|
|
| +void Isolate::InvalidateArrayBufferNeuteringProtector() {
|
| + DCHECK(factory()->array_buffer_neutering_protector()->value()->IsSmi());
|
| + DCHECK(IsArrayBufferNeuteringIntact());
|
| + PropertyCell::SetValueWithInvalidation(
|
| + factory()->array_buffer_neutering_protector(),
|
| + handle(Smi::FromInt(kProtectorInvalid), this));
|
| + DCHECK(!IsArrayBufferNeuteringIntact());
|
| +}
|
| +
|
| bool Isolate::IsAnyInitialArrayPrototype(Handle<JSArray> array) {
|
| DisallowHeapAllocation no_gc;
|
| return IsInAnyContext(*array, Context::INITIAL_ARRAY_PROTOTYPE_INDEX);
|
|
|