5#ifndef INCLUDE_V8_TYPED_ARRAY_H_
6#define INCLUDE_V8_TYPED_ARRAY_H_
14class SharedArrayBuffer;
25 static constexpr size_t kMaxLength =
26 internal::kApiSystemPointerSize == 4
27 ? internal::kSmiMaxValue
28 :
static_cast<size_t>(uint64_t{1} << 32);
37#ifdef V8_ENABLE_CHECKS
45 static void CheckCast(
Value* obj);
54 size_t byte_offset,
size_t length);
56 size_t byte_offset,
size_t length);
58#ifdef V8_ENABLE_CHECKS
66 static void CheckCast(
Value* obj);
75 size_t byte_offset,
size_t length);
80#ifdef V8_ENABLE_CHECKS
88 static void CheckCast(
Value* obj);
97 size_t byte_offset,
size_t length);
99 size_t byte_offset,
size_t length);
101#ifdef V8_ENABLE_CHECKS
109 static void CheckCast(
Value* obj);
118 size_t byte_offset,
size_t length);
120 size_t byte_offset,
size_t length);
122#ifdef V8_ENABLE_CHECKS
130 static void CheckCast(
Value* obj);
139 size_t byte_offset,
size_t length);
141 size_t byte_offset,
size_t length);
143#ifdef V8_ENABLE_CHECKS
151 static void CheckCast(
Value* obj);
160 size_t byte_offset,
size_t length);
162 size_t byte_offset,
size_t length);
164#ifdef V8_ENABLE_CHECKS
172 static void CheckCast(
Value* obj);
181 size_t byte_offset,
size_t length);
183 size_t byte_offset,
size_t length);
185#ifdef V8_ENABLE_CHECKS
193 static void CheckCast(
Value* obj);
202 size_t byte_offset,
size_t length);
204 size_t byte_offset,
size_t length);
206#ifdef V8_ENABLE_CHECKS
214 static void CheckCast(
Value* obj);
223 size_t byte_offset,
size_t length);
225 size_t byte_offset,
size_t length);
227#ifdef V8_ENABLE_CHECKS
235 static void CheckCast(
Value* obj);
244 size_t byte_offset,
size_t length);
246 size_t byte_offset,
size_t length);
248#ifdef V8_ENABLE_CHECKS
256 static void CheckCast(
Value* obj);
265 size_t byte_offset,
size_t length);
267 size_t byte_offset,
size_t length);
269#ifdef V8_ENABLE_CHECKS
277 static void CheckCast(
Value* obj);
static Local< BigInt64Array > New(Local< ArrayBuffer > array_buffer, size_t byte_offset, size_t length)
static V8_INLINE BigInt64Array * Cast(Value *value)
static Local< BigInt64Array > New(Local< SharedArrayBuffer > shared_array_buffer, size_t byte_offset, size_t length)
static V8_INLINE BigUint64Array * Cast(Value *value)
static Local< BigUint64Array > New(Local< SharedArrayBuffer > shared_array_buffer, size_t byte_offset, size_t length)
static Local< BigUint64Array > New(Local< ArrayBuffer > array_buffer, size_t byte_offset, size_t length)
static Local< Float32Array > New(Local< ArrayBuffer > array_buffer, size_t byte_offset, size_t length)
static Local< Float32Array > New(Local< SharedArrayBuffer > shared_array_buffer, size_t byte_offset, size_t length)
static V8_INLINE Float32Array * Cast(Value *value)
static V8_INLINE Float64Array * Cast(Value *value)
static Local< Float64Array > New(Local< SharedArrayBuffer > shared_array_buffer, size_t byte_offset, size_t length)
static Local< Float64Array > New(Local< ArrayBuffer > array_buffer, size_t byte_offset, size_t length)
static Local< Int16Array > New(Local< ArrayBuffer > array_buffer, size_t byte_offset, size_t length)
static Local< Int16Array > New(Local< SharedArrayBuffer > shared_array_buffer, size_t byte_offset, size_t length)
static V8_INLINE Int16Array * Cast(Value *value)
static V8_INLINE Int32Array * Cast(Value *value)
static Local< Int32Array > New(Local< ArrayBuffer > array_buffer, size_t byte_offset, size_t length)
static Local< Int32Array > New(Local< SharedArrayBuffer > shared_array_buffer, size_t byte_offset, size_t length)
static Local< Int8Array > New(Local< ArrayBuffer > array_buffer, size_t byte_offset, size_t length)
static V8_INLINE Int8Array * Cast(Value *value)
static Local< Int8Array > New(Local< SharedArrayBuffer > shared_array_buffer, size_t byte_offset, size_t length)
static V8_INLINE TypedArray * Cast(Value *value)
static Local< Uint16Array > New(Local< ArrayBuffer > array_buffer, size_t byte_offset, size_t length)
static V8_INLINE Uint16Array * Cast(Value *value)
static Local< Uint16Array > New(Local< SharedArrayBuffer > shared_array_buffer, size_t byte_offset, size_t length)
static V8_INLINE Uint32Array * Cast(Value *value)
static Local< Uint32Array > New(Local< ArrayBuffer > array_buffer, size_t byte_offset, size_t length)
static Local< Uint32Array > New(Local< SharedArrayBuffer > shared_array_buffer, size_t byte_offset, size_t length)
static V8_INLINE Uint8Array * Cast(Value *value)
static Local< Uint8Array > New(Local< ArrayBuffer > array_buffer, size_t byte_offset, size_t length)
static Local< Uint8Array > New(Local< SharedArrayBuffer > shared_array_buffer, size_t byte_offset, size_t length)
static Local< Uint8ClampedArray > New(Local< SharedArrayBuffer > shared_array_buffer, size_t byte_offset, size_t length)
static Local< Uint8ClampedArray > New(Local< ArrayBuffer > array_buffer, size_t byte_offset, size_t length)
static V8_INLINE Uint8ClampedArray * Cast(Value *value)