V8 API Reference, 7.2.502.16 (for Deno 0.2.4)
v8::ScriptCompiler::CachedData Struct Reference

#include <v8.h>

Public Types

enum  BufferPolicy { BufferNotOwned, BufferOwned }
 

Public Member Functions

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

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.

Definition at line 1260 of file v8.h.


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