5#ifndef V8_OBJECTS_JS_ARRAY_H_
6#define V8_OBJECTS_JS_ARRAY_H_
18#include "torque-generated/src/objects/js-array-tq.inc"
25class JSArray :
public TorqueGeneratedJSArray<JSArray, JSObject> {
54 int capacity,
int length = 0);
172 :
public TorqueGeneratedTemplateLiteralObject<TemplateLiteralObject,
bool SetLengthWouldNormalize(uint32_t new_length)
static bool AnythingToArrayLength(Isolate *isolate, DirectHandle< Object > length_object, uint32_t *output)
static constexpr uint32_t kMaxArrayIndex
static V8_EXPORT_PRIVATE Maybe< bool > SetLength(DirectHandle< JSArray > array, uint32_t length)
void set_length(Tagged< Number > value, ReleaseStoreTag tag, WriteBarrierMode mode=UPDATE_WRITE_BARRIER)=delete
static const int kInitialMaxFastElementArray
static V8_EXPORT_PRIVATE void Initialize(DirectHandle< JSArray > array, int capacity, int length=0)
static constexpr uint32_t kMaxArrayLength
static const int kPreallocatedArrayElements
static const uint32_t kMinJoinStackSize
static bool MayHaveReadOnlyLength(Tagged< Map > js_array_map)
static bool WouldChangeReadOnlyLength(DirectHandle< JSArray > array, uint32_t index)
static Address ArrayJoinConcatToSequentialString(Isolate *isolate, Address raw_fixed_array, intptr_t length, Address raw_separator, Address raw_dest)
static void SetContent(DirectHandle< JSArray > array, DirectHandle< FixedArrayBase > storage)
static const int kLengthDescriptorIndex
bool HasArrayPrototype(Isolate *isolate)
static bool HasReadOnlyLength(DirectHandle< JSArray > array)
static const int kMaxCopyElements
static V8_WARN_UNUSED_RESULT Maybe< bool > ArraySetLength(Isolate *isolate, DirectHandle< JSArray > a, PropertyDescriptor *desc, Maybe< ShouldThrow > should_throw)
static constexpr uint32_t kMaxFastArrayLength
static V8_WARN_UNUSED_RESULT Maybe< bool > DefineOwnProperty(Isolate *isolate, DirectHandle< JSArray > o, DirectHandle< Object > name, PropertyDescriptor *desc, Maybe< ShouldThrow > should_throw)
#define V8_LOWER_LIMITS_MODE_BOOL
constexpr int kMaxRegularHeapObjectSize
constexpr int kDoubleSizeLog2
constexpr uint32_t kMaxUInt32
static constexpr int kMaxFixedArrayCapacity
#define DECL_ACCESSORS(name,...)
#define DECL_VERIFIER(Name)
#define DECL_RELAXED_GETTER(name,...)
#define DECL_PRINTER(Name)
#define DECL_INT_ACCESSORS(name)
#define TQ_OBJECT_CONSTRUCTORS(Type)
#define V8_EXPORT_PRIVATE
#define V8_WARN_UNUSED_RESULT