descriptor-array.tq 738 Bytes
Newer Older
Tobias Tebbi's avatar
Tobias Tebbi committed
1 2 3 4 5 6 7 8 9 10 11
// 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.

@generatePrint
@generateCppClass
extern class EnumCache extends Struct {
  keys: FixedArray;
  indices: FixedArray;
}

12 13 14 15 16 17 18
@export
struct DescriptorEntry {
  key: Name|Undefined;
  details: Smi|Undefined;
  value: JSAny|Weak<Map>|AccessorInfo|AccessorPair|ClassPositions;
}

19
@generateCppClass
Tobias Tebbi's avatar
Tobias Tebbi committed
20
extern class DescriptorArray extends HeapObject {
21
  const number_of_all_descriptors: uint16;
Tobias Tebbi's avatar
Tobias Tebbi committed
22 23 24 25
  number_of_descriptors: uint16;
  raw_number_of_marked_descriptors: uint16;
  filler16_bits: uint16;
  enum_cache: EnumCache;
26
  descriptors[number_of_all_descriptors]: DescriptorEntry;
Tobias Tebbi's avatar
Tobias Tebbi committed
27
}