17 std::optional<DisallowGarbageCollection> no_gc;
19 Allocate(isolate, capacity, &no_gc, allocation);
23 result->set_number_of_capture_registers(capacity);
24 result->set_last_subject(*isolate->factory()->empty_string(),
35 if (required_capacity > match_info->capacity()) {
38 match_info->capacity());
39 match_info = new_info;
41 match_info->set_number_of_capture_registers(required_capacity);
static constexpr int RegistersForCaptureCount(int count)
static DirectHandle< RegExpMatchInfo > ReserveCaptures(Isolate *isolate, DirectHandle< RegExpMatchInfo > match_info, int capture_count)
static constexpr int kMinCapacity
static V8_EXPORT_PRIVATE DirectHandle< RegExpMatchInfo > New(Isolate *isolate, int capture_count, AllocationType allocation=AllocationType::kYoung)
static constexpr Tagged< Smi > zero()
static Handle< RegExpMatchInfo > Allocate(IsolateT *isolate, int capacity, std::optional< DisallowGarbageCollection > *no_gc_out, AllocationType allocation=AllocationType::kYoung)
static void CopyElements(Isolate *isolate, Tagged< RegExpMatchInfo > dst, int dst_index, Tagged< RegExpMatchInfo > src, int src_index, int len, WriteBarrierMode mode=kDefaultMode)
ZoneVector< RpoNumber > & result
void MemsetTagged(Tagged_t *start, Tagged< MaybeObject > value, size_t counter)
#define DCHECK_GE(v1, v2)