v8
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Public Attributes | List of all members
v8::ScriptCompiler::CachedData Struct Reference

#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
 
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.

Member Enumeration Documentation

Enumerator
BufferNotOwned 
BufferOwned 

Constructor & Destructor Documentation

v8::ScriptCompiler::CachedData::CachedData ( )
inline
v8::ScriptCompiler::CachedData::CachedData ( const uint8_t *  data,
int  length,
BufferPolicy  buffer_policy = BufferNotOwned 
)
v8::ScriptCompiler::CachedData::~CachedData ( )

Member Data Documentation

BufferPolicy v8::ScriptCompiler::CachedData::buffer_policy
const uint8_t* v8::ScriptCompiler::CachedData::data
int v8::ScriptCompiler::CachedData::length
bool v8::ScriptCompiler::CachedData::rejected

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