5#ifndef V8_OBJECTS_BYTECODE_ARRAY_H_
6#define V8_OBJECTS_BYTECODE_ARRAY_H_
19namespace interpreter {
25#include "torque-generated/src/objects/bytecode-array-tq.inc"
60 inline int32_t max_frame_size() const;
62 static constexpr
int SizeFor(
int length) {
66 inline uint8_t
get(
int index)
const;
67 inline void set(
int index, uint8_t value);
133#define FIELD_LIST(V) \
134 V(kLengthOffset, kTaggedSize) \
135 V(kWrapperOffset, kTaggedSize) \
136 V(kSourcePositionTableOffset, kTaggedSize) \
137 V(kHandlerTableOffset, kTaggedSize) \
138 V(kConstantPoolOffset, kTaggedSize) \
139 V(kFrameSizeOffset, kInt32Size) \
140 V(kParameterSizeOffset, kUInt16Size) \
141 V(kMaxArgumentsOffset, kUInt16Size) \
142 V(kIncomingNewTargetOrGeneratorRegisterOffset, kInt32Size) \
143 V(kOptionalPaddingOffset, 0) \
144 V(kUnalignedHeaderSize, OBJECT_POINTER_PADDING(kUnalignedHeaderSize)) \
151 class BodyDescriptor;
166#define FIELD_LIST(V) \
167 V(kBytecodeOffset, kTrustedPointerSize) \
void set_length(int value, ReleaseStoreTag tag)
uint16_t max_arguments() const
uint16_t parameter_count_without_receiver() const
interpreter::Register incoming_new_target_or_generator_register() const
void set(int index, uint8_t value)
bool HasSourcePositionTable() const
int SourceStatementPosition(int offset) const
int SourcePosition(int offset) const
void set_max_arguments(uint16_t max_arguments)
OBJECT_CONSTRUCTORS(BytecodeArray, ExposedTrustedObject)
void CopyBytecodesTo(Tagged< BytecodeArray > to)
Address GetFirstBytecodeAddress()
int BytecodeArraySize() const
uint16_t parameter_count() const
void set_length(int value)
void set_incoming_new_target_or_generator_register(interpreter::Register incoming_new_target_or_generator_register)
static const int kMaxLength
int register_count() const
V8_EXPORT_PRIVATE void Disassemble(std::ostream &os)
void SetSourcePositionsFailedToCollect()
uint8_t get(int index) const
int length(AcquireLoadTag tag) const
V8_EXPORT_PRIVATE void PrintJson(std::ostream &os)
static const int kMaxSize
void set_parameter_count(uint16_t number_of_parameters)
static constexpr int SizeFor(int length)
OBJECT_CONSTRUCTORS(BytecodeWrapper, Struct)
static constexpr int kHeaderSize
#define OBJECT_POINTER_ALIGN(value)
V8_INLINE IndirectHandle< T > handle(Tagged< T > object, Isolate *isolate)
too high values may cause the compiler to set high thresholds for inlining to as much as possible avoid inlined allocation of objects that cannot escape trace load stores from virtual maglev objects use TurboFan fast string builder analyze liveness of environment slots and zap dead values trace TurboFan load elimination emit data about basic block usage in builtins to this enable builtin reordering when run mksnapshot flag for emit warnings when applying builtin profile data verify register allocation in TurboFan randomly schedule instructions to stress dependency tracking enable store store elimination in TurboFan rewrite far to near simulate GC compiler thread race related to allow float parameters to be passed in simulator mode JS Wasm Run additional turbo_optimize_inlined_js_wasm_wrappers enable experimental feedback collection in generic lowering enable Turboshaft s WasmLoadElimination enable Turboshaft s low level load elimination for JS enable Turboshaft s escape analysis for string concatenation use enable Turbolev features that we want to ship in the not too far future trace individual Turboshaft reduction steps trace intermediate Turboshaft reduction steps invocation count threshold for early optimization Enables optimizations which favor memory size over execution speed Enables sampling allocation profiler with X as a sample interval min size of a semi the new space consists of two semi spaces max size of the Collect garbage after Collect garbage after keeps maps alive for< n > old space garbage collections print one detailed trace line in allocation gc speed threshold for starting incremental marking via a task in percent of available threshold for starting incremental marking immediately in percent of available Use a single schedule for determining a marking schedule between JS and C objects schedules the minor GC task with kUserVisible priority max worker number of concurrent for NumberOfWorkerThreads start background threads that allocate memory concurrent_array_buffer_sweeping use parallel threads to clear weak refs in the atomic pause trace progress of the incremental marking trace object counts and memory usage * MB
#define DECL_ACCESSORS(name,...)
#define DECL_GETTER(name,...)
#define DECL_ACQUIRE_GETTER(name,...)
#define DECL_RELEASE_ACQUIRE_PROTECTED_POINTER_ACCESSORS(name, type)
#define DECL_TRUSTED_POINTER_ACCESSORS(name, type)
#define DECL_VERIFIER(Name)
#define DECL_PROTECTED_POINTER_ACCESSORS(name, type)
#define DECL_PRINTER(Name)
#define DECL_INT32_ACCESSORS(name)
#define V8_EXPORT_PRIVATE
#define DEFINE_FIELD_OFFSET_CONSTANTS(StartOffset, LIST_MACRO)