V8 Project
|
Compilation data that the embedder can cache and pass back to speed up future compilations. More...
#include <v8.h>
Public Types | |
enum | BufferPolicy { BufferNotOwned , BufferOwned } |
Public Member Functions | |
CachedData () | |
CachedData (const uint8_t *data, int length, BufferPolicy buffer_policy=BufferNotOwned) | |
~CachedData () | |
Public Attributes | |
const uint8_t * | data |
int | length |
BufferPolicy | buffer_policy |
Private Member Functions | |
CachedData (const CachedData &) | |
CachedData & | operator= (const CachedData &) |
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.
|
inline |
Definition at line 1034 of file v8.h.
v8::ScriptCompiler::CachedData::CachedData | ( | const uint8_t * | data, |
int | length, | ||
BufferPolicy | buffer_policy = BufferNotOwned |
||
) |
v8::ScriptCompiler::CachedData::~CachedData | ( | ) |
|
private |
|
private |
BufferPolicy v8::ScriptCompiler::CachedData::buffer_policy |
const uint8_t* v8::ScriptCompiler::CachedData::data |
Definition at line 1045 of file v8.h.
Referenced by v8::Shell::CompileString(), and v8::ScriptCompiler::CompileUnbound().
int v8::ScriptCompiler::CachedData::length |
Definition at line 1046 of file v8.h.
Referenced by v8::Shell::CompileString(), and v8::ScriptCompiler::CompileUnbound().