v8  4.5.103(node4.8.7)
V8 is Google's open source JavaScript engine
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
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.

Definition at line 1133 of file v8.h.

Member Enumeration Documentation

◆ BufferPolicy


Definition at line 1134 of file v8.h.

Constructor & Destructor Documentation

◆ CachedData() [1/2]

CachedData ( )

Definition at line 1139 of file v8.h.

◆ CachedData() [2/2]

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

◆ ~CachedData()

~CachedData ( )

Field Documentation

◆ buffer_policy

BufferPolicy buffer_policy

Definition at line 1157 of file v8.h.

◆ data

const uint8_t* data

Definition at line 1154 of file v8.h.

◆ length

int length

Definition at line 1155 of file v8.h.

◆ rejected

bool rejected

Definition at line 1156 of file v8.h.

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