webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
JSC::ArrayStorage Struct Reference

#include <ArrayStorage.h>

Public Member Functions

 WTF_MAKE_NONCOPYABLE (ArrayStorage)
 
Butterflybutterfly ()
 
IndexingHeaderindexingHeader ()
 
const IndexingHeaderindexingHeader () const
 
unsigned length () const
 
void setLength (unsigned length)
 
unsigned vectorLength () const
 
void setVectorLength (unsigned length)
 
ALWAYS_INLINE void copyHeaderFromDuringGC (const ArrayStorage &other)
 
bool hasHoles () const
 
bool inSparseMode ()
 
ContiguousJSValues vector ()
 
size_t totalSize (size_t propertyCapacity) const
 
size_t totalSize (Structure *structure) const
 
unsigned availableVectorLength (size_t propertyCapacity, unsigned vectorLength)
 
unsigned availableVectorLength (Structure *structure, unsigned vectorLength)
 
unsigned optimalVectorLength (size_t propertyCapacity, unsigned vectorLength)
 
unsigned optimalVectorLength (Structure *structure, unsigned vectorLength)
 
 WTF_MAKE_NONCOPYABLE (ArrayStorage)
 
Butterflybutterfly ()
 
IndexingHeaderindexingHeader ()
 
const IndexingHeaderindexingHeader () const
 
unsigned length () const
 
void setLength (unsigned length)
 
unsigned vectorLength () const
 
void setVectorLength (unsigned length)
 
ALWAYS_INLINE void copyHeaderFromDuringGC (const ArrayStorage &other)
 
bool hasHoles () const
 
bool inSparseMode ()
 
ContiguousJSValues vector ()
 
size_t totalSize (size_t propertyCapacity) const
 
size_t totalSize (Structure *structure) const
 
unsigned availableVectorLength (size_t propertyCapacity, unsigned vectorLength)
 
unsigned availableVectorLength (Structure *structure, unsigned vectorLength)
 
unsigned optimalVectorLength (size_t propertyCapacity, unsigned vectorLength)
 
unsigned optimalVectorLength (Structure *structure, unsigned vectorLength)
 

Static Public Member Functions

static ArrayStoragefrom (Butterfly *butterfly)
 
static ArrayStoragefrom (IndexingHeader *indexingHeader)
 
static ptrdiff_t lengthOffset ()
 
static ptrdiff_t vectorLengthOffset ()
 
static ptrdiff_t numValuesInVectorOffset ()
 
static ptrdiff_t vectorOffset ()
 
static ptrdiff_t indexBiasOffset ()
 
static ptrdiff_t sparseMapOffset ()
 
static size_t sizeFor (unsigned vectorLength)
 
static size_t totalSizeFor (unsigned indexBias, size_t propertyCapacity, unsigned vectorLength)
 
static unsigned availableVectorLength (unsigned indexBias, size_t propertyCapacity, unsigned vectorLength)
 
static unsigned availableVectorLength (unsigned indexBias, Structure *structure, unsigned vectorLength)
 
static unsigned optimalVectorLength (unsigned indexBias, size_t propertyCapacity, unsigned vectorLength)
 
static unsigned optimalVectorLength (unsigned indexBias, Structure *structure, unsigned vectorLength)
 
static ArrayStoragefrom (Butterfly *butterfly)
 
static ArrayStoragefrom (IndexingHeader *indexingHeader)
 
static ptrdiff_t lengthOffset ()
 
static ptrdiff_t vectorLengthOffset ()
 
static ptrdiff_t numValuesInVectorOffset ()
 
static ptrdiff_t vectorOffset ()
 
static ptrdiff_t indexBiasOffset ()
 
static ptrdiff_t sparseMapOffset ()
 
static size_t sizeFor (unsigned vectorLength)
 
static size_t totalSizeFor (unsigned indexBias, size_t propertyCapacity, unsigned vectorLength)
 
static unsigned availableVectorLength (unsigned indexBias, size_t propertyCapacity, unsigned vectorLength)
 
static unsigned availableVectorLength (unsigned indexBias, Structure *structure, unsigned vectorLength)
 
static unsigned optimalVectorLength (unsigned indexBias, size_t propertyCapacity, unsigned vectorLength)
 
static unsigned optimalVectorLength (unsigned indexBias, Structure *structure, unsigned vectorLength)
 

Public Attributes

WriteBarrier< SparseArrayValueMapm_sparseMap
 
unsigned m_indexBias
 
unsigned m_numValuesInVector
 
WriteBarrier< Unknownm_vector [1]
 

Member Function Documentation

◆ availableVectorLength() [1/8]

static unsigned JSC::ArrayStorage::availableVectorLength ( unsigned  indexBias,
size_t  propertyCapacity,
unsigned  vectorLength 
)
inlinestatic

◆ availableVectorLength() [2/8]

static unsigned JSC::ArrayStorage::availableVectorLength ( unsigned  indexBias,
size_t  propertyCapacity,
unsigned  vectorLength 
)
inlinestatic

◆ availableVectorLength() [3/8]

static unsigned JSC::ArrayStorage::availableVectorLength ( unsigned  indexBias,
Structure structure,
unsigned  vectorLength 
)
inlinestatic

◆ availableVectorLength() [4/8]

static unsigned JSC::ArrayStorage::availableVectorLength ( unsigned  indexBias,
Structure structure,
unsigned  vectorLength 
)
inlinestatic

◆ availableVectorLength() [5/8]

unsigned JSC::ArrayStorage::availableVectorLength ( size_t  propertyCapacity,
unsigned  vectorLength 
)
inline

◆ availableVectorLength() [6/8]

unsigned JSC::ArrayStorage::availableVectorLength ( size_t  propertyCapacity,
unsigned  vectorLength 
)
inline

◆ availableVectorLength() [7/8]

unsigned JSC::ArrayStorage::availableVectorLength ( Structure structure,
unsigned  vectorLength 
)
inline

◆ availableVectorLength() [8/8]

unsigned JSC::ArrayStorage::availableVectorLength ( Structure structure,
unsigned  vectorLength 
)
inline

◆ butterfly() [1/2]

Butterfly* JSC::ArrayStorage::butterfly ( )
inline

◆ butterfly() [2/2]

Butterfly* JSC::ArrayStorage::butterfly ( )
inline

◆ copyHeaderFromDuringGC() [1/2]

ALWAYS_INLINE void JSC::ArrayStorage::copyHeaderFromDuringGC ( const ArrayStorage other)
inline

◆ copyHeaderFromDuringGC() [2/2]

ALWAYS_INLINE void JSC::ArrayStorage::copyHeaderFromDuringGC ( const ArrayStorage other)
inline

◆ from() [1/4]

static ArrayStorage* JSC::ArrayStorage::from ( Butterfly butterfly)
inlinestatic

◆ from() [2/4]

static ArrayStorage* JSC::ArrayStorage::from ( Butterfly butterfly)
inlinestatic

◆ from() [3/4]

static ArrayStorage* JSC::ArrayStorage::from ( IndexingHeader indexingHeader)
inlinestatic

◆ from() [4/4]

static ArrayStorage* JSC::ArrayStorage::from ( IndexingHeader indexingHeader)
inlinestatic

◆ hasHoles() [1/2]

bool JSC::ArrayStorage::hasHoles ( ) const
inline

◆ hasHoles() [2/2]

bool JSC::ArrayStorage::hasHoles ( ) const
inline

◆ indexBiasOffset() [1/2]

static ptrdiff_t JSC::ArrayStorage::indexBiasOffset ( )
inlinestatic

◆ indexBiasOffset() [2/2]

static ptrdiff_t JSC::ArrayStorage::indexBiasOffset ( )
inlinestatic

◆ indexingHeader() [1/4]

IndexingHeader* JSC::ArrayStorage::indexingHeader ( )
inline

◆ indexingHeader() [2/4]

IndexingHeader* JSC::ArrayStorage::indexingHeader ( )
inline

◆ indexingHeader() [3/4]

const IndexingHeader* JSC::ArrayStorage::indexingHeader ( ) const
inline

◆ indexingHeader() [4/4]

const IndexingHeader* JSC::ArrayStorage::indexingHeader ( ) const
inline

◆ inSparseMode() [1/2]

bool JSC::ArrayStorage::inSparseMode ( )
inline

◆ inSparseMode() [2/2]

bool JSC::ArrayStorage::inSparseMode ( )
inline

◆ length() [1/2]

unsigned JSC::ArrayStorage::length ( void  ) const
inline

◆ length() [2/2]

unsigned JSC::ArrayStorage::length ( ) const
inline

◆ lengthOffset() [1/2]

static ptrdiff_t JSC::ArrayStorage::lengthOffset ( )
inlinestatic

◆ lengthOffset() [2/2]

static ptrdiff_t JSC::ArrayStorage::lengthOffset ( )
inlinestatic

◆ numValuesInVectorOffset() [1/2]

static ptrdiff_t JSC::ArrayStorage::numValuesInVectorOffset ( )
inlinestatic

◆ numValuesInVectorOffset() [2/2]

static ptrdiff_t JSC::ArrayStorage::numValuesInVectorOffset ( )
inlinestatic

◆ optimalVectorLength() [1/8]

static unsigned JSC::ArrayStorage::optimalVectorLength ( unsigned  indexBias,
size_t  propertyCapacity,
unsigned  vectorLength 
)
inlinestatic

◆ optimalVectorLength() [2/8]

static unsigned JSC::ArrayStorage::optimalVectorLength ( unsigned  indexBias,
size_t  propertyCapacity,
unsigned  vectorLength 
)
inlinestatic

◆ optimalVectorLength() [3/8]

static unsigned JSC::ArrayStorage::optimalVectorLength ( unsigned  indexBias,
Structure structure,
unsigned  vectorLength 
)
inlinestatic

◆ optimalVectorLength() [4/8]

static unsigned JSC::ArrayStorage::optimalVectorLength ( unsigned  indexBias,
Structure structure,
unsigned  vectorLength 
)
inlinestatic

◆ optimalVectorLength() [5/8]

unsigned JSC::ArrayStorage::optimalVectorLength ( size_t  propertyCapacity,
unsigned  vectorLength 
)
inline

◆ optimalVectorLength() [6/8]

unsigned JSC::ArrayStorage::optimalVectorLength ( size_t  propertyCapacity,
unsigned  vectorLength 
)
inline

◆ optimalVectorLength() [7/8]

unsigned JSC::ArrayStorage::optimalVectorLength ( Structure structure,
unsigned  vectorLength 
)
inline

◆ optimalVectorLength() [8/8]

unsigned JSC::ArrayStorage::optimalVectorLength ( Structure structure,
unsigned  vectorLength 
)
inline

◆ setLength() [1/2]

void JSC::ArrayStorage::setLength ( unsigned  length)
inline

◆ setLength() [2/2]

void JSC::ArrayStorage::setLength ( unsigned  length)
inline

◆ setVectorLength() [1/2]

void JSC::ArrayStorage::setVectorLength ( unsigned  length)
inline

◆ setVectorLength() [2/2]

void JSC::ArrayStorage::setVectorLength ( unsigned  length)
inline

◆ sizeFor() [1/2]

static size_t JSC::ArrayStorage::sizeFor ( unsigned  vectorLength)
inlinestatic

◆ sizeFor() [2/2]

static size_t JSC::ArrayStorage::sizeFor ( unsigned  vectorLength)
inlinestatic

◆ sparseMapOffset() [1/2]

static ptrdiff_t JSC::ArrayStorage::sparseMapOffset ( )
inlinestatic

◆ sparseMapOffset() [2/2]

static ptrdiff_t JSC::ArrayStorage::sparseMapOffset ( )
inlinestatic

◆ totalSize() [1/4]

size_t JSC::ArrayStorage::totalSize ( size_t  propertyCapacity) const
inline

◆ totalSize() [2/4]

size_t JSC::ArrayStorage::totalSize ( size_t  propertyCapacity) const
inline

◆ totalSize() [3/4]

size_t JSC::ArrayStorage::totalSize ( Structure structure) const
inline

◆ totalSize() [4/4]

size_t JSC::ArrayStorage::totalSize ( Structure structure) const
inline

◆ totalSizeFor() [1/2]

static size_t JSC::ArrayStorage::totalSizeFor ( unsigned  indexBias,
size_t  propertyCapacity,
unsigned  vectorLength 
)
inlinestatic

◆ totalSizeFor() [2/2]

static size_t JSC::ArrayStorage::totalSizeFor ( unsigned  indexBias,
size_t  propertyCapacity,
unsigned  vectorLength 
)
inlinestatic

◆ vector() [1/2]

ContiguousJSValues JSC::ArrayStorage::vector ( )
inline

◆ vector() [2/2]

ContiguousJSValues JSC::ArrayStorage::vector ( )
inline

◆ vectorLength() [1/2]

unsigned JSC::ArrayStorage::vectorLength ( ) const
inline

◆ vectorLength() [2/2]

unsigned JSC::ArrayStorage::vectorLength ( ) const
inline

◆ vectorLengthOffset() [1/2]

static ptrdiff_t JSC::ArrayStorage::vectorLengthOffset ( )
inlinestatic

◆ vectorLengthOffset() [2/2]

static ptrdiff_t JSC::ArrayStorage::vectorLengthOffset ( )
inlinestatic

◆ vectorOffset() [1/2]

static ptrdiff_t JSC::ArrayStorage::vectorOffset ( )
inlinestatic

◆ vectorOffset() [2/2]

static ptrdiff_t JSC::ArrayStorage::vectorOffset ( )
inlinestatic

◆ WTF_MAKE_NONCOPYABLE() [1/2]

JSC::ArrayStorage::WTF_MAKE_NONCOPYABLE ( ArrayStorage  )

◆ WTF_MAKE_NONCOPYABLE() [2/2]

JSC::ArrayStorage::WTF_MAKE_NONCOPYABLE ( ArrayStorage  )

Member Data Documentation

◆ m_indexBias

unsigned JSC::ArrayStorage::m_indexBias

◆ m_numValuesInVector

unsigned JSC::ArrayStorage::m_numValuesInVector

◆ m_sparseMap

WriteBarrier< SparseArrayValueMap > JSC::ArrayStorage::m_sparseMap

◆ m_vector

WriteBarrier< Unknown > JSC::ArrayStorage::m_vector

The documentation for this struct was generated from the following file: