summaryrefslogtreecommitdiff
path: root/deps
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2019-03-15 22:58:54 +0100
committerRefael Ackermann <refack@gmail.com>2019-03-28 16:37:38 -0400
commit02171949a02fb55adfeeaec90a3fc9be1c1d2bd3 (patch)
treee54486ce519095c57a935339f17856d3335d1d39 /deps
parentbf572c7831fd121701c5571371ccd5ff7514c42c (diff)
downloadandroid-node-v8-02171949a02fb55adfeeaec90a3fc9be1c1d2bd3.tar.gz
android-node-v8-02171949a02fb55adfeeaec90a3fc9be1c1d2bd3.tar.bz2
android-node-v8-02171949a02fb55adfeeaec90a3fc9be1c1d2bd3.zip
deps: V8: cherry-pick 5b0510d
Original commit message: Give the implementation of v8::MicrotaskQueue::New This adds the entrypoint to MicrotaskQueue, which used to miss the implementation. Bug: v8:8124 Change-Id: I114fb69d975ee75c86b19349ca76789e425ea910 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1505232 Reviewed-by: Yang Guo <yangguo@chromium.org> Commit-Queue: Taiju Tsuiki <tzik@chromium.org> Cr-Commit-Position: refs/heads/master@{#60076} Refs: https://github.com/v8/v8/commit/5b0510db7c9f6f9f43f322d32fe33a19e3935f89 PR-URL: https://github.com/nodejs/node/pull/26685 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
Diffstat (limited to 'deps')
-rw-r--r--deps/v8/include/v8.h2
-rw-r--r--deps/v8/src/api.cc5
2 files changed, 6 insertions, 1 deletions
diff --git a/deps/v8/include/v8.h b/deps/v8/include/v8.h
index a5a88b685b..e3f1382702 100644
--- a/deps/v8/include/v8.h
+++ b/deps/v8/include/v8.h
@@ -6779,7 +6779,7 @@ class V8_EXPORT MicrotaskQueue {
/**
* Creates an empty MicrotaskQueue instance.
*/
- static std::unique_ptr<MicrotaskQueue> New();
+ static std::unique_ptr<MicrotaskQueue> New(Isolate* isolate);
virtual ~MicrotaskQueue() = default;
diff --git a/deps/v8/src/api.cc b/deps/v8/src/api.cc
index 8375f13ba5..716db0c85d 100644
--- a/deps/v8/src/api.cc
+++ b/deps/v8/src/api.cc
@@ -8931,6 +8931,11 @@ void v8::Isolate::LocaleConfigurationChangeNotification() {
#endif // V8_INTL_SUPPORT
}
+// static
+std::unique_ptr<MicrotaskQueue> MicrotaskQueue::New(Isolate* isolate) {
+ return i::MicrotaskQueue::New(reinterpret_cast<i::Isolate*>(isolate));
+}
+
MicrotasksScope::MicrotasksScope(Isolate* isolate, MicrotasksScope::Type type)
: MicrotasksScope(
isolate,