@@ -3023,9 +3023,7 @@ class NotifyingTaskRunner final : public v8::TaskRunner {
30233023 NotifyingTaskRunner (std::shared_ptr<v8::TaskRunner> wrapped,
30243024 ForegroundTaskPostedCallback callback,
30253025 v8::Isolate* isolate)
3026- : wrapped_(std::move(wrapped)),
3027- callback_ (callback),
3028- isolate_(isolate) {}
3026+ : wrapped_(std::move(wrapped)), callback_(callback), isolate_(isolate) {}
30293027
30303028 bool IdleTasksEnabled () override { return wrapped_->IdleTasksEnabled (); }
30313029 bool NonNestableTasksEnabled () const override {
@@ -3041,9 +3039,8 @@ class NotifyingTaskRunner final : public v8::TaskRunner {
30413039 wrapped_->PostTask (std::move (task), location);
30423040 callback_ (static_cast <void *>(isolate_));
30433041 }
3044- void PostNonNestableTaskImpl (
3045- std::unique_ptr<v8::Task> task,
3046- const v8::SourceLocation& location) override {
3042+ void PostNonNestableTaskImpl (std::unique_ptr<v8::Task> task,
3043+ const v8::SourceLocation& location) override {
30473044 wrapped_->PostNonNestableTask (std::move (task), location);
30483045 callback_ (static_cast <void *>(isolate_));
30493046 }
@@ -3094,16 +3091,14 @@ class NotifyingPlatform : public v8::platform::DefaultPlatform {
30943091 using IdleTaskSupport = v8::platform::IdleTaskSupport;
30953092
30963093 public:
3097- NotifyingPlatform (int thread_pool_size,
3098- IdleTaskSupport idle_task_support,
3094+ NotifyingPlatform (int thread_pool_size, IdleTaskSupport idle_task_support,
30993095 ForegroundTaskPostedCallback callback)
31003096 : DefaultPlatform(thread_pool_size, idle_task_support),
31013097 callback_ (callback) {}
31023098
31033099 std::shared_ptr<v8::TaskRunner> GetForegroundTaskRunner (
31043100 v8::Isolate* isolate, v8::TaskPriority priority) override {
3105- auto original =
3106- DefaultPlatform::GetForegroundTaskRunner (isolate, priority);
3101+ auto original = DefaultPlatform::GetForegroundTaskRunner (isolate, priority);
31073102 std::lock_guard<std::mutex> lock (mutex_);
31083103 auto key = std::make_pair (isolate, priority);
31093104 auto it = runners_.find (key);
@@ -3196,9 +3191,9 @@ v8::Platform* v8__Platform__NewSingleThreadedDefaultPlatform(
31963191 .release ();
31973192}
31983193
3199- v8::Platform* v8__Platform__NewNotifyingPlatform (
3200- int thread_pool_size, bool idle_task_support,
3201- void (*callback)(void *)) {
3194+ v8::Platform* v8__Platform__NewNotifyingPlatform (int thread_pool_size,
3195+ bool idle_task_support,
3196+ void (*callback)(void *)) {
32023197 if (thread_pool_size < 1 ) {
32033198 thread_pool_size = std::thread::hardware_concurrency ();
32043199 }
0 commit comments