![]() |
v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
|
#include <fixed-array.h>
Public Types | |
using | Shape = ShapeT |
using | Header = detail::ArrayHeaderBase<Super, true> |
Public Member Functions | |
ElementMemberT | get (int index) const |
void | set (int index, ElementMemberT value) |
int | AllocatedSize () const |
ElementMemberT * | begin () |
const ElementMemberT * | begin () const |
ElementMemberT * | end () |
const ElementMemberT * | end () const |
int | DataSize () const |
template<class IsolateT > | |
Handle< D > | Allocate (IsolateT *isolate, int length, std::optional< DisallowGarbageCollection > *no_gc_out, AllocationType allocation) |
Static Public Member Functions | |
static constexpr int | SizeFor (int length) |
static constexpr int | OffsetOfElementAt (int index) |
static Tagged< Derived > | FromAddressOfFirstElement (Address address) |
Static Public Attributes | |
static constexpr bool | kElementsAreMaybeObject = false |
static constexpr int | kElementSize = sizeof(ElementMemberT) |
static constexpr int | kMaxLength = kMaxFixedArrayCapacity |
static constexpr int | kMaxRegularLength |
Protected Member Functions | |
bool | IsInBounds (int index) const |
FLEXIBLE_ARRAY_MEMBER (ElementMemberT, values) | |
Static Protected Member Functions | |
template<class IsolateT > | |
static Handle< Derived > | Allocate (IsolateT *isolate, int length, std::optional< DisallowGarbageCollection > *no_gc_out, AllocationType allocation=AllocationType::kYoung) |
Private Types | |
using | ElementT = typename ShapeT::ElementT |
using | ElementMemberT |
Definition at line 386 of file fixed-array.h.
|
private |
Definition at line 393 of file fixed-array.h.
|
private |
Definition at line 389 of file fixed-array.h.
using v8::internal::PrimitiveArrayBase< Derived, ShapeT, Super >::Header = detail::ArrayHeaderBase<Super, true> |
Definition at line 401 of file fixed-array.h.
using v8::internal::PrimitiveArrayBase< Derived, ShapeT, Super >::Shape = ShapeT |
Definition at line 398 of file fixed-array.h.
Handle< D > v8::internal::PrimitiveArrayBase< Derived, ShapeT, Super >::Allocate | ( | IsolateT * | isolate, |
int | length, | ||
std::optional< DisallowGarbageCollection > * | no_gc_out, | ||
AllocationType | allocation ) |
|
staticprotected |
|
inline |
Definition at line 461 of file fixed-array-inl.h.
|
inline |
Definition at line 466 of file fixed-array-inl.h.
|
inline |
Definition at line 471 of file fixed-array-inl.h.
|
inline |
Definition at line 486 of file fixed-array-inl.h.
|
inline |
Definition at line 476 of file fixed-array-inl.h.
|
inline |
Definition at line 481 of file fixed-array-inl.h.
|
protected |
|
inline |
Definition at line 446 of file fixed-array-inl.h.
|
inlineprotected |
Definition at line 441 of file fixed-array-inl.h.
|
inlinestaticconstexpr |
|
inline |
Definition at line 452 of file fixed-array-inl.h.
|
inlinestaticconstexpr |
|
staticconstexpr |
Definition at line 399 of file fixed-array.h.
|
staticconstexpr |
Definition at line 400 of file fixed-array.h.
|
staticconstexpr |
Definition at line 431 of file fixed-array.h.
|
staticconstexpr |
Definition at line 435 of file fixed-array.h.