v8  3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 ()
 

Data Fields

const uint8_t * data
 
int length
 
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.

Definition at line 1100 of file v8.h.

Member Enumeration Documentation

Enumerator
BufferNotOwned 
BufferOwned 

Definition at line 1101 of file v8.h.

Constructor & Destructor Documentation

CachedData ( )
inline

Definition at line 1106 of file v8.h.

CachedData ( const uint8_t *  data,
int  length,
BufferPolicy  buffer_policy = BufferNotOwned 
)

Definition at line 1615 of file api.cc.

~CachedData ( )

Definition at line 1620 of file api.cc.

Field Documentation

BufferPolicy buffer_policy

Definition at line 1119 of file v8.h.

const uint8_t* data

Definition at line 1117 of file v8.h.

Referenced by ScriptCompiler::CompileUnbound(), and TEST().

int length

Definition at line 1118 of file v8.h.

Referenced by ScriptCompiler::CompileUnbound(), and TEST().


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