#include <v8-script.h>
Public Types | |
enum | BufferPolicy { BufferNotOwned , BufferOwned } |
enum | CompatibilityCheckResult { kSuccess = 0 , kMagicNumberMismatch = 1 , kVersionMismatch = 2 , kSourceMismatch = 3 , kFlagsMismatch = 5 , kChecksumMismatch = 6 , kInvalidHeader = 7 , kLengthMismatch = 8 , kReadOnlySnapshotChecksumMismatch = 9 , kLast = kReadOnlySnapshotChecksumMismatch } |
Public Member Functions | |
CachedData () | |
CachedData (const uint8_t *data, int length, BufferPolicy buffer_policy=BufferNotOwned) | |
~CachedData () | |
CompatibilityCheckResult | CompatibilityCheck (Isolate *isolate) |
CachedData (const CachedData &)=delete | |
CachedData & | operator= (const CachedData &)=delete |
Public Attributes | |
const uint8_t * | data |
int | length |
bool | rejected |
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.
|
inline |
v8::ScriptCompiler::CachedData::CachedData | ( | const uint8_t * | data, |
int | length, | ||
BufferPolicy | buffer_policy = BufferNotOwned |
||
) |
v8::ScriptCompiler::CachedData::~CachedData | ( | ) |
|
delete |
CompatibilityCheckResult v8::ScriptCompiler::CachedData::CompatibilityCheck | ( | Isolate * | isolate | ) |
|
delete |
BufferPolicy v8::ScriptCompiler::CachedData::buffer_policy |
const uint8_t* v8::ScriptCompiler::CachedData::data |
int v8::ScriptCompiler::CachedData::length |
bool v8::ScriptCompiler::CachedData::rejected |