Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index a5b6811cb50d7500ac2d2c31c63e557752d90a41..91a8766637d78ce5c4c03ed91439f943dd5de571 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -6483,6 +6483,14 @@ void JSArrayBuffer::set_was_neutered(bool value) { |
} |
+bool JSArrayBuffer::is_shared() { return IsShared::decode(bit_field()); } |
+ |
+ |
+void JSArrayBuffer::set_is_shared(bool value) { |
+ set_bit_field(IsShared::update(bit_field(), value)); |
+} |
+ |
+ |
Object* JSArrayBufferView::byte_offset() const { |
if (WasNeutered()) return Smi::FromInt(0); |
return Object::cast(READ_FIELD(this, kByteOffsetOffset)); |