v8
3.28.71 (node 0.12.18)
V8 is Google's open source JavaScript engine
|
#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 () | |
Data Fields | |
const uint8_t * | data |
int | length |
BufferPolicy | buffer_policy |
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.
enum BufferPolicy |
|
inline |
Definition at line 1032 of file v8.h.
References ScriptCompiler::CachedData::buffer_policy, ScriptCompiler::CachedData::BufferNotOwned, ScriptCompiler::CachedData::data, and ScriptCompiler::CachedData::length.
CachedData | ( | const uint8_t * | data, |
int | length, | ||
BufferPolicy | buffer_policy = BufferNotOwned |
||
) |
~CachedData | ( | ) |
BufferPolicy buffer_policy |
Definition at line 1045 of file v8.h.
Referenced by ScriptCompiler::CachedData::CachedData().
const uint8_t* data |
Definition at line 1043 of file v8.h.
Referenced by ScriptCompiler::CachedData::CachedData().
int length |
Definition at line 1044 of file v8.h.
Referenced by ScriptCompiler::CachedData::CachedData().