/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
deps/v8/src/objects/js-disposable-stack.tq
38 строк
1 KB
Michaël Zasso
deps: update V8 to 13.6.233.8
02 май 2025, 16:06
Не верифицирован
02 май 2025, 16:06
918fe04
Код
Авторство
О чём код?
// Copyright 2024 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 enum DisposableStackState extends uint31 { kDisposed, kPending } extern enum DisposeMethodCallType extends uint31 { kValueIsReceiver, kValueIsArgument } extern enum DisposeMethodHint extends uint31 { kSyncDispose, kAsyncDispose } extern enum DisposableStackResourcesType extends uint31 { kAllSync, kAtLeastOneAsync } bitfield struct DisposableStackStatus extends uint31 { state: DisposableStackState: 1 bit; needs_await: bool: 1 bit; has_awaited: bool: 1 bit; suppressed_error_created: bool: 1 bit; length: int32: 27 bit; } extern class JSDisposableStackBase extends JSObject { // In the stack, [i] is the value that the initializer evaluates to, [i+1] // is dispose method, and [i+2] contains SmiTagged of an integer containing // two CallTypeBit and HintBit bitfields. `disposablestack.prototype.adopt` is // the only case that the value is the argument of method (CallType = // `kValueIsArgument`). stack: FixedArray; status: SmiTagged<DisposableStackStatus>; error: Object|Hole; error_message: Object|Hole; } extern class JSSyncDisposableStack extends JSDisposableStackBase {} extern class JSAsyncDisposableStack extends JSDisposableStackBase {}