5#ifndef INCLUDE_CPPGC_DEFAULT_PLATFORM_H_
6#define INCLUDE_CPPGC_DEFAULT_PLATFORM_H_
24 int thread_pool_size = 0,
26 std::unique_ptr<TracingController> tracing_controller = {})
27 : v8_platform_(
v8::platform::NewDefaultPlatform(
28 thread_pool_size, idle_task_support,
29 v8::platform::InProcessStackDumping::kDisabled,
30 std::move(tracing_controller))) {}
33 return v8_platform_->GetPageAllocator();
37 return v8_platform_->MonotonicallyIncreasingTime();
44 return v8_platform_->GetForegroundTaskRunner(kNoIsolate);
47 std::unique_ptr<cppgc::JobHandle>
PostJob(
49 std::unique_ptr<cppgc::JobTask> job_task)
override {
50 return v8_platform_->PostJob(priority, std::move(job_task));
54 return v8_platform_->GetTracingController();