v8  8.6.395 (node 15.0.1)
V8 is Google's open source JavaScript engine
libplatform.h File Reference
#include <memory>
#include "libplatform/libplatform-export.h"
#include "libplatform/v8-tracing.h"
#include "v8-platform.h"
#include "v8config.h"
Include dependency graph for libplatform.h:

Go to the source code of this file.

Namespaces

 v8
 
 v8::platform
 

Enumerations

enum class  IdleTaskSupport { kDisabled , kEnabled }
 
enum class  InProcessStackDumping { kDisabled , kEnabled }
 
enum class  MessageLoopBehavior : bool { kDoNotWait = false , kWaitForWork = true }
 

Functions

V8_PLATFORM_EXPORT std::unique_ptr< v8::PlatformNewDefaultPlatform (int thread_pool_size=0, IdleTaskSupport idle_task_support=IdleTaskSupport::kDisabled, InProcessStackDumping in_process_stack_dumping=InProcessStackDumping::kDisabled, std::unique_ptr< v8::TracingController > tracing_controller={})
 
V8_PLATFORM_EXPORT std::unique_ptr< v8::JobHandleNewDefaultJobHandle (v8::Platform *platform, v8::TaskPriority priority, std::unique_ptr< v8::JobTask > job_task, size_t num_worker_threads)
 
V8_PLATFORM_EXPORT bool PumpMessageLoop (v8::Platform *platform, v8::Isolate *isolate, MessageLoopBehavior behavior=MessageLoopBehavior::kDoNotWait)
 
V8_PLATFORM_EXPORT void RunIdleTasks (v8::Platform *platform, v8::Isolate *isolate, double idle_time_in_seconds)
 
V8_PLATFORM_EXPORT void SetTracingController (v8::Platform *platform, v8::platform::tracing::TracingController *tracing_controller)
 
V8_PLATFORM_EXPORT void NotifyIsolateShutdown (v8::Platform *platform, Isolate *isolate)