V8 Project
v8::Extension Class Reference

Ignore. More...

#include <v8.h>

+ Inheritance diagram for v8::Extension:
+ Collaboration diagram for v8::Extension:

Public Member Functions

 Extension (const char *name, const char *source=0, int dep_count=0, const char **deps=0, int source_length=-1)
 
virtual ~Extension ()
 
virtual v8::Handle< v8::FunctionTemplateGetNativeFunctionTemplate (v8::Isolate *isolate, v8::Handle< v8::String > name)
 
const char * name () const
 
size_t source_length () const
 
const String::ExternalOneByteStringResourcesource () const
 
int dependency_count ()
 
const char ** dependencies ()
 
void set_auto_enable (bool value)
 
bool auto_enable ()
 

Private Member Functions

 Extension (const Extension &)
 
void operator= (const Extension &)
 

Private Attributes

const char * name_
 
size_t source_length_
 
ExternalOneByteStringResourceImpl source_
 
int dep_count_
 
const char ** deps_
 
bool auto_enable_
 

Detailed Description

Ignore.

Definition at line 4008 of file v8.h.

Constructor & Destructor Documentation

◆ Extension() [1/2]

v8::Extension::Extension ( const char *  name,
const char *  source = 0,
int  dep_count = 0,
const char **  deps = 0,
int  source_length = -1 
)

Definition at line 404 of file api.cc.

409  : name_(name),
411  source_length :
412  (source ? static_cast<int>(strlen(source)) : 0)),
414  dep_count_(dep_count),
415  deps_(deps),
416  auto_enable_(false) {
417  CHECK(source != NULL || source_length_ == 0);
418 }
const char * name() const
Definition: v8.h:4023
bool auto_enable_
Definition: v8.h:4038
const String::ExternalOneByteStringResource * source() const
Definition: v8.h:4025
size_t source_length() const
Definition: v8.h:4024
size_t source_length_
Definition: v8.h:4034
int dep_count_
Definition: v8.h:4036
ExternalOneByteStringResourceImpl source_
Definition: v8.h:4035
const char * name_
Definition: v8.h:4033
const char ** deps_
Definition: v8.h:4037
enable harmony numeric enable harmony object literal extensions Optimize object Array DOM strings and string trace pretenuring decisions of HAllocate instructions Enables optimizations which favor memory size over execution speed maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining trace the tracking of allocation sites deoptimize every n garbage collections perform array bounds checks elimination analyze liveness of environment slots and zap dead values flushes the cache of optimized code for closures on every GC allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes enable context specialization in TurboFan execution budget before interrupt is triggered max percentage of megamorphic generic ICs to allow optimization enable use of SAHF instruction if enable use of VFP3 instructions if available enable use of NEON instructions if enable use of SDIV and UDIV instructions if enable use of MLS instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of d16 d31 registers on ARM this requires VFP3 force all emitted branches to be in long enable alignment of csp to bytes on platforms which prefer the register to always be NULL
#define CHECK(condition)
Definition: logging.h:36

References CHECK, NULL, source(), and source_length_.

+ Here is the call graph for this function:

◆ ~Extension()

virtual v8::Extension::~Extension ( )
inlinevirtual

Definition at line 4017 of file v8.h.

4017 { }

◆ Extension() [2/2]

v8::Extension::Extension ( const Extension )
private

Member Function Documentation

◆ auto_enable()

bool v8::Extension::auto_enable ( )
inline

Definition at line 4030 of file v8.h.

4030 { return auto_enable_; }

◆ dependencies()

const char** v8::Extension::dependencies ( )
inline

Definition at line 4028 of file v8.h.

4028 { return deps_; }

◆ dependency_count()

int v8::Extension::dependency_count ( )
inline

Definition at line 4027 of file v8.h.

4027 { return dep_count_; }

◆ GetNativeFunctionTemplate()

virtual v8::Handle<v8::FunctionTemplate> v8::Extension::GetNativeFunctionTemplate ( v8::Isolate isolate,
v8::Handle< v8::String name 
)
inlinevirtual

Reimplemented in v8::internal::TriggerFailureExtension, v8::internal::StatisticsExtension, v8::internal::GCExtension, v8::internal::FreeBufferExtension, and v8::internal::ExternalizeStringExtension.

Definition at line 4018 of file v8.h.

4019  {
4021  }
An object reference managed by the v8 garbage collector.
Definition: v8.h:198

◆ name()

const char* v8::Extension::name ( ) const
inline

Definition at line 4023 of file v8.h.

4023 { return name_; }

◆ operator=()

void v8::Extension::operator= ( const Extension )
private

◆ set_auto_enable()

void v8::Extension::set_auto_enable ( bool  value)
inline

Definition at line 4029 of file v8.h.

4029 { auto_enable_ = value; }

◆ source()

const String::ExternalOneByteStringResource* v8::Extension::source ( ) const
inline

Definition at line 4025 of file v8.h.

4025  {
4026  return &source_; }

Referenced by Extension().

+ Here is the caller graph for this function:

◆ source_length()

size_t v8::Extension::source_length ( ) const
inline

Definition at line 4024 of file v8.h.

4024 { return source_length_; }

Member Data Documentation

◆ auto_enable_

bool v8::Extension::auto_enable_
private

Definition at line 4038 of file v8.h.

◆ dep_count_

int v8::Extension::dep_count_
private

Definition at line 4036 of file v8.h.

◆ deps_

const char** v8::Extension::deps_
private

Definition at line 4037 of file v8.h.

◆ name_

const char* v8::Extension::name_
private

Definition at line 4033 of file v8.h.

◆ source_

ExternalOneByteStringResourceImpl v8::Extension::source_
private

Definition at line 4035 of file v8.h.

◆ source_length_

size_t v8::Extension::source_length_
private

Definition at line 4034 of file v8.h.

Referenced by Extension().


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