Lines Matching defs:buffer
5 #include "src/objects/js-array-buffer.h"
10 #include "src/objects/js-array-buffer-inl.h"
144 JSArrayBuffer buffer = JSArrayBuffer::cast(Object(raw_array_buffer));
145 CHECK(buffer.is_resizable());
146 CHECK(buffer.is_shared());
147 return buffer.GetBackingStore()->byte_length(std::memory_order_seq_cst);
224 Handle<JSArrayBuffer> array_buffer(JSArrayBuffer::cast(self->buffer()),
227 // Already is off heap, so return the existing buffer.
232 // The existing array buffer should be empty.
235 // Allocate a new backing store and attach it to the existing array buffer.
245 // Copy the elements into the backing store of the array buffer.
250 // Attach the backing store to the array buffer.
373 JSArrayBuffer buffer = array.buffer();
374 CHECK(buffer.is_resizable());
375 CHECK(buffer.is_shared());
377 buffer.GetBackingStore()->byte_length(std::memory_order_seq_cst);
387 if (byte_offset() > buffer().byte_length()) {
391 return (buffer().byte_length() - byte_offset()) / element_size();
394 buffer().GetBackingStore()->byte_length(std::memory_order_seq_cst)) {
398 return (buffer().GetBackingStore()->byte_length(std::memory_order_seq_cst) -
406 if (byte_offset() + array_length * element_size() > buffer().byte_length()) {