5#ifndef V8_OBJECTS_LITERAL_OBJECTS_H_
6#define V8_OBJECTS_LITERAL_OBJECTS_H_
20class StructBodyDescriptor;
22#include "torque-generated/src/objects/literal-objects-tq.inc"
29 RootIndex::kObjectBoilerplateDescriptionMap;
44 ObjectBoilerplateDescriptionShape> {
50 template <
class IsolateT>
52 IsolateT* isolate,
int boilerplate,
int all_properties,
int index_keys,
56 inline int flags()
const;
83 :
public TorqueGeneratedArrayBoilerplateDescription<
84 ArrayBoilerplateDescription, Struct> {
113#define FIELD_LIST(V) \
114 V(kDataOffset, kTrustedPointerSize) \
115 V(kSourceOffset, kTaggedSize) \
116 V(kFlagsOffset, kTaggedSize) \
137#define COMPUTED_ENTRY_BIT_FIELDS(V, _) \
138 V(ValueKindBits, ValueKind, 2, _) \
139 V(KeyIndexBits, unsigned, 29, _)
141#undef COMPUTED_ENTRY_BIT_FIELDS
156 template <
typename IsolateT>
169 template <
typename IsolateT,
typename Dictionary>
175 template <
typename IsolateT>
178 uint32_t
key,
int key_index,
181#define FIELD_LIST(V) \
182 V(kArgumentsCountOffset, kTaggedSize) \
183 V(kStaticPropertiesTemplateOffset, kTaggedSize) \
184 V(kStaticElementsTemplateOffset, kTaggedSize) \
185 V(kStaticComputedPropertiesOffset, kTaggedSize) \
186 V(kInstancePropertiesTemplateOffset, kTaggedSize) \
187 V(kInstanceElementsTemplateOffset, kTaggedSize) \
188 V(kInstanceComputedPropertiesOffset, kTaggedSize) \
189 V(kUnalignedHeaderSize, OBJECT_POINTER_PADDING(kUnalignedHeaderSize)) \
204#include "src/objects/object-macros-undef.h"
#define DEFINE_BIT_FIELDS(LIST_MACRO)
void set_elements_kind(ElementsKind kind)
ElementsKind elements_kind() const
void BriefPrintDetails(std::ostream &os)
static const int kMinimumPrototypePropertiesCount
static void AddToPropertiesTemplate(IsolateT *isolate, Handle< Dictionary > dictionary, Handle< Name > name, int key_index, ValueKind value_kind, Tagged< Smi > value)
static const int kMinimumClassPropertiesCount
static void AddToElementsTemplate(IsolateT *isolate, Handle< NumberDictionary > dictionary, uint32_t key, int key_index, ValueKind value_kind, Tagged< Smi > value)
static Handle< ClassBoilerplate > New(IsolateT *isolate, ClassLiteral *expr, AllocationType allocation=AllocationType::kYoung)
DefineClassArgumentsIndices
@ kPrototypeArgumentIndex
@ kFirstDynamicArgumentIndex
@ kConstructorArgumentIndex
OBJECT_CONSTRUCTORS(ClassBoilerplate, Struct)
static constexpr bool kLengthEqualsCapacity
V8_ARRAY_EXTRA_FIELDS({ TaggedMember< Smi > backing_store_size_;TaggedMember< Smi > flags_;})
static constexpr RootIndex kMapRootIndex
int backing_store_size() const
static constexpr int ValueIndex(int i)
static constexpr int NameIndex(int i)
void set_backing_store_size(int backing_store_size)
static Handle< ObjectBoilerplateDescription > New(IsolateT *isolate, int boilerplate, int all_properties, int index_keys, bool has_seen_proto, AllocationType allocation=AllocationType::kYoung)
void set_flags(int value)
static constexpr int kElementsPerEntry
int boilerplate_properties_count() const
void set_key_value(int index, Tagged< Object > key, Tagged< Object > value)
OBJECT_CONSTRUCTORS(RegExpBoilerplateDescription, Struct)
void BriefPrintDetails(std::ostream &os)
#define COMPUTED_ENTRY_BIT_FIELDS(V, _)
kStaticElementsTemplateOffset kInstancePropertiesTemplateOffset instance_computed_properties
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 name
kStaticElementsTemplateOffset instance_properties_template
V8HeapCompressionSchemeImpl< MainCage > V8HeapCompressionScheme
#define DECL_ACCESSORS(name,...)
#define DECL_TRUSTED_POINTER_ACCESSORS(name, type)
#define DECL_VERIFIER(Name)
#define DECL_PRINTER(Name)
#define DECL_INT_ACCESSORS(name)
#define TQ_OBJECT_CONSTRUCTORS(Type)
#define DEFINE_FIELD_OFFSET_CONSTANTS(StartOffset, LIST_MACRO)