forked from nodejs/node
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbytecode-array.tq
More file actions
32 lines (28 loc) · 1.17 KB
/
bytecode-array.tq
File metadata and controls
32 lines (28 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// 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.
type DependentCode extends WeakArrayList;
@cppObjectDefinition
extern class BytecodeArray extends ExposedTrustedObject {
const length: Smi;
wrapper: BytecodeWrapper;
source_position_table: ProtectedPointer<TrustedByteArray>;
handler_table: ProtectedPointer<TrustedByteArray>;
constant_pool: ProtectedPointer<TrustedFixedArray>;
frame_size: int32;
parameter_size: uint16;
max_arguments: uint16;
incoming_new_target_or_generator_register: int32;
@if(TAGGED_SIZE_8_BYTES) optional_padding: uint32;
@ifnot(TAGGED_SIZE_8_BYTES) optional_padding: void;
bytes[length]: uint8;
}
// A wrapper around a bytecode object that lives inside the sandbox. This can
// be useful in cases where a tagged reference to a bytecode array is required,
// for example because it is stored inside an array of tagged values.
@cppObjectDefinition
extern class BytecodeWrapper extends Struct {
bytecode: TrustedPointer<BytecodeArray>;
}
extern class Code extends ExposedTrustedObject;
extern class CodeWrapper extends Struct;