V8 Project
v8::ScriptCompiler::Source Class Reference

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

#include <v8.h>

+ Collaboration diagram for v8::ScriptCompiler::Source:

Public Member Functions

 Source (Local< String > source_string, const ScriptOrigin &origin, CachedData *cached_data=NULL)
 
 Source (Local< String > source_string, CachedData *cached_data=NULL)
 
 ~Source ()
 
const CachedDataGetCachedData () const
 

Private Member Functions

 Source (const Source &)
 
Sourceoperator= (const Source &)
 

Private Attributes

Local< Stringsource_string
 
Handle< Valueresource_name
 
Handle< Integerresource_line_offset
 
Handle< Integerresource_column_offset
 
Handle< Booleanresource_is_shared_cross_origin
 
CachedDatacached_data
 

Friends

class ScriptCompiler
 

Detailed Description

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

Definition at line 1058 of file v8.h.

Constructor & Destructor Documentation

◆ Source() [1/3]

v8::ScriptCompiler::Source::Source ( Local< String source_string,
const ScriptOrigin origin,
CachedData cached_data = NULL 
)
inline

Definition at line 6390 of file v8.h.

6392  : source_string(string),
6393  resource_name(origin.ResourceName()),
6394  resource_line_offset(origin.ResourceLineOffset()),
6395  resource_column_offset(origin.ResourceColumnOffset()),
6396  resource_is_shared_cross_origin(origin.ResourceIsSharedCrossOrigin()),
6397  cached_data(data) {}
Local< String > source_string
Definition: v8.h:1078
CachedData * cached_data
Definition: v8.h:1089
Handle< Integer > resource_column_offset
Definition: v8.h:1083
Handle< Value > resource_name
Definition: v8.h:1081
Handle< Integer > resource_line_offset
Definition: v8.h:1082
Handle< Boolean > resource_is_shared_cross_origin
Definition: v8.h:1084

◆ Source() [2/3]

v8::ScriptCompiler::Source::Source ( Local< String source_string,
CachedData cached_data = NULL 
)
inline

Definition at line 6400 of file v8.h.

6402  : source_string(string), cached_data(data) {}

◆ ~Source()

v8::ScriptCompiler::Source::~Source ( )
inline

Definition at line 6405 of file v8.h.

6405  {
6406  delete cached_data;
6407 }

◆ Source() [3/3]

v8::ScriptCompiler::Source::Source ( const Source )
private

Member Function Documentation

◆ GetCachedData()

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

Definition at line 6410 of file v8.h.

6411  {
6412  return cached_data;
6413 }

Referenced by v8::Shell::CompileString().

+ Here is the caller graph for this function:

◆ operator=()

Source& v8::ScriptCompiler::Source::operator= ( const Source )
private

Friends And Related Function Documentation

◆ ScriptCompiler

friend class ScriptCompiler
friend

Definition at line 1073 of file v8.h.

Member Data Documentation

◆ cached_data

CachedData* v8::ScriptCompiler::Source::cached_data
private

Definition at line 1089 of file v8.h.

Referenced by v8::ScriptCompiler::CompileUnbound().

◆ resource_column_offset

Handle<Integer> v8::ScriptCompiler::Source::resource_column_offset
private

Definition at line 1083 of file v8.h.

Referenced by v8::ScriptCompiler::CompileUnbound().

◆ resource_is_shared_cross_origin

Handle<Boolean> v8::ScriptCompiler::Source::resource_is_shared_cross_origin
private

Definition at line 1084 of file v8.h.

Referenced by v8::ScriptCompiler::CompileUnbound().

◆ resource_line_offset

Handle<Integer> v8::ScriptCompiler::Source::resource_line_offset
private

Definition at line 1082 of file v8.h.

Referenced by v8::ScriptCompiler::CompileUnbound().

◆ resource_name

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

Definition at line 1081 of file v8.h.

Referenced by v8::ScriptCompiler::CompileUnbound().

◆ source_string

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

Definition at line 1078 of file v8.h.

Referenced by v8::ScriptCompiler::CompileUnbound().


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