/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
deps/v8/src/objects/descriptor-array.tq
44 строки
1 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. @cppObjectLayoutDefinition extern class EnumCache extends Struct { keys: FixedArray; indices: FixedArray; } @export struct DescriptorEntry { key: Name|Undefined; details: Smi|Undefined; value: JSAny|Weak<Map>|AccessorInfo|AccessorPair|ClassPositions| NumberDictionary; } type FastIterableState extends uint8 constexpr 'DescriptorArray::FastIterableState'; bitfield struct DescriptorArrayFlags extends uint32 { fast_iterable: FastIterableState: 2 bit; } @generateBodyDescriptor @generateUniqueMap extern class DescriptorArray extends HeapObject { const number_of_all_descriptors: uint16; number_of_descriptors: uint16; // Raw GC state that is maintained during marking. // See `DescriptorArrayMarkingState`. raw_gc_state: uint32; flags: DescriptorArrayFlags; @if(TAGGED_SIZE_8_BYTES) optional_padding: uint32; @ifnot(TAGGED_SIZE_8_BYTES) optional_padding: void; enum_cache: EnumCache; descriptors[number_of_all_descriptors]: DescriptorEntry; } // A descriptor array where all values are held strongly. class StrongDescriptorArray extends DescriptorArray {}