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

#include <d8.h>

Inheritance diagram for v8::Shell:
Collaboration diagram for v8::Shell:

Public Types

enum  PrintResult : bool { kPrintResult = true , kNoPrintResult = false }
 
enum  ReportExceptions : bool { kReportExceptions = true , kNoReportExceptions = false }
 
enum  ProcessMessageQueue : bool { kProcessMessageQueue = true , kNoProcessMessageQueue = false }
 
enum class  CodeType {
  kFileName , kString , kFunction , kInvalid ,
  kNone
}
 

Static Public Member Functions

static bool ExecuteString (Isolate *isolate, Local< String > source, Local< String > name, ReportExceptions report_exceptions, Global< Value > *out_result=nullptr)
 
static bool ExecuteModule (Isolate *isolate, const char *file_name)
 
static bool LoadJSON (Isolate *isolate, const char *file_name)
 
static void ReportException (Isolate *isolate, Local< Message > message, Local< Value > exception)
 
static void ReportException (Isolate *isolate, const TryCatch &try_catch)
 
static MaybeLocal< StringReadFile (Isolate *isolate, const char *name, bool should_throw=true)
 
static std::unique_ptr< base::OS::MemoryMappedFileReadFileData (Isolate *isolate, const char *name, bool should_throw=true)
 
static Local< StringWasmLoadSourceMapCallback (Isolate *isolate, const char *name)
 
static MaybeLocal< ContextCreateEvaluationContext (Isolate *isolate)
 
static int RunMain (Isolate *isolate, bool last_run)
 
static int Main (int argc, char *argv[])
 
static void Exit (int exit_code)
 
static void OnExit (Isolate *isolate, bool dispose)
 
static void CollectGarbage (Isolate *isolate)
 
static bool EmptyMessageQueues (Isolate *isolate)
 
static bool CompleteMessageLoop (Isolate *isolate)
 
static bool FinishExecuting (Isolate *isolate, const Global< Context > &context)
 
static bool HandleUnhandledPromiseRejections (Isolate *isolate)
 
static std::unique_ptr< SerializationDataSerializeValue (Isolate *isolate, Local< Value > value, Local< Value > transfer)
 
static MaybeLocal< ValueDeserializeValue (Isolate *isolate, std::unique_ptr< SerializationData > data)
 
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 (v8::Isolate *isolate, const char *name)
 
static double GetTimestamp ()
 
static uint64_t GetTracingTimestampFromPerformanceTimestamp (double performance_timestamp)
 
static void PerformanceNow (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void PerformanceMark (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void PerformanceMeasure (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void PerformanceMeasureMemory (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void RealmCurrent (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void RealmOwner (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void RealmGlobal (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void RealmCreate (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void RealmNavigate (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void RealmCreateAllowCrossRealmAccess (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void RealmDetachGlobal (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void RealmDispose (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void RealmSwitch (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void RealmEval (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void RealmSharedGet (Local< Name > property, const PropertyCallbackInfo< Value > &info)
 
static void RealmSharedSet (Local< Name > property, Local< Value > value, const PropertyCallbackInfo< void > &info)
 
static void LogGetAndStop (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void TestVerifySourcePositions (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void InstallConditionalFeatures (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void EnableJSPI (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void SetFlushDenormals (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void AsyncHooksCreateHook (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void AsyncHooksExecutionAsyncId (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void AsyncHooksTriggerAsyncId (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void SetPromiseHooks (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void EnableDebugger (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void DisableDebugger (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void SerializerSerialize (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void SerializerDeserialize (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void ProfilerSetOnProfileEndListener (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void ProfilerTriggerSample (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static bool HasOnProfileEndListener (Isolate *isolate)
 
static void TriggerOnProfileEndListener (Isolate *isolate, std::string profile)
 
static void ResetOnProfileEndListener (Isolate *isolate)
 
static void Print (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void PrintErr (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void WriteStdout (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void WaitUntilDone (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void NotifyDone (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void QuitOnce (v8::FunctionCallbackInfo< v8::Value > *info)
 
static void Quit (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void TerminateNow (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void ScheduleTermination (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void Version (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void WriteFile (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void ReadFile (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void CreateWasmMemoryMapDescriptor (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static char * ReadChars (const char *name, int *size_out)
 
static MaybeLocal< PrimitiveArrayReadLines (Isolate *isolate, const char *name)
 
static void ReadBuffer (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static Local< StringReadFromStdin (Isolate *isolate)
 
static void ReadLine (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void WriteChars (const char *name, uint8_t *buffer, size_t buffer_size)
 
static void ExecuteFile (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void SetTimeout (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void ReadCodeTypeAndArguments (const v8::FunctionCallbackInfo< v8::Value > &info, int index, CodeType *code_type, Local< Value > *arguments=nullptr)
 
static bool FunctionAndArgumentsToString (Local< Function > function, Local< Value > arguments, Local< String > *source, Isolate *isolate)
 
static MaybeLocal< StringReadSource (const v8::FunctionCallbackInfo< v8::Value > &info, int index, CodeType default_type)
 
static void WorkerNew (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void WorkerPostMessage (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void WorkerGetMessage (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void WorkerOnMessageGetter (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void WorkerOnMessageSetter (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void WorkerTerminate (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void WorkerTerminateAndWait (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void System (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void ChangeDirectory (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void SetEnvironment (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void UnsetEnvironment (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void SetUMask (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void MakeDirectory (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void RemoveDirectory (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void GetExtrasBindingObject (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static MaybeLocal< PromiseHostImportModuleDynamically (Local< Context > context, Local< Data > host_defined_options, Local< Value > resource_name, Local< String > specifier, Local< FixedArray > import_attributes)
 
static MaybeLocal< PromiseHostImportModuleWithPhaseDynamically (Local< Context > context, Local< Data > host_defined_options, Local< Value > resource_name, Local< String > specifier, ModuleImportPhase phase, Local< FixedArray > import_attributes)
 
static void ModuleResolutionSuccessCallback (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void ModuleResolutionFailureCallback (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static void HostInitializeImportMetaObject (Local< Context > context, Local< Module > module, Local< Object > meta)
 
static MaybeLocal< ContextHostCreateShadowRealmContext (Local< Context > initiator_context)
 
static void DoHostImportModuleDynamically (void *data)
 
static void AddOSMethods (v8::Isolate *isolate, Local< ObjectTemplate > os_template)
 
static void SetWaitUntilDone (Isolate *isolate, bool value)
 
static char * ReadCharsFromTcpPort (const char *name, int *size_out)
 
static void set_script_executed ()
 
static bool use_interactive_shell ()
 
static void update_script_size (int size)
 
static bool is_valid_fuzz_script ()
 
static void WaitForRunningWorkers (const i::ParkedScope &parked)
 
static void AddRunningWorker (std::shared_ptr< Worker > worker)
 
static void RemoveRunningWorker (const std::shared_ptr< Worker > &worker)
 
static void Initialize (Isolate *isolate, D8Console *console, bool isOnMainThread=true)
 
static void PromiseRejectCallback (v8::PromiseRejectMessage reject_message)
 

Static Public Attributes

static const char * kPrompt
 
static ShellOptions options
 
static ArrayBuffer::Allocatorarray_buffer_allocator
 

Static Private Member Functions

static int DeserializationRunCount ()
 
static void WriteIgnitionDispatchCountersFile (v8::Isolate *isolate)
 
static void WriteLcovData (v8::Isolate *isolate, const char *file)
 
static CounterGetCounter (const char *name, bool is_histogram)
 
static Local< StringStringify (Isolate *isolate, Local< Value > value)
 
static void RunShell (Isolate *isolate)
 
static bool RunMainIsolate (Isolate *isolate, bool keep_context_alive)
 
static bool SetOptions (int argc, char *argv[])
 
static void NodeTypeCallback (const v8::FunctionCallbackInfo< v8::Value > &info)
 
static Local< FunctionTemplateCreateEventTargetTemplate (Isolate *isolate)
 
static Local< FunctionTemplateCreateNodeTemplates (Isolate *isolate, Local< FunctionTemplate > event_target)
 
static Local< ObjectTemplateCreateGlobalTemplate (Isolate *isolate)
 
static Local< ObjectTemplateCreateOSTemplate (Isolate *isolate)
 
static Local< FunctionTemplateCreateWorkerTemplate (Isolate *isolate)
 
static Local< ObjectTemplateCreateAsyncHookTemplate (Isolate *isolate)
 
static Local< ObjectTemplateCreateTestRunnerTemplate (Isolate *isolate)
 
static Local< ObjectTemplateCreatePerformanceTemplate (Isolate *isolate)
 
static Local< ObjectTemplateCreateRealmTemplate (Isolate *isolate)
 
static Local< ObjectTemplateCreateD8Template (Isolate *isolate)
 
static Local< FunctionTemplateCreateTestFastCApiTemplate (Isolate *isolate)
 
static Local< FunctionTemplateCreateLeafInterfaceTypeTemplate (Isolate *isolate)
 
static MaybeLocal< ContextCreateRealm (const v8::FunctionCallbackInfo< v8::Value > &info, int index, v8::MaybeLocal< Value > global_object)
 
static void DisposeRealm (const v8::FunctionCallbackInfo< v8::Value > &info, int index)
 
static MaybeLocal< ObjectFetchModuleSource (v8::Local< v8::Module > origin_module, v8::Local< v8::Context > context, const std::string &file_name, ModuleType module_type)
 
static MaybeLocal< ModuleFetchModuleTree (v8::Local< v8::Module > origin_module, v8::Local< v8::Context > context, const std::string &file_name, ModuleType module_type)
 
static MaybeLocal< ValueJSONModuleEvaluationSteps (Local< Context > context, Local< Module > module)
 
template<class T >
static MaybeLocal< TCompileString (Isolate *isolate, Local< Context > context, Local< String > source, const ScriptOrigin &origin)
 
static ScriptCompiler::CachedDataLookupCodeCache (Isolate *isolate, Local< Value > name)
 
static void StoreInCodeCache (Isolate *isolate, Local< Value > name, const ScriptCompiler::CachedData *data)
 

Static Private Attributes

static Global< Contextevaluation_context_
 
static base::OnceType quit_once_ = V8_ONCE_INIT
 
static Global< Functionstringify_function_
 
static base::Mutex profiler_end_callback_lock_
 
static std::map< Isolate *, std::pair< Global< Function >, Global< Context > > > profiler_end_callback_
 
static const char * stringify_source_
 
static CounterMapcounter_map_
 
static base::Mutex counter_mutex_
 
static CounterCollection local_counters_
 
static CounterCollectioncounters_ = &local_counters_
 
static base::OS::MemoryMappedFilecounters_file_ = nullptr
 
static base::LazyMutex context_mutex_
 
static const base::TimeTicks kInitialTicks = base::TimeTicks::Now()
 
static base::LazyMutex workers_mutex_
 
static bool allow_new_workers_ = true
 
static std::unordered_set< std::shared_ptr< Worker > > running_workers_
 
static std::atomic< bool > script_executed_ {false}
 
static std::atomic< bool > valid_fuzz_script_ {false}
 
static base::LazyMutex isolate_status_lock_
 
static std::map< Isolate *, bool > isolate_status_
 
static std::map< Isolate *, int > isolate_running_streaming_tasks_
 
static base::LazyMutex cached_code_mutex_
 
static std::map< std::string, std::unique_ptr< ScriptCompiler::CachedData > > cached_code_map_
 
static std::atomic< int > unhandled_promise_rejections_ {0}
 

Detailed Description

Definition at line 522 of file d8.h.

Member Enumeration Documentation

◆ CodeType

enum class v8::Shell::CodeType
strong
Enumerator
kFileName 
kString 
kFunction 
kInvalid 
kNone 

Definition at line 533 of file d8.h.

◆ PrintResult

Enumerator
kPrintResult 
kNoPrintResult 

Definition at line 524 of file d8.h.

◆ ProcessMessageQueue

Enumerator
kProcessMessageQueue 
kNoProcessMessageQueue 

Definition at line 529 of file d8.h.

◆ ReportExceptions

Enumerator
kReportExceptions 
kNoReportExceptions 

Definition at line 525 of file d8.h.

Member Function Documentation

◆ AddHistogramSample()

void v8::Shell::AddHistogramSample ( void * histogram,
int sample )
static

Definition at line 3798 of file d8.cc.

Here is the call graph for this function:

◆ AddOSMethods()

void v8::Shell::AddOSMethods ( v8::Isolate * isolate,
Local< ObjectTemplate > os_template )
static

Definition at line 747 of file d8-posix.cc.

Here is the call graph for this function:

◆ AddRunningWorker()

void v8::Shell::AddRunningWorker ( std::shared_ptr< Worker > worker)
static

Definition at line 6431 of file d8.cc.

Here is the caller graph for this function:

◆ AsyncHooksCreateHook()

void v8::Shell::AsyncHooksCreateHook ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 2700 of file d8.cc.

Here is the call graph for this function:

◆ AsyncHooksExecutionAsyncId()

void v8::Shell::AsyncHooksExecutionAsyncId ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 2709 of file d8.cc.

Here is the call graph for this function:

◆ AsyncHooksTriggerAsyncId()

void v8::Shell::AsyncHooksTriggerAsyncId ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 2718 of file d8.cc.

Here is the call graph for this function:

◆ ChangeDirectory()

void v8::Shell::ChangeDirectory ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 493 of file d8-posix.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CollectGarbage()

void v8::Shell::CollectGarbage ( Isolate * isolate)
static

Definition at line 6040 of file d8.cc.

Here is the caller graph for this function:

◆ CompileString()

template<class T >
MaybeLocal< T > v8::Shell::CompileString ( Isolate * isolate,
Local< Context > context,
Local< String > source,
const ScriptOrigin & origin )
staticprivate

Definition at line 687 of file d8.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CompleteMessageLoop()

bool v8::Shell::CompleteMessageLoop ( Isolate * isolate)
static

Definition at line 6102 of file d8.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateAsyncHookTemplate()

Local< ObjectTemplate > v8::Shell::CreateAsyncHookTemplate ( Isolate * isolate)
staticprivate

Definition at line 3992 of file d8.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateD8Template()

Local< ObjectTemplate > v8::Shell::CreateD8Template ( Isolate * isolate)
staticprivate

Definition at line 4058 of file d8.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateEvaluationContext()

MaybeLocal< Context > v8::Shell::CreateEvaluationContext ( Isolate * isolate)
static

Definition at line 4308 of file d8.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateEventTargetTemplate()

Local< FunctionTemplate > v8::Shell::CreateEventTargetTemplate ( Isolate * isolate)
staticprivate

Definition at line 3849 of file d8.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateGlobalTemplate()

Local< ObjectTemplate > v8::Shell::CreateGlobalTemplate ( Isolate * isolate)
staticprivate

Definition at line 3891 of file d8.cc.

Here is the call graph for this function:

◆ CreateHistogram()

void * v8::Shell::CreateHistogram ( const char * name,
int min,
int max,
size_t buckets )
static

Definition at line 3793 of file d8.cc.

◆ CreateLeafInterfaceTypeTemplate()

Local< FunctionTemplate > v8::Shell::CreateLeafInterfaceTypeTemplate ( Isolate * isolate)
staticprivate

Definition at line 1962 of file d8-test.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateNodeTemplates()

Local< FunctionTemplate > v8::Shell::CreateNodeTemplates ( Isolate * isolate,
Local< FunctionTemplate > event_target )
staticprivate

Definition at line 3855 of file d8.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateOSTemplate()

Local< ObjectTemplate > v8::Shell::CreateOSTemplate ( Isolate * isolate)
staticprivate

Definition at line 3944 of file d8.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreatePerformanceTemplate()

Local< ObjectTemplate > v8::Shell::CreatePerformanceTemplate ( Isolate * isolate)
staticprivate

Definition at line 4015 of file d8.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateRealm()

MaybeLocal< Context > v8::Shell::CreateRealm ( const v8::FunctionCallbackInfo< v8::Value > & info,
int index,
v8::MaybeLocal< Value > global_object )
staticprivate

Definition at line 2333 of file d8.cc.

Here is the call graph for this function:

◆ CreateRealmTemplate()

Local< ObjectTemplate > v8::Shell::CreateRealmTemplate ( Isolate * isolate)
staticprivate

Definition at line 4029 of file d8.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateTestFastCApiTemplate()

Local< FunctionTemplate > v8::Shell::CreateTestFastCApiTemplate ( Isolate * isolate)
staticprivate

Definition at line 1474 of file d8-test.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateTestRunnerTemplate()

Local< ObjectTemplate > v8::Shell::CreateTestRunnerTemplate ( Isolate * isolate)
staticprivate

Definition at line 4005 of file d8.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateWasmMemoryMapDescriptor()

static void v8::Shell::CreateWasmMemoryMapDescriptor ( const v8::FunctionCallbackInfo< v8::Value > & info)
static
Here is the caller graph for this function:

◆ CreateWorkerTemplate()

Local< FunctionTemplate > v8::Shell::CreateWorkerTemplate ( Isolate * isolate)
staticprivate

Definition at line 3957 of file d8.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DeserializationRunCount()

static int v8::Shell::DeserializationRunCount ( )
inlinestaticprivate

Definition at line 788 of file d8.h.

Here is the caller graph for this function:

◆ DeserializeValue()

MaybeLocal< Value > v8::Shell::DeserializeValue ( Isolate * isolate,
std::unique_ptr< SerializationData > data )
static

Definition at line 6424 of file d8.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ DisableDebugger()

void v8::Shell::DisableDebugger ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 2733 of file d8.cc.

Here is the call graph for this function:

◆ DisposeRealm()

void v8::Shell::DisposeRealm ( const v8::FunctionCallbackInfo< v8::Value > & info,
int index )
staticprivate

Definition at line 2367 of file d8.cc.

Here is the call graph for this function:

◆ DoHostImportModuleDynamically()

void v8::Shell::DoHostImportModuleDynamically ( void * data)
static

Definition at line 1595 of file d8.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ EmptyMessageQueues()

bool v8::Shell::EmptyMessageQueues ( Isolate * isolate)
static

Definition at line 6139 of file d8.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ EnableDebugger()

void v8::Shell::EnableDebugger ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 2729 of file d8.cc.

Here is the call graph for this function:

◆ EnableJSPI()

void v8::Shell::EnableJSPI ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 2671 of file d8.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ExecuteFile()

void v8::Shell::ExecuteFile ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 3059 of file d8.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ExecuteModule()

bool v8::Shell::ExecuteModule ( Isolate * isolate,
const char * file_name )
static

Definition at line 1739 of file d8.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ExecuteString()

bool v8::Shell::ExecuteString ( Isolate * isolate,
Local< String > source,
Local< String > name,
ReportExceptions report_exceptions,
Global< Value > * out_result = nullptr )
static

Definition at line 934 of file d8.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Exit()

static void v8::Shell::Exit ( int exit_code)
static

◆ FetchModuleSource()

MaybeLocal< Object > v8::Shell::FetchModuleSource ( v8::Local< v8::Module > origin_module,
v8::Local< v8::Context > context,
const std::string & file_name,
ModuleType module_type )
staticprivate

Definition at line 1179 of file d8.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FetchModuleTree()

MaybeLocal< Module > v8::Shell::FetchModuleTree ( v8::Local< v8::Module > origin_module,
v8::Local< v8::Context > context,
const std::string & file_name,
ModuleType module_type )
staticprivate

Definition at line 1233 of file d8.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FinishExecuting()

bool v8::Shell::FinishExecuting ( Isolate * isolate,
const Global< Context > & context )
static

Definition at line 6127 of file d8.cc.

Here is the caller graph for this function:

◆ FunctionAndArgumentsToString()

bool v8::Shell::FunctionAndArgumentsToString ( Local< Function > function,
Local< Value > arguments,
Local< String > * source,
Isolate * isolate )
static

Definition at line 3176 of file d8.cc.

Here is the call graph for this function:

◆ GetCounter()

Counter * v8::Shell::GetCounter ( const char * name,
bool is_histogram )
staticprivate

Definition at line 3758 of file d8.cc.

Here is the call graph for this function:

◆ GetExtrasBindingObject()

void v8::Shell::GetExtrasBindingObject ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 3132 of file d8.cc.

◆ GetTimestamp()

double v8::Shell::GetTimestamp ( )
static

Definition at line 2065 of file d8.cc.

Here is the call graph for this function:

◆ GetTracingTimestampFromPerformanceTimestamp()

uint64_t v8::Shell::GetTracingTimestampFromPerformanceTimestamp ( double performance_timestamp)
static

Definition at line 2073 of file d8.cc.

Here is the call graph for this function:

◆ HandleUnhandledPromiseRejections()

bool v8::Shell::HandleUnhandledPromiseRejections ( Isolate * isolate)
static

Definition at line 6144 of file d8.cc.

Here is the call graph for this function:

◆ HasOnProfileEndListener()

bool v8::Shell::HasOnProfileEndListener ( Isolate * isolate)
static

Definition at line 2829 of file d8.cc.

Here is the caller graph for this function:

◆ HostCreateShadowRealmContext()

MaybeLocal< Context > v8::Shell::HostCreateShadowRealmContext ( Local< Context > initiator_context)
static

Definition at line 1525 of file d8.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HostImportModuleDynamically()

MaybeLocal< Promise > v8::Shell::HostImportModuleDynamically ( Local< Context > context,
Local< Data > host_defined_options,
Local< Value > resource_name,
Local< String > specifier,
Local< FixedArray > import_attributes )
static

Definition at line 1471 of file d8.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HostImportModuleWithPhaseDynamically()

MaybeLocal< Promise > v8::Shell::HostImportModuleWithPhaseDynamically ( Local< Context > context,
Local< Data > host_defined_options,
Local< Value > resource_name,
Local< String > specifier,
ModuleImportPhase phase,
Local< FixedArray > import_attributes )
static

Definition at line 1480 of file d8.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ HostInitializeImportMetaObject()

void v8::Shell::HostInitializeImportMetaObject ( Local< Context > context,
Local< Module > module,
Local< Object > meta )
static

Definition at line 1508 of file d8.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Initialize()

void v8::Shell::Initialize ( Isolate * isolate,
D8Console * console,
bool isOnMainThread = true )
static

Definition at line 4273 of file d8.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ InstallConditionalFeatures()

void v8::Shell::InstallConditionalFeatures ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 2665 of file d8.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ is_valid_fuzz_script()

static bool v8::Shell::is_valid_fuzz_script ( )
inlinestatic

Definition at line 776 of file d8.h.

◆ JSONModuleEvaluationSteps()

MaybeLocal< Value > v8::Shell::JSONModuleEvaluationSteps ( Local< Context > context,
Local< Module > module )
staticprivate

Definition at line 1367 of file d8.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ LoadJSON()

bool v8::Shell::LoadJSON ( Isolate * isolate,
const char * file_name )
static

Definition at line 1839 of file d8.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ LogGetAndStop()

void v8::Shell::LogGetAndStop ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 2530 of file d8.cc.

Here is the call graph for this function:

◆ LookupCodeCache()

ScriptCompiler::CachedData * v8::Shell::LookupCodeCache ( Isolate * isolate,
Local< Value > name )
staticprivate

Definition at line 560 of file d8.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ LookupCounter()

int * v8::Shell::LookupCounter ( const char * name)
static

Definition at line 3788 of file d8.cc.

Here is the call graph for this function:

◆ Main()

int v8::Shell::Main ( int argc,
char * argv[] )
static

Definition at line 6492 of file d8.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MakeDirectory()

void v8::Shell::MakeDirectory ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 569 of file d8-posix.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MapCounters()

void v8::Shell::MapCounters ( v8::Isolate * isolate,
const char * name )
static

Definition at line 3743 of file d8.cc.

Here is the call graph for this function:

◆ ModuleResolutionFailureCallback()

void v8::Shell::ModuleResolutionFailureCallback ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 1450 of file d8.cc.

Here is the call graph for this function:

◆ ModuleResolutionSuccessCallback()

void v8::Shell::ModuleResolutionSuccessCallback ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 1426 of file d8.cc.

Here is the call graph for this function:

◆ NodeTypeCallback()

void v8::Shell::NodeTypeCallback ( const v8::FunctionCallbackInfo< v8::Value > & info)
staticprivate

Definition at line 3825 of file d8.cc.

Here is the call graph for this function:

◆ NotifyDone()

static void v8::Shell::NotifyDone ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

◆ OnExit()

void v8::Shell::OnExit ( v8::Isolate * isolate,
bool dispose )
static

Definition at line 4459 of file d8.cc.

Here is the call graph for this function:

◆ PerformanceMark()

void v8::Shell::PerformanceMark ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 2115 of file d8.cc.

Here is the call graph for this function:

◆ PerformanceMeasure()

void v8::Shell::PerformanceMeasure ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 2160 of file d8.cc.

Here is the call graph for this function:

◆ PerformanceMeasureMemory()

void v8::Shell::PerformanceMeasureMemory ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 2246 of file d8.cc.

Here is the call graph for this function:

◆ PerformanceNow()

void v8::Shell::PerformanceNow ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 2108 of file d8.cc.

Here is the call graph for this function:

◆ Print()

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

Definition at line 2918 of file d8.cc.

Here is the call graph for this function:

◆ PrintErr()

void v8::Shell::PrintErr ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 2922 of file d8.cc.

Here is the call graph for this function:

◆ ProfilerSetOnProfileEndListener()

void v8::Shell::ProfilerSetOnProfileEndListener ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 2814 of file d8.cc.

Here is the call graph for this function:

◆ ProfilerTriggerSample()

void v8::Shell::ProfilerTriggerSample ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 2851 of file d8.cc.

Here is the call graph for this function:

◆ PromiseRejectCallback()

void v8::Shell::PromiseRejectCallback ( v8::PromiseRejectMessage reject_message)
static

Definition at line 4235 of file d8.cc.

Here is the call graph for this function:

◆ Quit()

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

Definition at line 3635 of file d8.cc.

Here is the call graph for this function:

◆ QuitOnce()

void v8::Shell::QuitOnce ( v8::FunctionCallbackInfo< v8::Value > * info)
static

Definition at line 3569 of file d8.cc.

Here is the call graph for this function:

◆ ReadBuffer()

void v8::Shell::ReadBuffer ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 4689 of file d8.cc.

Here is the call graph for this function:

◆ ReadChars()

char * v8::Shell::ReadChars ( const char * name,
int * size_out )
static

Definition at line 4632 of file d8.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ReadCharsFromTcpPort()

char * v8::Shell::ReadCharsFromTcpPort ( const char * name,
int * size_out )
static

Definition at line 645 of file d8-posix.cc.

Here is the call graph for this function:

◆ ReadCodeTypeAndArguments()

void v8::Shell::ReadCodeTypeAndArguments ( const v8::FunctionCallbackInfo< v8::Value > & info,
int index,
CodeType * code_type,
Local< Value > * arguments = nullptr )
static

Definition at line 3138 of file d8.cc.

Here is the call graph for this function:

◆ ReadFile() [1/2]

void v8::Shell::ReadFile ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 2980 of file d8.cc.

Here is the call graph for this function:

◆ ReadFile() [2/2]

MaybeLocal< String > v8::Shell::ReadFile ( Isolate * isolate,
const char * name,
bool should_throw = true )
static

Definition at line 4739 of file d8.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ReadFileData()

std::unique_ptr< base::OS::MemoryMappedFile > v8::Shell::ReadFileData ( Isolate * isolate,
const char * name,
bool should_throw = true )
static

Definition at line 4719 of file d8.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ReadFromStdin()

Local< String > v8::Shell::ReadFromStdin ( Isolate * isolate)
static

Definition at line 3019 of file d8.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ReadLine()

void v8::Shell::ReadLine ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 4713 of file d8.cc.

Here is the call graph for this function:

◆ ReadLines()

MaybeLocal< PrimitiveArray > v8::Shell::ReadLines ( Isolate * isolate,
const char * name )
static

Definition at line 4659 of file d8.cc.

Here is the call graph for this function:

◆ ReadSource()

MaybeLocal< String > v8::Shell::ReadSource ( const v8::FunctionCallbackInfo< v8::Value > & info,
int index,
CodeType default_type )
static

Definition at line 3225 of file d8.cc.

Here is the call graph for this function:

◆ RealmCreate()

void v8::Shell::RealmCreate ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 2381 of file d8.cc.

Here is the call graph for this function:

◆ RealmCreateAllowCrossRealmAccess()

void v8::Shell::RealmCreateAllowCrossRealmAccess ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 2388 of file d8.cc.

Here is the call graph for this function:

◆ RealmCurrent()

void v8::Shell::RealmCurrent ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 2274 of file d8.cc.

Here is the call graph for this function:

◆ RealmDetachGlobal()

void v8::Shell::RealmDetachGlobal ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 2430 of file d8.cc.

Here is the call graph for this function:

◆ RealmDispose()

void v8::Shell::RealmDispose ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 2448 of file d8.cc.

Here is the call graph for this function:

◆ RealmEval()

void v8::Shell::RealmEval ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 2473 of file d8.cc.

Here is the call graph for this function:

◆ RealmGlobal()

void v8::Shell::RealmGlobal ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 2311 of file d8.cc.

Here is the call graph for this function:

◆ RealmNavigate()

void v8::Shell::RealmNavigate ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 2400 of file d8.cc.

Here is the call graph for this function:

◆ RealmOwner()

void v8::Shell::RealmOwner ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 2284 of file d8.cc.

Here is the call graph for this function:

◆ RealmSharedGet()

void v8::Shell::RealmSharedGet ( Local< Name > property,
const PropertyCallbackInfo< Value > & info )
static

Definition at line 2513 of file d8.cc.

Here is the call graph for this function:

◆ RealmSharedSet()

void v8::Shell::RealmSharedSet ( Local< Name > property,
Local< Value > value,
const PropertyCallbackInfo< void > & info )
static

Definition at line 2522 of file d8.cc.

Here is the call graph for this function:

◆ RealmSwitch()

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

Definition at line 2463 of file d8.cc.

Here is the call graph for this function:

◆ RemoveDirectory()

void v8::Shell::RemoveDirectory ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 594 of file d8-posix.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RemoveRunningWorker()

void v8::Shell::RemoveRunningWorker ( const std::shared_ptr< Worker > & worker)
static

Definition at line 6436 of file d8.cc.

Here is the caller graph for this function:

◆ ReportException() [1/2]

void v8::Shell::ReportException ( v8::Isolate * isolate,
const TryCatch & try_catch )
static

Definition at line 3710 of file d8.cc.

Here is the call graph for this function:

◆ ReportException() [2/2]

void v8::Shell::ReportException ( Isolate * isolate,
Local< Message > message,
Local< Value > exception )
static

Definition at line 3648 of file d8.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ResetOnProfileEndListener()

void v8::Shell::ResetOnProfileEndListener ( Isolate * isolate)
static

Definition at line 2834 of file d8.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ RunMain()

int v8::Shell::RunMain ( v8::Isolate * isolate,
bool last_run )
static

Definition at line 5929 of file d8.cc.

Here is the call graph for this function:

◆ RunMainIsolate()

bool v8::Shell::RunMainIsolate ( v8::Isolate * isolate,
bool keep_context_alive )
staticprivate

Definition at line 6002 of file d8.cc.

Here is the call graph for this function:

◆ RunShell()

void v8::Shell::RunShell ( Isolate * isolate)
staticprivate

Definition at line 4762 of file d8.cc.

Here is the call graph for this function:

◆ ScheduleTermination()

void v8::Shell::ScheduleTermination ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 3626 of file d8.cc.

Here is the call graph for this function:

◆ SerializerDeserialize()

void v8::Shell::SerializerDeserialize ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 2791 of file d8.cc.

Here is the call graph for this function:

◆ SerializerSerialize()

void v8::Shell::SerializerSerialize ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 2768 of file d8.cc.

Here is the call graph for this function:

◆ SerializeValue()

std::unique_ptr< SerializationData > v8::Shell::SerializeValue ( Isolate * isolate,
Local< Value > value,
Local< Value > transfer )
static

Definition at line 6412 of file d8.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_script_executed()

static void v8::Shell::set_script_executed ( )
inlinestatic

Definition at line 767 of file d8.h.

Here is the caller graph for this function:

◆ SetEnvironment()

void v8::Shell::SetEnvironment ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 609 of file d8-posix.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetFlushDenormals()

void v8::Shell::SetFlushDenormals ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 2677 of file d8.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetOptions()

bool v8::Shell::SetOptions ( int argc,
char * argv[] )
staticprivate

Definition at line 5655 of file d8.cc.

Here is the call graph for this function:

◆ SetPromiseHooks()

void v8::Shell::SetPromiseHooks ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 2737 of file d8.cc.

Here is the call graph for this function:

◆ SetTimeout()

void v8::Shell::SetTimeout ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 3113 of file d8.cc.

Here is the call graph for this function:

◆ SetUMask()

void v8::Shell::SetUMask ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 511 of file d8-posix.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetWaitUntilDone()

static void v8::Shell::SetWaitUntilDone ( Isolate * isolate,
bool value )
static

◆ StoreInCodeCache()

void v8::Shell::StoreInCodeCache ( Isolate * isolate,
Local< Value > name,
const ScriptCompiler::CachedData * data )
staticprivate

Definition at line 580 of file d8.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Stringify()

Local< String > v8::Shell::Stringify ( Isolate * isolate,
Local< Value > value )
staticprivate

Definition at line 3804 of file d8.cc.

Here is the call graph for this function:

◆ System()

void v8::Shell::System ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 417 of file d8-posix.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TerminateNow()

void v8::Shell::TerminateNow ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 3615 of file d8.cc.

Here is the call graph for this function:

◆ TestVerifySourcePositions()

void v8::Shell::TestVerifySourcePositions ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 2569 of file d8.cc.

Here is the call graph for this function:

◆ TriggerOnProfileEndListener()

void v8::Shell::TriggerOnProfileEndListener ( Isolate * isolate,
std::string profile )
static

Definition at line 2862 of file d8.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ UnsetEnvironment()

void v8::Shell::UnsetEnvironment ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 630 of file d8-posix.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ update_script_size()

static void v8::Shell::update_script_size ( int size)
inlinestatic

Definition at line 773 of file d8.h.

Here is the caller graph for this function:

◆ use_interactive_shell()

static bool v8::Shell::use_interactive_shell ( )
inlinestatic

Definition at line 768 of file d8.h.

◆ Version()

void v8::Shell::Version ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 3641 of file d8.cc.

Here is the call graph for this function:

◆ WaitForRunningWorkers()

void v8::Shell::WaitForRunningWorkers ( const i::ParkedScope & parked)
static

Definition at line 6442 of file d8.cc.

◆ WaitUntilDone()

static void v8::Shell::WaitUntilDone ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

◆ WasmLoadSourceMapCallback()

Local< String > v8::Shell::WasmLoadSourceMapCallback ( Isolate * isolate,
const char * name )
static

Definition at line 4303 of file d8.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ WorkerGetMessage()

void v8::Shell::WorkerGetMessage ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 3370 of file d8.cc.

Here is the call graph for this function:

◆ WorkerNew()

void v8::Shell::WorkerNew ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 3271 of file d8.cc.

Here is the call graph for this function:

◆ WorkerOnMessageGetter()

void v8::Shell::WorkerOnMessageGetter ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 3498 of file d8.cc.

Here is the call graph for this function:

◆ WorkerOnMessageSetter()

void v8::Shell::WorkerOnMessageSetter ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 3517 of file d8.cc.

Here is the call graph for this function:

◆ WorkerPostMessage()

void v8::Shell::WorkerPostMessage ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 3344 of file d8.cc.

Here is the call graph for this function:

◆ WorkerTerminate()

void v8::Shell::WorkerTerminate ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 3541 of file d8.cc.

Here is the call graph for this function:

◆ WorkerTerminateAndWait()

void v8::Shell::WorkerTerminateAndWait ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 3551 of file d8.cc.

Here is the call graph for this function:

◆ WriteChars()

void v8::Shell::WriteChars ( const char * name,
uint8_t * buffer,
size_t buffer_size )
static

Definition at line 4755 of file d8.cc.

Here is the call graph for this function:

◆ WriteFile()

void v8::Shell::WriteFile ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 2939 of file d8.cc.

Here is the call graph for this function:

◆ WriteIgnitionDispatchCountersFile()

void v8::Shell::WriteIgnitionDispatchCountersFile ( v8::Isolate * isolate)
staticprivate

Definition at line 4353 of file d8.cc.

Here is the call graph for this function:

◆ WriteLcovData()

void v8::Shell::WriteLcovData ( v8::Isolate * isolate,
const char * file )
staticprivate

Definition at line 4398 of file d8.cc.

Here is the call graph for this function:

◆ WriteStdout()

void v8::Shell::WriteStdout ( const v8::FunctionCallbackInfo< v8::Value > & info)
static

Definition at line 2926 of file d8.cc.

Here is the call graph for this function:

Member Data Documentation

◆ allow_new_workers_

bool v8::Shell::allow_new_workers_ = true
staticprivate

Definition at line 812 of file d8.h.

◆ array_buffer_allocator

ArrayBuffer::Allocator * v8::Shell::array_buffer_allocator
static

Definition at line 761 of file d8.h.

◆ cached_code_map_

std::map< std::string, std::unique_ptr< ScriptCompiler::CachedData > > v8::Shell::cached_code_map_
staticprivate

Definition at line 879 of file d8.h.

◆ cached_code_mutex_

base::LazyMutex v8::Shell::cached_code_mutex_
staticprivate

Definition at line 877 of file d8.h.

◆ context_mutex_

base::LazyMutex v8::Shell::context_mutex_
staticprivate

Definition at line 808 of file d8.h.

◆ counter_map_

CounterMap * v8::Shell::counter_map_
staticprivate

Definition at line 801 of file d8.h.

◆ counter_mutex_

base::Mutex v8::Shell::counter_mutex_
staticprivate

Definition at line 802 of file d8.h.

◆ counters_

CounterCollection * v8::Shell::counters_ = &local_counters_
staticprivate

Definition at line 806 of file d8.h.

◆ counters_file_

base::OS::MemoryMappedFile * v8::Shell::counters_file_ = nullptr
staticprivate

Definition at line 807 of file d8.h.

◆ evaluation_context_

Global< Context > v8::Shell::evaluation_context_
staticprivate

Definition at line 792 of file d8.h.

◆ isolate_running_streaming_tasks_

std::map<Isolate*, int> v8::Shell::isolate_running_streaming_tasks_
staticprivate

Definition at line 875 of file d8.h.

◆ isolate_status_

std::map<Isolate*, bool> v8::Shell::isolate_status_
staticprivate

Definition at line 874 of file d8.h.

◆ isolate_status_lock_

base::LazyMutex v8::Shell::isolate_status_lock_
staticprivate

Definition at line 873 of file d8.h.

◆ kInitialTicks

const base::TimeTicks v8::Shell::kInitialTicks = base::TimeTicks::Now()
staticprivate

Definition at line 809 of file d8.h.

◆ kPrompt

const char* v8::Shell::kPrompt
static

Definition at line 759 of file d8.h.

◆ local_counters_

CounterCollection v8::Shell::local_counters_
staticprivate

Definition at line 805 of file d8.h.

◆ options

ShellOptions v8::Shell::options
static

Definition at line 760 of file d8.h.

◆ profiler_end_callback_

std::map< Isolate *, std::pair< Global< Function >, Global< Context > > > v8::Shell::profiler_end_callback_
staticprivate

Definition at line 798 of file d8.h.

◆ profiler_end_callback_lock_

base::Mutex v8::Shell::profiler_end_callback_lock_
staticprivate

Definition at line 796 of file d8.h.

◆ quit_once_

base::OnceType v8::Shell::quit_once_ = V8_ONCE_INIT
staticprivate

Definition at line 793 of file d8.h.

◆ running_workers_

std::unordered_set< std::shared_ptr< Worker > > v8::Shell::running_workers_
staticprivate

Definition at line 813 of file d8.h.

◆ script_executed_

std::atomic< bool > v8::Shell::script_executed_ {false}
staticprivate

Definition at line 816 of file d8.h.

◆ stringify_function_

Global< Function > v8::Shell::stringify_function_
staticprivate

Definition at line 794 of file d8.h.

◆ stringify_source_

const char * v8::Shell::stringify_source_
staticprivate

Definition at line 800 of file d8.h.

◆ unhandled_promise_rejections_

std::atomic< int > v8::Shell::unhandled_promise_rejections_ {0}
staticprivate

Definition at line 880 of file d8.h.

◆ valid_fuzz_script_

std::atomic< bool > v8::Shell::valid_fuzz_script_ {false}
staticprivate

Definition at line 817 of file d8.h.

◆ workers_mutex_

base::LazyMutex v8::Shell::workers_mutex_
staticprivate

Definition at line 811 of file d8.h.


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