code.tq 1.13 KB
Newer Older
Tobias Tebbi's avatar
Tobias Tebbi committed
1 2 3 4 5 6 7 8 9
// 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 WeakFixedArray;

extern class BytecodeArray extends FixedArrayBase {
  // TODO(v8:8983): bytecode array object sizes vary based on their contents.
  constant_pool: FixedArray;
10
  // The handler table contains offsets of exception handlers.
Tobias Tebbi's avatar
Tobias Tebbi committed
11
  handler_table: ByteArray;
12 13 14 15 16 17 18 19 20
  // Source position table. Can contain:
  // * undefined (initial value)
  // * empty_byte_array (for bytecode generated for functions that will never
  // have source positions, e.g. native functions).
  // * ByteArray (when source positions have been collected for the bytecode)
  // * exception (when an error occurred while explicitly collecting source
  // positions for pre-existing bytecode).
  @cppAcquireLoad
  @cppReleaseStore
21
  source_position_table: Undefined|ByteArray|Exception;
Tobias Tebbi's avatar
Tobias Tebbi committed
22 23 24
  frame_size: int32;
  parameter_size: int32;
  incoming_new_target_or_generator_register: int32;
25
  osr_loop_nesting_level: int8;
Tobias Tebbi's avatar
Tobias Tebbi committed
26 27 28 29
  bytecode_age: int8;
}

extern class CodeDataContainer extends HeapObject;