![]() |
v8 11.3.244 (node 20.3.0)
V8 is Google's open source JavaScript engine
|
#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 | |
CachedData & | operator= (const CachedData &)=delete |
Data Fields | |
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.
Definition at line 375 of file v8-script.h.
enum BufferPolicy |
Enumerator | |
---|---|
BufferNotOwned | |
BufferOwned |
Definition at line 376 of file v8-script.h.
|
inline |
Definition at line 378 of file v8-script.h.
CachedData | ( | const uint8_t * | data, |
int | length, | ||
BufferPolicy | buffer_policy = BufferNotOwned |
||
) |
~CachedData | ( | ) |
|
delete |
|
delete |
BufferPolicy buffer_policy |
Definition at line 396 of file v8-script.h.
const uint8_t* data |
Definition at line 393 of file v8-script.h.
int length |
Definition at line 394 of file v8-script.h.
bool rejected |
Definition at line 395 of file v8-script.h.