v8
3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
|
#include <d8.h>
Static Public Member Functions | |
static bool | ExecuteString (Handle< String > source, Handle< Value > name, bool print_result, bool report_exceptions) |
static const char * | ToCString (const v8::String::Utf8Value &value) |
static void | ReportException (TryCatch *try_catch) |
static Handle< String > | ReadFile (const char *name) |
static Persistent< Context > | CreateEvaluationContext () |
static int | RunMain (int argc, char *argv[]) |
static int | Main (int argc, char *argv[]) |
static void | Exit (int exit_code) |
static Handle< Array > | GetCompletions (Handle< String > text, Handle< String > full) |
static void | OnExit () |
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 Handle< Value > | Print (const Arguments &args) |
static Handle< Value > | Write (const Arguments &args) |
static Handle< Value > | Yield (const Arguments &args) |
static Handle< Value > | Quit (const Arguments &args) |
static Handle< Value > | Version (const Arguments &args) |
static Handle< Value > | EnableProfiler (const Arguments &args) |
static Handle< Value > | DisableProfiler (const Arguments &args) |
static Handle< Value > | Read (const Arguments &args) |
static Handle< Value > | ReadBuffer (const Arguments &args) |
static Handle< String > | ReadFromStdin () |
static Handle< Value > | ReadLine (const Arguments &args) |
static Handle< Value > | Load (const Arguments &args) |
static Handle< Value > | ArrayBuffer (const Arguments &args) |
static Handle< Value > | Int8Array (const Arguments &args) |
static Handle< Value > | Uint8Array (const Arguments &args) |
static Handle< Value > | Int16Array (const Arguments &args) |
static Handle< Value > | Uint16Array (const Arguments &args) |
static Handle< Value > | Int32Array (const Arguments &args) |
static Handle< Value > | Uint32Array (const Arguments &args) |
static Handle< Value > | Float32Array (const Arguments &args) |
static Handle< Value > | Float64Array (const Arguments &args) |
static Handle< Value > | Uint8ClampedArray (const Arguments &args) |
static Handle< Value > | ArrayBufferSlice (const Arguments &args) |
static Handle< Value > | ArraySubArray (const Arguments &args) |
static Handle< Value > | ArraySet (const Arguments &args) |
static Handle< Value > | OSObject (const Arguments &args) |
static Handle< Value > | System (const Arguments &args) |
static Handle< Value > | ChangeDirectory (const Arguments &args) |
static Handle< Value > | SetEnvironment (const Arguments &args) |
static Handle< Value > | UnsetEnvironment (const Arguments &args) |
static Handle< Value > | SetUMask (const Arguments &args) |
static Handle< Value > | MakeDirectory (const Arguments &args) |
static Handle< Value > | RemoveDirectory (const Arguments &args) |
static void | AddOSMethods (Handle< ObjectTemplate > os_template) |
Static Public Attributes | |
static LineEditor * | console = NULL |
static const char * | kPrompt = "d8> " |
static ShellOptions | options |
|
static |
Definition at line 1041 of file d8.cc.
References Counter::AddSample().
Referenced by Shell::MapCounters().
|
static |
Definition at line 677 of file d8-posix.cc.
References Shell::ChangeDirectory(), Shell::MakeDirectory(), String::New(), FunctionTemplate::New(), Shell::RemoveDirectory(), Template::Set(), Shell::SetEnvironment(), Shell::SetUMask(), Shell::System(), and Shell::UnsetEnvironment().
Definition at line 366 of file d8.cc.
References Arguments::Callee(), TryCatch::HasCaught(), Arguments::IsConstructCall(), Arguments::Length(), String::New(), TryCatch::ReThrow(), Arguments::This(), and v8::ThrowException().
Definition at line 521 of file d8.cc.
References Local< T >::Cast(), TryCatch::HasCaught(), Handle< T >::IsEmpty(), v8::kArrayBufferMarkerPropName, Arguments::Length(), String::New(), Integer::New(), TryCatch::ReThrow(), Arguments::This(), v8::ThrowException(), and Value::ToObject().
Definition at line 638 of file d8.cc.
References ASSERT, TryCatch::HasCaught(), Handle< T >::IsEmpty(), v8::kArrayMarkerPropName, Arguments::Length(), String::New(), TryCatch::ReThrow(), Arguments::This(), v8::ThrowException(), Object::ToObject(), and v8::Undefined().
Definition at line 578 of file d8.cc.
References Local< T >::Cast(), TryCatch::HasCaught(), Handle< T >::IsEmpty(), v8::kArrayMarkerPropName, Arguments::Length(), String::New(), Integer::New(), TryCatch::ReThrow(), Arguments::This(), v8::ThrowException(), and Object::ToObject().
Definition at line 525 of file d8-posix.cc.
References Arguments::Length(), String::New(), NULL, v8::ThrowException(), and v8::Undefined().
Referenced by Shell::AddOSMethods().
|
static |
Definition at line 1245 of file d8.cc.
References JSArguments::argc(), ASSERT, v8::internal::CStrVector(), FACTORY, Handle< T >::IsEmpty(), String::New(), Context::New(), NULL, and Utils::ToLocal().
Referenced by ShellThread::Run(), and Shell::RunMain().
|
static |
Definition at line 1033 of file d8.cc.
Referenced by Shell::MapCounters().
Definition at line 226 of file d8.cc.
References V8::PauseProfiler(), and v8::Undefined().
Definition at line 220 of file d8.cc.
References V8::ResumeProfiler(), and v8::Undefined().
|
static |
Definition at line 143 of file d8.cc.
References ASSERT, Script::Compile(), TryCatch::HasCaught(), Handle< T >::IsEmpty(), Value::IsUndefined(), String::Utf8Value::length(), Shell::options, Shell::ReportException(), Script::Run(), ShellOptions::script_executed, and TryCatch::SetVerbose().
Referenced by SourceGroup::Execute(), Shell::Load(), and ShellThread::Run().
|
static |
Definition at line 1274 of file d8.cc.
Referenced by SourceGroup::Execute(), Shell::MapCounters(), ShellThread::Run(), Shell::RunMain(), and Shell::Write().
Definition at line 820 of file d8.cc.
References v8::kExternalFloatArray.
Definition at line 826 of file d8.cc.
References v8::kExternalDoubleArray.
Definition at line 905 of file d8.cc.
References Handle< T >::Cast(), HandleScope::Close(), and String::New().
Definition at line 799 of file d8.cc.
References v8::kExternalShortArray.
Definition at line 810 of file d8.cc.
References v8::kExternalIntArray.
Definition at line 789 of file d8.cc.
References v8::kExternalByteArray.
Definition at line 275 of file d8.cc.
References Shell::ExecuteString(), Handle< T >::IsEmpty(), Arguments::Length(), String::New(), NULL, Shell::ReadFile(), v8::ThrowException(), and v8::Undefined().
|
static |
Definition at line 1022 of file d8.cc.
References NULL, and Counter::ptr().
Referenced by Shell::MapCounters().
|
static |
Definition at line 1843 of file d8.cc.
References Testing::DeoptimizeAll(), V8::Dispose(), Testing::GetStressRuns(), ShellOptions::interactive_shell, Testing::kStressTypeDeopt, Testing::kStressTypeOpt, ShellOptions::last_run, Shell::OnExit(), Shell::options, Testing::PrepareStressRun(), Shell::RunMain(), v8::RunRemoteDebugger(), ShellOptions::script_executed, Testing::SetStressRunType(), ShellOptions::stress_deopt, ShellOptions::stress_opt, and ShellOptions::test_shell.
Referenced by main().
Definition at line 601 of file d8-posix.cc.
References Arguments::Length(), String::New(), NULL, v8::ThrowException(), and v8::Undefined().
Referenced by Shell::AddOSMethods().
|
static |
Definition at line 979 of file d8.cc.
References Shell::AddHistogramSample(), Shell::CreateHistogram(), Shell::Exit(), Shell::LookupCounter(), memory(), NULL, V8::SetAddHistogramSampleFunction(), V8::SetCounterFunction(), and V8::SetCreateHistogramFunction().
|
static |
Definition at line 1296 of file d8.cc.
References LineEditor::Close(), v8::CompareKeys(), Shell::console, Counter::count(), CounterAndKey::counter, Counter::is_histogram(), CounterAndKey::key, CounterMap::Iterator::More(), NULL, and Counter::sample_total().
Referenced by Shell::Main(), and Shell::Quit().
Definition at line 189 of file d8.cc.
References Shell::Write().
Definition at line 843 of file d8.cc.
References Shell::OnExit(), and v8::Undefined().
Definition at line 232 of file d8.cc.
References Handle< T >::IsEmpty(), String::New(), NULL, Shell::ReadFile(), and v8::ThrowException().
Definition at line 1379 of file d8.cc.
References V8::AdjustAmountOfExternalAllocatedMemory(), ASSERT, v8::kArrayBufferMarkerPropName, v8::kExternalUnsignedByteArray, Persistent< T >::MakeWeak(), Persistent< T >::MarkIndependent(), Persistent< T >::New(), String::New(), Integer::New(), Object::New(), NULL, v8::ReadOnly, v8::ThrowException(), and v8::True().
Definition at line 1430 of file d8.cc.
References String::New(), and NULL.
Referenced by Shell::Load(), Shell::Read(), and ShellThread::Run().
Definition at line 245 of file d8.cc.
References String::Concat(), Isolate::GetCurrent(), String::New(), and NULL.
Referenced by DumbLineEditor::Prompt(), and Shell::ReadLine().
Definition at line 314 of file d8.h.
References Shell::ReadFromStdin().
Definition at line 624 of file d8-posix.cc.
References Arguments::Length(), String::New(), NULL, v8::ThrowException(), and v8::Undefined().
Referenced by Shell::AddOSMethods().
|
static |
Definition at line 858 of file d8.cc.
References TryCatch::Exception(), Context::InContext(), Handle< T >::IsEmpty(), message, TryCatch::Message(), TryCatch::StackTrace(), and Shell::ToCString().
Referenced by Shell::ExecuteString().
|
static |
Definition at line 1763 of file d8.cc.
References List< T, P >::Add(), V8::ContextDisposedNotification(), Shell::CreateEvaluationContext(), Persistent< T >::Dispose(), SourceGroup::Execute(), Shell::Exit(), Isolate::GetCurrent(), V8::IdleNotification(), ShellOptions::isolate_sources, Thread::Join(), ShellOptions::last_run, NULL, ShellOptions::num_isolates, ShellOptions::num_parallel_files, Shell::options, ShellOptions::parallel_files, ShellOptions::preemption_interval, ShellOptions::send_idle_notification, Thread::Start(), SourceGroup::StartExecuteInThread(), Locker::StartPreemption(), Locker::StopPreemption(), ShellOptions::use_preemption, and SourceGroup::WaitForThread().
Referenced by Shell::Main().
Definition at line 639 of file d8-posix.cc.
References Arguments::Length(), String::New(), NULL, v8::ThrowException(), and v8::Undefined().
Referenced by Shell::AddOSMethods().
Definition at line 542 of file d8-posix.cc.
References Arguments::Length(), String::New(), Number::New(), and v8::ThrowException().
Referenced by Shell::AddOSMethods().
Definition at line 451 of file d8-posix.cc.
References Handle< T >::Cast(), HandleScope::Close(), ExecArgs::Init(), Value::IsUndefined(), ExecArgs::kMaxArgs, Arguments::Length(), String::New(), Object::New(), NULL, v8::ThrowException(), and v8::Undefined().
Referenced by Shell::AddOSMethods().
|
static |
Definition at line 137 of file d8.cc.
Referenced by Shell::ReportException().
Definition at line 804 of file d8.cc.
References v8::kExternalUnsignedShortArray.
Definition at line 815 of file d8.cc.
References v8::kExternalUnsignedIntArray.
Definition at line 794 of file d8.cc.
References v8::kExternalUnsignedByteArray.
Definition at line 832 of file d8.cc.
References v8::kExternalPixelArray.
Definition at line 661 of file d8-posix.cc.
References Arguments::Length(), String::New(), NULL, v8::ThrowException(), and v8::Undefined().
Referenced by Shell::AddOSMethods().
Definition at line 853 of file d8.cc.
References V8::GetVersion(), and String::New().
Definition at line 197 of file d8.cc.
References Shell::Exit(), TryCatch::HasCaught(), String::Utf8Value::length(), Arguments::Length(), TryCatch::ReThrow(), and v8::Undefined().
Referenced by Shell::Print().
Definition at line 837 of file d8.cc.
References v8::Undefined().
|
static |
Definition at line 368 of file d8.h.
Referenced by Shell::OnExit().
|
static |
Definition at line 370 of file d8.h.
Referenced by Shell::ExecuteString(), Shell::Main(), Shell::RunMain(), and SourceGroup::WaitForThread().