v8  3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Shell Class Reference

#include <d8.h>

Inheritance diagram for Shell:
Collaboration diagram for Shell:

Static Public Member Functions

static bool ExecuteString (Isolate *isolate, Handle< String > source, Handle< Value > name, bool print_result, bool report_exceptions)
 
static const char * ToCString (const v8::String::Utf8Value &value)
 
static void ReportException (Isolate *isolate, TryCatch *try_catch)
 
static Handle< StringReadFile (Isolate *isolate, const char *name)
 
static Local< ContextCreateEvaluationContext (Isolate *isolate)
 
static int RunMain (Isolate *isolate, int argc, char *argv[])
 
static int Main (int argc, char *argv[])
 
static void Exit (int exit_code)
 
static void OnExit ()
 
static Handle< ArrayGetCompletions (Isolate *isolate, Handle< String > text, Handle< String > full)
 
static int * LookupCounter (const char *name)
 
static void * CreateHistogram (const char *name, int min, int max, size_t buckets)
 
static void AddHistogramSample (void *histogram, int sample)
 
static void MapCounters (const char *name)
 
static void PerformanceNow (const v8::FunctionCallbackInfo< v8::Value > &args)
 
static void RealmCurrent (const v8::FunctionCallbackInfo< v8::Value > &args)
 
static void RealmOwner (const v8::FunctionCallbackInfo< v8::Value > &args)
 
static void RealmGlobal (const v8::FunctionCallbackInfo< v8::Value > &args)
 
static void RealmCreate (const v8::FunctionCallbackInfo< v8::Value > &args)
 
static void RealmDispose (const v8::FunctionCallbackInfo< v8::Value > &args)
 
static void RealmSwitch (const v8::FunctionCallbackInfo< v8::Value > &args)
 
static void RealmEval (const v8::FunctionCallbackInfo< v8::Value > &args)
 
static void RealmSharedGet (Local< String > property, const PropertyCallbackInfo< Value > &info)
 
static void RealmSharedSet (Local< String > property, Local< Value > value, const PropertyCallbackInfo< void > &info)
 
static void Print (const v8::FunctionCallbackInfo< v8::Value > &args)
 
static void Write (const v8::FunctionCallbackInfo< v8::Value > &args)
 
static void Quit (const v8::FunctionCallbackInfo< v8::Value > &args)
 
static void Version (const v8::FunctionCallbackInfo< v8::Value > &args)
 
static void Read (const v8::FunctionCallbackInfo< v8::Value > &args)
 
static void ReadBuffer (const v8::FunctionCallbackInfo< v8::Value > &args)
 
static Handle< StringReadFromStdin (Isolate *isolate)
 
static void ReadLine (const v8::FunctionCallbackInfo< v8::Value > &args)
 
static void Load (const v8::FunctionCallbackInfo< v8::Value > &args)
 
static void ArrayBuffer (const v8::FunctionCallbackInfo< v8::Value > &args)
 
static void Int8Array (const v8::FunctionCallbackInfo< v8::Value > &args)
 
static void Uint8Array (const v8::FunctionCallbackInfo< v8::Value > &args)
 
static void Int16Array (const v8::FunctionCallbackInfo< v8::Value > &args)
 
static void Uint16Array (const v8::FunctionCallbackInfo< v8::Value > &args)
 
static void Int32Array (const v8::FunctionCallbackInfo< v8::Value > &args)
 
static void Uint32Array (const v8::FunctionCallbackInfo< v8::Value > &args)
 
static void Float32Array (const v8::FunctionCallbackInfo< v8::Value > &args)
 
static void Float64Array (const v8::FunctionCallbackInfo< v8::Value > &args)
 
static void Uint8ClampedArray (const v8::FunctionCallbackInfo< v8::Value > &args)
 
static void ArrayBufferSlice (const v8::FunctionCallbackInfo< v8::Value > &args)
 
static void ArraySubArray (const v8::FunctionCallbackInfo< v8::Value > &args)
 
static void ArraySet (const v8::FunctionCallbackInfo< v8::Value > &args)
 
static void OSObject (const v8::FunctionCallbackInfo< v8::Value > &args)
 
static void System (const v8::FunctionCallbackInfo< v8::Value > &args)
 
static void ChangeDirectory (const v8::FunctionCallbackInfo< v8::Value > &args)
 
static void SetEnvironment (const v8::FunctionCallbackInfo< v8::Value > &args)
 
static void UnsetEnvironment (const v8::FunctionCallbackInfo< v8::Value > &args)
 
static void SetUMask (const v8::FunctionCallbackInfo< v8::Value > &args)
 
static void MakeDirectory (const v8::FunctionCallbackInfo< v8::Value > &args)
 
static void RemoveDirectory (const v8::FunctionCallbackInfo< v8::Value > &args)
 
static void AddOSMethods (v8::Isolate *isolate, Handle< ObjectTemplate > os_template)
 

Static Public Attributes

static const char * kPrompt = "d8> "
 
static ShellOptions options
 

Detailed Description

Definition at line 268 of file d8.h.

Member Function Documentation

void AddHistogramSample ( void *  histogram,
int  sample 
)
static

Definition at line 770 of file d8.cc.

References Counter::AddSample().

static void ArrayBuffer ( const v8::FunctionCallbackInfo< v8::Value > &  args)
static
static void ArrayBufferSlice ( const v8::FunctionCallbackInfo< v8::Value > &  args)
static
static void ArraySet ( const v8::FunctionCallbackInfo< v8::Value > &  args)
static
static void ArraySubArray ( const v8::FunctionCallbackInfo< v8::Value > &  args)
static
void ChangeDirectory ( const v8::FunctionCallbackInfo< v8::Value > &  args)
static
void * CreateHistogram ( const char *  name,
int  min,
int  max,
size_t  buckets 
)
static

Definition at line 762 of file d8.cc.

void Exit ( int  exit_code)
static

Definition at line 997 of file d8.cc.

Referenced by SourceGroup::Execute(), and ShellThread::Run().

static void Float32Array ( const v8::FunctionCallbackInfo< v8::Value > &  args)
static
static void Float64Array ( const v8::FunctionCallbackInfo< v8::Value > &  args)
static
Handle< Array > GetCompletions ( Isolate isolate,
Handle< String text,
Handle< String full 
)
static
static void Int16Array ( const v8::FunctionCallbackInfo< v8::Value > &  args)
static
static void Int32Array ( const v8::FunctionCallbackInfo< v8::Value > &  args)
static
static void Int8Array ( const v8::FunctionCallbackInfo< v8::Value > &  args)
static
int * LookupCounter ( const char *  name)
static

Definition at line 751 of file d8.cc.

References NULL, and Counter::ptr().

void MakeDirectory ( const v8::FunctionCallbackInfo< v8::Value > &  args)
static
void MapCounters ( const char *  name)
static
static void OSObject ( const v8::FunctionCallbackInfo< v8::Value > &  args)
static
void PerformanceNow ( const v8::FunctionCallbackInfo< v8::Value > &  args)
static

Definition at line 316 of file d8.cc.

References FunctionCallbackInfo< T >::GetReturnValue().

void Print ( const v8::FunctionCallbackInfo< v8::Value > &  args)
static

Definition at line 441 of file d8.cc.

void Quit ( const v8::FunctionCallbackInfo< v8::Value > &  args)
static

Definition at line 549 of file d8.cc.

Handle< String > ReadFile ( Isolate isolate,
const char *  name 
)
static

Definition at line 1176 of file d8.cc.

References String::kNormalString, String::NewFromUtf8(), and NULL.

Referenced by ShellThread::Run().

Handle< String > ReadFromStdin ( Isolate isolate)
static

Definition at line 488 of file d8.cc.

References String::Concat(), String::kNormalString, String::NewFromUtf8(), and NULL.

Referenced by DumbLineEditor::Prompt(), and Shell::ReadLine().

static void ReadLine ( const v8::FunctionCallbackInfo< v8::Value > &  args)
inlinestatic
void RealmDispose ( const v8::FunctionCallbackInfo< v8::Value > &  args)
static
void RealmGlobal ( const v8::FunctionCallbackInfo< v8::Value > &  args)
static
void RealmSharedGet ( Local< String property,
const PropertyCallbackInfo< Value > &  info 
)
static
void RealmSharedSet ( Local< String property,
Local< Value value,
const PropertyCallbackInfo< void > &  info 
)
static

Definition at line 432 of file d8.cc.

References PerIsolateData::Get(), and PropertyCallbackInfo< T >::GetIsolate().

void RealmSwitch ( const v8::FunctionCallbackInfo< v8::Value > &  args)
static

Definition at line 392 of file d8.cc.

References PerIsolateData::Get(), and FunctionCallbackInfo< T >::GetIsolate().

void RemoveDirectory ( const v8::FunctionCallbackInfo< v8::Value > &  args)
static
void ReportException ( Isolate isolate,
v8::TryCatch try_catch 
)
static
int RunMain ( Isolate isolate,
int  argc,
char *  argv[] 
)
static
void SetEnvironment ( const v8::FunctionCallbackInfo< v8::Value > &  args)
static
const char * ToCString ( const v8::String::Utf8Value value)
static

Definition at line 185 of file d8.cc.

static void Uint16Array ( const v8::FunctionCallbackInfo< v8::Value > &  args)
static
static void Uint32Array ( const v8::FunctionCallbackInfo< v8::Value > &  args)
static
static void Uint8Array ( const v8::FunctionCallbackInfo< v8::Value > &  args)
static
static void Uint8ClampedArray ( const v8::FunctionCallbackInfo< v8::Value > &  args)
static
void UnsetEnvironment ( const v8::FunctionCallbackInfo< v8::Value > &  args)
static

Field Documentation

const char * kPrompt = "d8> "
static

Definition at line 385 of file d8.h.

ShellOptions options
static

Definition at line 386 of file d8.h.

Referenced by SourceGroup::Execute(), Shell::ExecuteString(), and SourceGroup::WaitForThread().


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