Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 6d7a5da1d31e69ce6a2e1b3a42cb7fc81c283b7d..4d26943a5647b112126c2fb5037503c5c6fabbba 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -6968,6 +6968,14 @@ void JSArrayBuffer::set_has_guard_region(bool value) { |
set_bit_field(HasGuardRegion::update(bit_field(), value)); |
} |
+bool JSArrayBuffer::is_wasm_buffer() { |
+ return IsWasmBuffer::decode(bit_field()); |
+} |
+ |
+void JSArrayBuffer::set_is_wasm_buffer(bool value) { |
+ set_bit_field(IsWasmBuffer::update(bit_field(), value)); |
+} |
+ |
Object* JSArrayBufferView::byte_offset() const { |
if (WasNeutered()) return Smi::kZero; |
return Object::cast(READ_FIELD(this, kByteOffsetOffset)); |