v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::RegExpMatchInfo Class Reference

#include <regexp-match-info.h>

Inheritance diagram for v8::internal::RegExpMatchInfo:
Collaboration diagram for v8::internal::RegExpMatchInfo:

Classes

class  BodyDescriptor
 

Public Types

using Shape = RegExpMatchInfoShape
 
- Public Types inherited from v8::internal::TaggedArrayBase< RegExpMatchInfo, RegExpMatchInfoShape >
using Header
 
using Shape
 

Public Member Functions

int number_of_capture_registers () const
 
void set_number_of_capture_registers (int value)
 
Tagged< Stringlast_subject () const
 
void set_last_subject (Tagged< String > value, WriteBarrierMode mode=UPDATE_WRITE_BARRIER)
 
Tagged< Objectlast_input () const
 
void set_last_input (Tagged< Object > value, WriteBarrierMode mode=UPDATE_WRITE_BARRIER)
 
int capture (int index) const
 
void set_capture (int index, int value)
 
- Public Member Functions inherited from v8::internal::TaggedArrayBase< RegExpMatchInfo, RegExpMatchInfoShape >
Tagged< ElementTget (int index) const
 
Tagged< ElementTget (int index, RelaxedLoadTag) const
 
Tagged< ElementTget (int index, AcquireLoadTag) const
 
Tagged< ElementTget (int index, SeqCstAccessTag) const
 
void set (int index, Tagged< ElementT > value, WriteBarrierMode mode=kDefaultMode)
 
void set (int index, Tagged< Smi > value)
 
void set (int index, Tagged< ElementT > value, RelaxedStoreTag, WriteBarrierMode mode=kDefaultMode)
 
void set (int index, Tagged< Smi > value, RelaxedStoreTag)
 
void set (int index, Tagged< ElementT > value, ReleaseStoreTag, WriteBarrierMode mode=kDefaultMode)
 
void set (int index, Tagged< Smi > value, ReleaseStoreTag)
 
void set (int index, Tagged< ElementT > value, SeqCstAccessTag, WriteBarrierMode mode=kDefaultMode)
 
void set (int index, Tagged< Smi > value, SeqCstAccessTag)
 
Tagged< ElementTswap (int index, Tagged< ElementT > value, SeqCstAccessTag, WriteBarrierMode mode=kDefaultMode)
 
Tagged< ElementTcompare_and_swap (int index, Tagged< ElementT > expected, Tagged< ElementT > value, SeqCstAccessTag, WriteBarrierMode mode=kDefaultMode)
 
void RightTrim (Isolate *isolate, int new_capacity)
 
int AllocatedSize () const
 
SlotType RawFieldOfFirstElement () const
 
SlotType RawFieldOfElementAt (int index) const
 
Handle< DAllocate (IsolateT *isolate, int capacity, std::optional< DisallowGarbageCollection > *no_gc_out, AllocationType allocation)
 

Static Public Member Functions

static V8_EXPORT_PRIVATE DirectHandle< RegExpMatchInfoNew (Isolate *isolate, int capture_count, AllocationType allocation=AllocationType::kYoung)
 
static DirectHandle< RegExpMatchInfoReserveCaptures (Isolate *isolate, DirectHandle< RegExpMatchInfo > match_info, int capture_count)
 
static constexpr int capture_start_index (int capture_index)
 
static constexpr int capture_end_index (int capture_index)
 
- Static Public Member Functions inherited from v8::internal::TaggedArrayBase< RegExpMatchInfo, RegExpMatchInfoShape >
static void MoveElements (Isolate *isolate, Tagged< RegExpMatchInfo > dst, int dst_index, Tagged< RegExpMatchInfo > src, int src_index, int len, WriteBarrierMode mode=kDefaultMode)
 
static void CopyElements (Isolate *isolate, Tagged< RegExpMatchInfo > dst, int dst_index, Tagged< RegExpMatchInfo > src, int src_index, int len, WriteBarrierMode mode=kDefaultMode)
 
static constexpr int SizeFor (int capacity)
 
static constexpr int OffsetOfElementAt (int index)
 

Static Public Attributes

static constexpr int kMinCapacity = 2
 
- Static Public Attributes inherited from v8::internal::TaggedArrayBase< RegExpMatchInfo, RegExpMatchInfoShape >
static constexpr bool kElementsAreMaybeObject
 
static constexpr int kElementSize
 
static constexpr int kMaxCapacity
 
static constexpr int kMaxRegularCapacity
 

Private Types

using Super = TaggedArrayBase<RegExpMatchInfo, RegExpMatchInfoShape>
 

Additional Inherited Members

- Protected Member Functions inherited from v8::internal::TaggedArrayBase< RegExpMatchInfo, RegExpMatchInfoShape >
bool IsInBounds (int index) const
 
bool IsCowArray () const
 
 FLEXIBLE_ARRAY_MEMBER (ElementMemberT, objects)
 
- Static Protected Member Functions inherited from v8::internal::TaggedArrayBase< RegExpMatchInfo, RegExpMatchInfoShape >
static Handle< RegExpMatchInfoAllocate (IsolateT *isolate, int capacity, std::optional< DisallowGarbageCollection > *no_gc_out, AllocationType allocation=AllocationType::kYoung)
 
static constexpr int NewCapacityForIndex (int index, int old_capacity)
 

Detailed Description

Definition at line 44 of file regexp-match-info.h.

Member Typedef Documentation

◆ Shape

◆ Super

Member Function Documentation

◆ capture()

int v8::internal::RegExpMatchInfo::capture ( int index) const
inline

Definition at line 42 of file regexp-match-info-inl.h.

Here is the call graph for this function:

◆ capture_end_index()

static constexpr int v8::internal::RegExpMatchInfo::capture_end_index ( int capture_index)
inlinestaticconstexpr

Definition at line 81 of file regexp-match-info.h.

Here is the caller graph for this function:

◆ capture_start_index()

static constexpr int v8::internal::RegExpMatchInfo::capture_start_index ( int capture_index)
inlinestaticconstexpr

Definition at line 78 of file regexp-match-info.h.

Here is the caller graph for this function:

◆ last_input()

Tagged< Object > v8::internal::RegExpMatchInfo::last_input ( ) const
inline

Definition at line 34 of file regexp-match-info-inl.h.

◆ last_subject()

Tagged< String > v8::internal::RegExpMatchInfo::last_subject ( ) const
inline

Definition at line 26 of file regexp-match-info-inl.h.

◆ New()

DirectHandle< RegExpMatchInfo > v8::internal::RegExpMatchInfo::New ( Isolate * isolate,
int capture_count,
AllocationType allocation = AllocationType::kYoung )
static

Definition at line 12 of file regexp-match-info.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ number_of_capture_registers()

int v8::internal::RegExpMatchInfo::number_of_capture_registers ( ) const
inline

Definition at line 19 of file regexp-match-info-inl.h.

◆ ReserveCaptures()

DirectHandle< RegExpMatchInfo > v8::internal::RegExpMatchInfo::ReserveCaptures ( Isolate * isolate,
DirectHandle< RegExpMatchInfo > match_info,
int capture_count )
static

Definition at line 31 of file regexp-match-info.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ set_capture()

void v8::internal::RegExpMatchInfo::set_capture ( int index,
int value )
inline

Definition at line 44 of file regexp-match-info-inl.h.

Here is the call graph for this function:

◆ set_last_input()

void v8::internal::RegExpMatchInfo::set_last_input ( Tagged< Object > value,
WriteBarrierMode mode = UPDATE_WRITE_BARRIER )
inline

Definition at line 37 of file regexp-match-info-inl.h.

◆ set_last_subject()

void v8::internal::RegExpMatchInfo::set_last_subject ( Tagged< String > value,
WriteBarrierMode mode = UPDATE_WRITE_BARRIER )
inline

Definition at line 29 of file regexp-match-info-inl.h.

◆ set_number_of_capture_registers()

void v8::internal::RegExpMatchInfo::set_number_of_capture_registers ( int value)
inline

Definition at line 22 of file regexp-match-info-inl.h.

Here is the call graph for this function:

Member Data Documentation

◆ kMinCapacity

int v8::internal::RegExpMatchInfo::kMinCapacity = 2
staticconstexpr

Definition at line 85 of file regexp-match-info.h.


The documentation for this class was generated from the following files: