/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
deps/v8/src/objects/js-generator.tq
49 строк
2 KB
Michaël Zasso
deps: update V8 to 14.6.202.33
24 апр 2026, 19:01
Не верифицирован
24 апр 2026, 19:01
f1e0b83
Код
Авторство
О чём код?
// Copyright 2019 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. extern class JSGeneratorObject extends JSObject { function: JSFunction; context: Context; receiver: JSAny; // For executing generators: the most recent input value. // For suspended generators: debug information (bytecode offset). // There is currently no need to remember the most recent input value for a // suspended generator. input_or_debug_pos: Object; // The most recent resume mode. resume_mode: Smi; // A positive value indicates a suspended generator. The special // kGeneratorExecuting and kGeneratorClosed values indicate that a generator // cannot be resumed. continuation: Smi; // Saved interpreter register file. parameters_and_registers: FixedArray; } extern class JSAsyncFunctionObject extends JSGeneratorObject { promise: JSPromise; // Resolve/reject closures for await, reused across all await expressions. // Initialized to undefined, lazily allocated on first await. await_resolve_closure: JSFunction|Undefined; await_reject_closure: JSFunction|Undefined; } extern class JSAsyncGeneratorObject extends JSGeneratorObject { // Pointer to the head of a singly linked list of AsyncGeneratorRequest, or // undefined. queue: HeapObject; // Whether or not the generator is currently awaiting. is_awaiting: Smi; } extern class AsyncGeneratorRequest extends Struct { next: AsyncGeneratorRequest|Undefined; resume_mode: Smi; value: Object; promise: JSPromise; }