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

Unified Diff: src/js/promise.js

Issue 2246963002: [isolate] Remove unused exception handle (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: microtaskq.js Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/js/prologue.js ('k') | src/v8.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/js/promise.js
diff --git a/src/js/promise.js b/src/js/promise.js
index a666080e78654b0474a48badc009058a416ab39c..463fc25e00effc521f1a212f56e6b00d19d4022d 100644
--- a/src/js/promise.js
+++ b/src/js/promise.js
@@ -12,6 +12,7 @@
// Imports
var InternalArray = utils.InternalArray;
+var MicrotaskEnq;
var promiseCombinedDeferredSymbol =
utils.ImportNow("promise_combined_deferred_symbol");
var promiseHasHandlerSymbol =
@@ -31,6 +32,7 @@ var toStringTagSymbol = utils.ImportNow("to_string_tag_symbol");
utils.Import(function(from) {
SpeciesConstructor = from.SpeciesConstructor;
+ MicrotaskEnq = from.MicrotaskEnq;
});
// -------------------------------------------------------------------
@@ -166,7 +168,7 @@ function PromiseHandle(value, handler, deferred) {
function PromiseEnqueue(value, tasks, deferreds, status) {
var id, name, instrumenting = DEBUG_IS_ACTIVE;
- %EnqueueMicrotask(function() {
+ MicrotaskEnq(function() {
if (instrumenting) {
%DebugAsyncTaskEvent({ type: "willHandle", id: id, name: name });
}
@@ -279,7 +281,7 @@ function ResolvePromise(promise, resolution) {
var id;
var name = "PromiseResolveThenableJob";
var instrumenting = DEBUG_IS_ACTIVE;
- %EnqueueMicrotask(function() {
+ MicrotaskEnq(function() {
if (instrumenting) {
%DebugAsyncTaskEvent({ type: "willHandle", id: id, name: name });
}
« no previous file with comments | « src/js/prologue.js ('k') | src/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698