Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Side by Side Diff: gin/run_microtasks_observer.cc

Issue 1743763004: Use v8::MicrotasksScope internally in V8RecursionScope. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@v8rs-2-endofscope
Patch Set: v8_helpers Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "gin/run_microtasks_observer.h" 5 #include "gin/run_microtasks_observer.h"
6 6
7 namespace gin { 7 namespace gin {
8 8
9 RunMicrotasksObserver::RunMicrotasksObserver(v8::Isolate* isolate) 9 RunMicrotasksObserver::RunMicrotasksObserver(v8::Isolate* isolate)
10 : isolate_(isolate) { 10 : isolate_(isolate) {
11 } 11 }
12 12
13 void RunMicrotasksObserver::WillProcessTask(const base::PendingTask& task) { 13 void RunMicrotasksObserver::WillProcessTask(const base::PendingTask& task) {
14 } 14 }
15 15
16 void RunMicrotasksObserver::DidProcessTask(const base::PendingTask& task) { 16 void RunMicrotasksObserver::DidProcessTask(const base::PendingTask& task) {
17 v8::Isolate::Scope scope(isolate_); 17 v8::Isolate::Scope scope(isolate_);
18 isolate_->RunMicrotasks(); 18 v8::MicrotasksScope::PerformCheckpoint(isolate_);
19 } 19 }
20 20
21 } // namespace gin 21 } // namespace gin
OLDNEW
« no previous file with comments | « gin/run_microtasks_observer.h ('k') | third_party/WebKit/Source/bindings/core/v8/ReadableStreamOperationsTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698