| Index: src/objects-inl.h
|
| diff --git a/src/objects-inl.h b/src/objects-inl.h
|
| index f8d94bc79116b7ef1b1e2317d81513eeeb805e71..0aecc55c697fd0884e78f9f93a3fef9516c87fb2 100644
|
| --- a/src/objects-inl.h
|
| +++ b/src/objects-inl.h
|
| @@ -6968,6 +6968,7 @@ bool JSArrayBuffer::is_external() { return IsExternal::decode(bit_field()); }
|
|
|
|
|
| void JSArrayBuffer::set_is_external(bool value) {
|
| + DCHECK(!value || !has_guard_region());
|
| set_bit_field(IsExternal::update(bit_field(), value));
|
| }
|
|
|
| @@ -6997,6 +6998,13 @@ void JSArrayBuffer::set_is_shared(bool value) {
|
| set_bit_field(IsShared::update(bit_field(), value));
|
| }
|
|
|
| +bool JSArrayBuffer::has_guard_region() {
|
| + return HasGuardRegion::decode(bit_field());
|
| +}
|
| +
|
| +void JSArrayBuffer::set_has_guard_region(bool value) {
|
| + set_bit_field(HasGuardRegion::update(bit_field(), value));
|
| +}
|
|
|
| Object* JSArrayBufferView::byte_offset() const {
|
| if (WasNeutered()) return Smi::kZero;
|
|
|