v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::ScriptCompiler::Source Class Reference

#include <v8-script.h>

Collaboration diagram for v8::ScriptCompiler::Source:

Public Member Functions

V8_INLINE Source (Local< String > source_string, const ScriptOrigin &origin, CachedData *cached_data=nullptr, ConsumeCodeCacheTask *consume_cache_task=nullptr)
 
V8_INLINE Source (Local< String > source_string, CachedData *cached_data=nullptr, ConsumeCodeCacheTask *consume_cache_task=nullptr)
 
V8_INLINE Source (Local< String > source_string, const ScriptOrigin &origin, CompileHintCallback callback, void *callback_data)
 
V8_INLINE ~Source ()=default
 
V8_INLINE const CachedDataGetCachedData () const
 
V8_INLINE const ScriptOriginOptionsGetResourceOptions () const
 
V8_INLINE const CompilationDetailsGetCompilationDetails () const
 

Private Attributes

Local< Stringsource_string
 
Local< Valueresource_name
 
int resource_line_offset = -1
 
int resource_column_offset = -1
 
ScriptOriginOptions resource_options
 
Local< Valuesource_map_url
 
Local< Datahost_defined_options
 
std::unique_ptr< CachedDatacached_data
 
std::unique_ptr< ConsumeCodeCacheTaskconsume_cache_task
 
CompileHintCallback compile_hint_callback = nullptr
 
void * compile_hint_callback_data = nullptr
 
CompilationDetails compilation_details
 

Friends

class ScriptCompiler
 

Detailed Description

Source code which can be then compiled to a UnboundScript or Script.

Definition at line 492 of file v8-script.h.

Constructor & Destructor Documentation

◆ Source() [1/3]

v8::ScriptCompiler::Source::Source ( Local< String > source_string,
const ScriptOrigin & origin,
CachedData * cached_data = nullptr,
ConsumeCodeCacheTask * consume_cache_task = nullptr )

Definition at line 890 of file v8-script.h.

◆ Source() [2/3]

v8::ScriptCompiler::Source::Source ( Local< String > source_string,
CachedData * cached_data = nullptr,
ConsumeCodeCacheTask * consume_cache_task = nullptr )
explicit

Definition at line 903 of file v8-script.h.

◆ Source() [3/3]

v8::ScriptCompiler::Source::Source ( Local< String > source_string,
const ScriptOrigin & origin,
CompileHintCallback callback,
void * callback_data )

Definition at line 909 of file v8-script.h.

◆ ~Source()

V8_INLINE v8::ScriptCompiler::Source::~Source ( )
default

Member Function Documentation

◆ GetCachedData()

const ScriptCompiler::CachedData * v8::ScriptCompiler::Source::GetCachedData ( ) const

Definition at line 922 of file v8-script.h.

◆ GetCompilationDetails()

const ScriptCompiler::CompilationDetails & v8::ScriptCompiler::Source::GetCompilationDetails ( ) const

Definition at line 932 of file v8-script.h.

◆ GetResourceOptions()

const ScriptOriginOptions & v8::ScriptCompiler::Source::GetResourceOptions ( ) const

Definition at line 927 of file v8-script.h.

Friends And Related Symbol Documentation

◆ ScriptCompiler

friend class ScriptCompiler
friend

Definition at line 517 of file v8-script.h.

Member Data Documentation

◆ cached_data

std::unique_ptr<CachedData> v8::ScriptCompiler::Source::cached_data
private

Definition at line 532 of file v8-script.h.

◆ compilation_details

CompilationDetails v8::ScriptCompiler::Source::compilation_details
private

Definition at line 541 of file v8-script.h.

◆ compile_hint_callback

CompileHintCallback v8::ScriptCompiler::Source::compile_hint_callback = nullptr
private

Definition at line 536 of file v8-script.h.

◆ compile_hint_callback_data

void* v8::ScriptCompiler::Source::compile_hint_callback_data = nullptr
private

Definition at line 537 of file v8-script.h.

◆ consume_cache_task

std::unique_ptr<ConsumeCodeCacheTask> v8::ScriptCompiler::Source::consume_cache_task
private

Definition at line 533 of file v8-script.h.

◆ host_defined_options

Local<Data> v8::ScriptCompiler::Source::host_defined_options
private

Definition at line 527 of file v8-script.h.

◆ resource_column_offset

int v8::ScriptCompiler::Source::resource_column_offset = -1
private

Definition at line 524 of file v8-script.h.

◆ resource_line_offset

int v8::ScriptCompiler::Source::resource_line_offset = -1
private

Definition at line 523 of file v8-script.h.

◆ resource_name

Local<Value> v8::ScriptCompiler::Source::resource_name
private

Definition at line 522 of file v8-script.h.

◆ resource_options

ScriptOriginOptions v8::ScriptCompiler::Source::resource_options
private

Definition at line 525 of file v8-script.h.

◆ source_map_url

Local<Value> v8::ScriptCompiler::Source::source_map_url
private

Definition at line 526 of file v8-script.h.

◆ source_string

Local<String> v8::ScriptCompiler::Source::source_string
private

Definition at line 519 of file v8-script.h.


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