V8 Project
v8::ArrayBuffer::Contents Class Reference

The contents of an |ArrayBuffer|. More...

#include <v8.h>

+ Collaboration diagram for v8::ArrayBuffer::Contents:

Public Member Functions

 Contents ()
 
void * Data () const
 
size_t ByteLength () const
 

Private Attributes

void * data_
 
size_t byte_length_
 

Friends

class ArrayBuffer
 

Detailed Description

The contents of an |ArrayBuffer|.

Externalization of |ArrayBuffer| returns an instance of this class, populated, with a pointer to data and byte length.

The Data pointer of ArrayBuffer::Contents is always allocated with Allocator::Allocate that is set with V8::SetArrayBufferAllocator.

This API is experimental and may change significantly.

Definition at line 2891 of file v8.h.

Constructor & Destructor Documentation

◆ Contents()

v8::ArrayBuffer::Contents::Contents ( )
inline

Definition at line 2893 of file v8.h.

2893 : data_(NULL), byte_length_(0) {}
enable harmony numeric enable harmony object literal extensions Optimize object Array DOM strings and string trace pretenuring decisions of HAllocate instructions Enables optimizations which favor memory size over execution speed maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining trace the tracking of allocation sites deoptimize every n garbage collections perform array bounds checks elimination analyze liveness of environment slots and zap dead values flushes the cache of optimized code for closures on every GC allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes enable context specialization in TurboFan execution budget before interrupt is triggered max percentage of megamorphic generic ICs to allow optimization enable use of SAHF instruction if enable use of VFP3 instructions if available enable use of NEON instructions if enable use of SDIV and UDIV instructions if enable use of MLS instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of d16 d31 registers on ARM this requires VFP3 force all emitted branches to be in long enable alignment of csp to bytes on platforms which prefer the register to always be NULL

Member Function Documentation

◆ ByteLength()

size_t v8::ArrayBuffer::Contents::ByteLength ( ) const
inline

Definition at line 2896 of file v8.h.

2896 { return byte_length_; }

◆ Data()

void* v8::ArrayBuffer::Contents::Data ( ) const
inline

Definition at line 2895 of file v8.h.

2895 { return data_; }

Friends And Related Function Documentation

◆ ArrayBuffer

friend class ArrayBuffer
friend

Definition at line 2902 of file v8.h.

Member Data Documentation

◆ byte_length_

size_t v8::ArrayBuffer::Contents::byte_length_
private

Definition at line 2900 of file v8.h.

Referenced by v8::ArrayBuffer::Externalize().

◆ data_

void* v8::ArrayBuffer::Contents::data_
private

Definition at line 2899 of file v8.h.

Referenced by v8::ArrayBuffer::Externalize().


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