v8  10.1.124 (node 18.2.0)
V8 is Google's open source JavaScript engine
ScriptCompiler::CachedData Struct Reference

#include <v8-script.h>

Public Types

enum  BufferPolicy { BufferNotOwned , BufferOwned }
 

Public Member Functions

 CachedData ()
 
 CachedData (const uint8_t *data, int length, BufferPolicy buffer_policy=BufferNotOwned)
 
 ~CachedData ()
 
 CachedData (const CachedData &)=delete
 
CachedDataoperator= (const CachedData &)=delete
 

Data Fields

const uint8_t * data
 
int length
 
bool rejected
 
BufferPolicy buffer_policy
 

Detailed Description

Compilation data that the embedder can cache and pass back to speed up future compilations. The data is produced if the CompilerOptions passed to the compilation functions in ScriptCompiler contains produce_data_to_cache = true. The data to cache can then can be retrieved from UnboundScript.

Definition at line 345 of file v8-script.h.

Member Enumeration Documentation

◆ BufferPolicy

Enumerator
BufferNotOwned 
BufferOwned 

Definition at line 346 of file v8-script.h.

Constructor & Destructor Documentation

◆ CachedData() [1/3]

◆ CachedData() [2/3]

CachedData ( const uint8_t *  data,
int  length,
BufferPolicy  buffer_policy = BufferNotOwned 
)

◆ ~CachedData()

~CachedData ( )

◆ CachedData() [3/3]

CachedData ( const CachedData )
delete

Member Function Documentation

◆ operator=()

CachedData& operator= ( const CachedData )
delete

Field Documentation

◆ buffer_policy

BufferPolicy buffer_policy

Definition at line 366 of file v8-script.h.

Referenced by ScriptCompiler::CachedData::CachedData().

◆ data

const uint8_t* data

Definition at line 363 of file v8-script.h.

Referenced by ScriptCompiler::CachedData::CachedData().

◆ length

int length

Definition at line 364 of file v8-script.h.

Referenced by ScriptCompiler::CachedData::CachedData().

◆ rejected

bool rejected

Definition at line 365 of file v8-script.h.

Referenced by ScriptCompiler::CachedData::CachedData().


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