Home
last modified time | relevance | path

Searched refs:microtask (Results 1 – 24 of 24) sorted by relevance

/third_party/node/deps/v8/src/builtins/
Dbuiltins-microtask-queue-gen.cc39 TNode<Microtask> microtask);
119 TNode<Context> current_context, TNode<Microtask> microtask) { in RunSingleMicrotask() argument
120 CSA_DCHECK(this, TaggedIsNotSmi(microtask)); in RunSingleMicrotask()
122 StoreRoot(RootIndex::kCurrentMicrotask, microtask); in RunSingleMicrotask()
124 TNode<Map> microtask_map = LoadMap(microtask); in RunSingleMicrotask()
150 LoadObjectField<Context>(microtask, CallableTask::kContextOffset); in RunSingleMicrotask()
155 LoadObjectField<JSReceiver>(microtask, CallableTask::kCallableOffset); in RunSingleMicrotask()
168 LoadObjectField(microtask, CallbackTask::kCallbackOffset); in RunSingleMicrotask()
170 LoadObjectField(microtask, CallbackTask::kDataOffset); in RunSingleMicrotask()
194 microtask, PromiseResolveThenableJobTask::kContextOffset); in RunSingleMicrotask()
[all …]
Dpromise-abstract-operations.tq109 // context of the microtask. See step 3 of HTML's EnqueueJob:
115 // and schedule that on the microtask queue. We try to minimize the number
177 // onto the microtask queue.
453 // push onto the microtask queue.
463 let microtask: PromiseReactionJobTask;
467 microtask = NewPromiseFulfillReactionJobTask(
474 microtask = NewPromiseRejectReactionJobTask(
481 EnqueueMicrotask(handlerContext, microtask);
/third_party/node/deps/v8/src/execution/
Dmicrotask-queue.cc74 Microtask microtask = Microtask::cast(Object(raw_microtask)); in CallEnqueueMicrotask() local
76 ->EnqueueMicrotask(microtask); in CallEnqueueMicrotask()
84 Handle<CallableTask> microtask = isolate->factory()->NewCallableTask( in EnqueueMicrotask() local
86 EnqueueMicrotask(*microtask); in EnqueueMicrotask()
94 Handle<CallbackTask> microtask = isolate->factory()->NewCallbackTask( in EnqueueMicrotask() local
97 EnqueueMicrotask(*microtask); in EnqueueMicrotask()
100 void MicrotaskQueue::EnqueueMicrotask(Microtask microtask) { in EnqueueMicrotask() argument
109 ring_buffer_[(start_ + size_) % capacity_] = microtask.ptr(); in EnqueueMicrotask()
256 Object microtask(ring_buffer_[(index + start_) % capacity_]); in get() local
257 return Microtask::cast(microtask); in get()
Dmicrotask-queue.h41 v8::Local<Function> microtask) override;
54 void EnqueueMicrotask(Microtask microtask);
/third_party/node/test/fixtures/wpt/
DREADME.md23 - html/webappapis/microtask-queuing: https://github.com/web-platform-tests/wpt/tree/2c5c3c4c27/html…
/third_party/node/deps/v8/src/runtime/
Druntime-promise.cc80 Handle<CallableTask> microtask = isolate->factory()->NewCallableTask( in RUNTIME_FUNCTION() local
84 if (microtask_queue) microtask_queue->EnqueueMicrotask(*microtask); in RUNTIME_FUNCTION()
/third_party/node/deps/v8/include/
Dv8-microtask-queue.h54 Local<Function> microtask) = 0;
Dv8-isolate.h1225 void EnqueueMicrotask(Local<Function> microtask);
/third_party/node/deps/v8/src/heap/
Dfactory.cc1432 auto microtask = NewStructInternal<CallableTask>(CALLABLE_TASK_TYPE, in NewCallableTask() local
1435 microtask.set_callable(*callable, SKIP_WRITE_BARRIER); in NewCallableTask()
1436 microtask.set_context(*context, SKIP_WRITE_BARRIER); in NewCallableTask()
1437 return handle(microtask, isolate()); in NewCallableTask()
1442 auto microtask = NewStructInternal<CallbackTask>(CALLBACK_TASK_TYPE, in NewCallbackTask() local
1445 microtask.set_callback(*callback, SKIP_WRITE_BARRIER); in NewCallbackTask()
1446 microtask.set_data(*data, SKIP_WRITE_BARRIER); in NewCallbackTask()
1447 return handle(microtask, isolate()); in NewCallbackTask()
1454 auto microtask = NewStructInternal<PromiseResolveThenableJobTask>( in NewPromiseResolveThenableJobTask() local
1457 microtask.set_promise_to_resolve(*promise_to_resolve, SKIP_WRITE_BARRIER); in NewPromiseResolveThenableJobTask()
[all …]
/third_party/node/doc/api/
Dglobals.md574 The `queueMicrotask()` method queues a microtask to invoke `callback`. If
578 The microtask queue is managed by V8 and may be used in a similar manner to
580 `process.nextTick()` queue is always processed before the microtask queue
Dv8.md695 throw as it would produce an infinite microtask loop.**
722 throw as it would produce an infinite microtask loop.**
749 throw as it would produce an infinite microtask loop.**
776 throw as it would produce an infinite microtask loop.**
806 throw as it would produce an infinite microtask loop.**
Dprocess.md2526 also defers execution of a function using the same microtask queue used to
2528 Node.js, every time the "next tick queue" is drained, the microtask queue
2564 console.log('microtask callback');
2570 // microtask callback
2580 console.log('microtask', a + b);
2589 // microtask 3
2593 queue and microtask queue are handled. Errors thrown within a queued microtask
Dvm.md1578 In this case, the microtask scheduled through `promise.then()` will be run
1583 Promise callbacks are entered into the microtask queue of the context in which
1585 in the above example, then `loop` will be pushed into the global microtask
Devents.md1489 because the `process.nextTick()` queue is drained before the `Promise` microtask
Dn-api.md5816 Any `process.nextTick`s or Promises scheduled on the microtask queue by
/third_party/node/deps/v8/
DBUILD.bazel520 "include/v8-microtask.h",
521 "include/v8-microtask-queue.h",
922 "src/objects/microtask.tq",
1309 "src/execution/microtask-queue.cc",
1310 "src/execution/microtask-queue.h",
1749 "src/objects/microtask-inl.h",
1750 "src/objects/microtask.h",
2857 "src/builtins/builtins-microtask-queue-gen.cc",
DBUILD.gn1810 "src/objects/microtask.tq",
2373 "src/builtins/builtins-microtask-queue-gen.cc",
2568 "include/v8-microtask-queue.h",
2569 "include/v8-microtask.h",
2951 "src/execution/microtask-queue.h",
3248 "src/objects/microtask-inl.h",
3249 "src/objects/microtask.h",
4221 "src/execution/microtask-queue.cc",
/third_party/node/test/fixtures/wpt/interfaces/
Dhtml.idl1981 // microtask queuing
/third_party/node/doc/changelogs/
DCHANGELOG_V11.md1269 …hub.com/nodejs/node/commit/74ee8d3b72)] - **test**: run html/webappapis/microtask-queuing WPT (Joy…
1270 …ub.com/nodejs/node/commit/572a70feae)] - **test**: pull html/webappapis/microtask-queuing WPT (Joy…
1293 …ommit/aa9a86aa32)] - **test,worker**: verify that `.terminate()` breaks microtask queue (Anna Henn…
2775 …nodejs/node/commit/5ed4b8974a)] - **doc**: fix confusing language about microtask queue (Gus Capla…
DCHANGELOG_V15.md1160 …tps://github.com/nodejs/node/commit/bbc0d14cd2)] - **src**: use correct microtask queue for checkp…
1164 …/nodejs/node/commit/5ff7f42e65)] - **src**: use correct outer Context’s microtask queue (Anna Henn…
DCHANGELOG_ARCHIVE.md238 * node: support v8 microtask queue (Vladimir Kurchatkin)
DCHANGELOG_V5.md649 …`MakeCallback()` call no longer causes the `nextTick` queue or Promises microtask queue to be proc…
DCHANGELOG_V14.md3111 …* **(SEMVER-MINOR)** add run-after-evaluate microtask mode (Anna Henningsen) [#34023](https://gith…
3253 …commit/70c4045aa5)] - **(SEMVER-MINOR)** **vm**: add run-after-evaluate microtask mode (Anna Henni…
DCHANGELOG_V16.md1728 * \[[`4709da0372`](https://github.com/nodejs/node/commit/4709da0372)] - **test**: ensure microtask