5#ifndef V8_COMPILER_ALLOCATION_BUILDER_INL_H_
6#define V8_COMPILER_ALLOCATION_BUILDER_INL_H_
34 DCHECK_NE(NATIVE_CONTEXT_TYPE, map.instance_type());
38 static_assert(
static_cast<int>(Context::kLengthOffset) ==
41 jsgraph()->ConstantNoHole(variadic_part_length));
46 DCHECK(map.instance_type() == FIXED_ARRAY_TYPE ||
47 map.instance_type() == FIXED_DOUBLE_ARRAY_TYPE);
48 int const size = (map.instance_type() == FIXED_ARRAY_TYPE)
58 int size = (map.instance_type() == FIXED_ARRAY_TYPE)
61 Allocate(size, allocation, Type::OtherInternal());
64 jsgraph()->ConstantNoHole(length));
77 Allocate(size, allocation, Type::OtherInternal());
80 jsgraph()->ConstantNoHole(length));
static V8_INLINE constexpr int SizeFor(int length)
V8_EXPORT_PRIVATE int MaxRegularHeapObjectSize(AllocationType allocation)
static constexpr int SizeFor(int length)
static constexpr int SizeFor(int capacity)
static FieldAccess ForMap(WriteBarrierKind write_barrier=kMapWriteBarrier)
static FieldAccess ForFixedArrayLength()
void AllocateSloppyArgumentElements(int length, MapRef map, AllocationType allocation=AllocationType::kYoung)
void AllocateArray(int length, MapRef map, AllocationType allocation=AllocationType::kYoung)
Isolate * isolate() const
void Allocate(int size, AllocationType allocation=AllocationType::kYoung, Type type=Type::Any())
void AllocateContext(int variadic_part_length, MapRef map)
bool CanAllocateArray(int length, MapRef map, AllocationType allocation=AllocationType::kYoung)
bool CanAllocateSloppyArgumentElements(int length, MapRef map, AllocationType allocation=AllocationType::kYoung)
void Store(const FieldAccess &access, Node *value)
SimplifiedOperatorBuilder * simplified()
CommonOperatorBuilder * common()
Node * NewNode(const Operator *op, int input_count, Node *const *inputs, bool incomplete=false)
constexpr bool IsInRange(T value, U lower_limit, U higher_limit)
#define DCHECK_LE(v1, v2)
#define CHECK_GT(lhs, rhs)
#define DCHECK_NE(v1, v2)
#define DCHECK(condition)