Lines Matching defs:array
5 #include "src/objects/js-array-buffer.h"
10 #include "src/objects/js-array-buffer-inl.h"
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.
254 // Clear the elements of the typed array.
371 JSTypedArray array = JSTypedArray::cast(Object(raw_array));
372 CHECK(array.is_length_tracking());
373 JSArrayBuffer buffer = array.buffer();
378 CHECK_GE(backing_byte_length, array.byte_offset());
379 auto element_byte_size = ElementsKindToByteSize(array.GetElementsKind());
380 return (backing_byte_length - array.byte_offset()) / element_byte_size;