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

#include <regexp-macro-assembler-tracer.h>

Inheritance diagram for v8::internal::RegExpMacroAssemblerTracer:
Collaboration diagram for v8::internal::RegExpMacroAssemblerTracer:

Public Member Functions

 RegExpMacroAssemblerTracer (Isolate *isolate, RegExpMacroAssembler *assembler)
 
 ~RegExpMacroAssemblerTracer () override
 
void AbortedCodeGeneration () override
 
int stack_limit_slack_slot_count () override
 
bool CanReadUnaligned () const override
 
void AdvanceCurrentPosition (int by) override
 
void AdvanceRegister (int reg, int by) override
 
void Backtrack () override
 
void Bind (Label *label) override
 
void CheckCharacter (unsigned c, Label *on_equal) override
 
void CheckCharacterAfterAnd (unsigned c, unsigned and_with, Label *on_equal) override
 
void CheckCharacterGT (base::uc16 limit, Label *on_greater) override
 
void CheckCharacterLT (base::uc16 limit, Label *on_less) override
 
void CheckGreedyLoop (Label *on_tos_equals_current_position) override
 
void CheckAtStart (int cp_offset, Label *on_at_start) override
 
void CheckNotAtStart (int cp_offset, Label *on_not_at_start) override
 
void CheckNotBackReference (int start_reg, bool read_backward, Label *on_no_match) override
 
void CheckNotBackReferenceIgnoreCase (int start_reg, bool read_backward, bool unicode, Label *on_no_match) override
 
void CheckNotCharacter (unsigned c, Label *on_not_equal) override
 
void CheckNotCharacterAfterAnd (unsigned c, unsigned and_with, Label *on_not_equal) override
 
void CheckNotCharacterAfterMinusAnd (base::uc16 c, base::uc16 minus, base::uc16 and_with, Label *on_not_equal) override
 
void CheckCharacterInRange (base::uc16 from, base::uc16 to, Label *on_in_range) override
 
void CheckCharacterNotInRange (base::uc16 from, base::uc16 to, Label *on_not_in_range) override
 
bool CheckCharacterInRangeArray (const ZoneList< CharacterRange > *ranges, Label *on_in_range) override
 
bool CheckCharacterNotInRangeArray (const ZoneList< CharacterRange > *ranges, Label *on_not_in_range) override
 
void CheckBitInTable (Handle< ByteArray > table, Label *on_bit_set) override
 
bool SkipUntilBitInTableUseSimd (int advance_by) override
 
void SkipUntilBitInTable (int cp_offset, Handle< ByteArray > table, Handle< ByteArray > nibble_table, int advance_by) override
 
void CheckPosition (int cp_offset, Label *on_outside_input) override
 
bool CheckSpecialClassRanges (StandardCharacterSet type, Label *on_no_match) override
 
void Fail () override
 
DirectHandle< HeapObjectGetCode (DirectHandle< String > source, RegExpFlags flags) override
 
void GoTo (Label *label) override
 
void IfRegisterGE (int reg, int comparand, Label *if_ge) override
 
void IfRegisterLT (int reg, int comparand, Label *if_lt) override
 
void IfRegisterEqPos (int reg, Label *if_eq) override
 
IrregexpImplementation Implementation () override
 
void LoadCurrentCharacterImpl (int cp_offset, Label *on_end_of_input, bool check_bounds, int characters, int eats_at_least) override
 
void PopCurrentPosition () override
 
void PopRegister (int register_index) override
 
void PushBacktrack (Label *label) override
 
void PushCurrentPosition () override
 
void PushRegister (int register_index, StackCheckFlag check_stack_limit) override
 
void ReadCurrentPositionFromRegister (int reg) override
 
void ReadStackPointerFromRegister (int reg) override
 
void SetCurrentPositionFromEnd (int by) override
 
void SetRegister (int register_index, int to) override
 
bool Succeed () override
 
void WriteCurrentPositionToRegister (int reg, int cp_offset) override
 
void ClearRegisters (int reg_from, int reg_to) override
 
void WriteStackPointerToRegister (int reg) override
 
- Public Member Functions inherited from v8::internal::RegExpMacroAssembler
 RegExpMacroAssembler (Isolate *isolate, Zone *zone)
 
virtual ~RegExpMacroAssembler ()=default
 
virtual void BindJumpTarget (Label *label)
 
V8_EXPORT_PRIVATE void LoadCurrentCharacter (int cp_offset, Label *on_end_of_input, bool check_bounds=true, int characters=1, int eats_at_least=kUseCharactersValue)
 
void CheckNotInSurrogatePair (int cp_offset, Label *on_failure)
 
const char * ImplementationToString (IrregexpImplementation impl)
 
void set_slow_safe (bool ssc)
 
bool slow_safe () const
 
void set_backtrack_limit (uint32_t backtrack_limit)
 
void set_can_fallback (bool val)
 
void set_global_mode (GlobalMode mode)
 
bool global () const
 
bool global_with_zero_length_check () const
 
bool global_unicode () const
 
Isolateisolate () const
 
Zonezone () const
 

Private Attributes

RegExpMacroAssemblerassembler_
 

Additional Inherited Members

- Public Types inherited from v8::internal::RegExpMacroAssembler
enum  StackCheckFlag { kNoStackLimitCheck = false , kCheckStackLimit = true }
 
enum  IrregexpImplementation
 
enum  GlobalMode { NOT_GLOBAL , GLOBAL_NO_ZERO_LENGTH_CHECK , GLOBAL , GLOBAL_UNICODE }
 
- Static Public Member Functions inherited from v8::internal::RegExpMacroAssembler
static int CaseInsensitiveCompareNonUnicode (Address byte_offset1, Address byte_offset2, size_t byte_length, Isolate *isolate)
 
static int CaseInsensitiveCompareUnicode (Address byte_offset1, Address byte_offset2, size_t byte_length, Isolate *isolate)
 
static uint32_t IsCharacterInRangeArray (uint32_t current_char, Address raw_byte_array)
 
- Static Public Attributes inherited from v8::internal::RegExpMacroAssembler
static constexpr int kMaxRegisterCount = (1 << 16)
 
static constexpr int kMaxRegister = kMaxRegisterCount - 1
 
static constexpr int kMaxCaptures = (kMaxRegister - 1) / 2
 
static constexpr int kMaxCPOffset = (1 << 15) - 1
 
static constexpr int kMinCPOffset = -(1 << 15)
 
static constexpr int kTableSizeBits = 7
 
static constexpr int kTableSize = 1 << kTableSizeBits
 
static constexpr int kTableMask = kTableSize - 1
 
static constexpr int kUseCharactersValue = -1
 
- Protected Member Functions inherited from v8::internal::RegExpMacroAssembler
bool has_backtrack_limit () const
 
uint32_t backtrack_limit () const
 
bool can_fallback () const
 

Detailed Description

Definition at line 15 of file regexp-macro-assembler-tracer.h.

Constructor & Destructor Documentation

◆ RegExpMacroAssemblerTracer()

v8::internal::RegExpMacroAssemblerTracer::RegExpMacroAssemblerTracer ( Isolate * isolate,
RegExpMacroAssembler * assembler )

Definition at line 13 of file regexp-macro-assembler-tracer.cc.

Here is the call graph for this function:

◆ ~RegExpMacroAssemblerTracer()

v8::internal::RegExpMacroAssemblerTracer::~RegExpMacroAssemblerTracer ( )
overridedefault

Member Function Documentation

◆ AbortedCodeGeneration()

void v8::internal::RegExpMacroAssemblerTracer::AbortedCodeGeneration ( )
overridevirtual

Reimplemented from v8::internal::RegExpMacroAssembler.

Definition at line 22 of file regexp-macro-assembler-tracer.cc.

Here is the call graph for this function:

◆ AdvanceCurrentPosition()

void v8::internal::RegExpMacroAssemblerTracer::AdvanceCurrentPosition ( int by)
overridevirtual

Implements v8::internal::RegExpMacroAssembler.

Definition at line 41 of file regexp-macro-assembler-tracer.cc.

Here is the call graph for this function:

◆ AdvanceRegister()

void v8::internal::RegExpMacroAssemblerTracer::AdvanceRegister ( int reg,
int by )
overridevirtual

Implements v8::internal::RegExpMacroAssembler.

Definition at line 112 of file regexp-macro-assembler-tracer.cc.

Here is the call graph for this function:

◆ Backtrack()

void v8::internal::RegExpMacroAssemblerTracer::Backtrack ( )
overridevirtual

Implements v8::internal::RegExpMacroAssembler.

Definition at line 65 of file regexp-macro-assembler-tracer.cc.

Here is the call graph for this function:

◆ Bind()

void v8::internal::RegExpMacroAssemblerTracer::Bind ( Label * label)
overridevirtual

Implements v8::internal::RegExpMacroAssembler.

Definition at line 35 of file regexp-macro-assembler-tracer.cc.

Here is the call graph for this function:

◆ CanReadUnaligned()

bool v8::internal::RegExpMacroAssemblerTracer::CanReadUnaligned ( ) const
inlineoverridevirtual

Implements v8::internal::RegExpMacroAssembler.

Definition at line 23 of file regexp-macro-assembler-tracer.h.

Here is the call graph for this function:

◆ CheckAtStart()

void v8::internal::RegExpMacroAssemblerTracer::CheckAtStart ( int cp_offset,
Label * on_at_start )
overridevirtual

Implements v8::internal::RegExpMacroAssembler.

Definition at line 229 of file regexp-macro-assembler-tracer.cc.

Here is the call graph for this function:

◆ CheckBitInTable()

void v8::internal::RegExpMacroAssemblerTracer::CheckBitInTable ( Handle< ByteArray > table,
Label * on_bit_set )
overridevirtual

Implements v8::internal::RegExpMacroAssembler.

Definition at line 361 of file regexp-macro-assembler-tracer.cc.

Here is the call graph for this function:

◆ CheckCharacter()

void v8::internal::RegExpMacroAssemblerTracer::CheckCharacter ( unsigned c,
Label * on_equal )
overridevirtual

Implements v8::internal::RegExpMacroAssembler.

Definition at line 220 of file regexp-macro-assembler-tracer.cc.

Here is the call graph for this function:

◆ CheckCharacterAfterAnd()

void v8::internal::RegExpMacroAssemblerTracer::CheckCharacterAfterAnd ( unsigned c,
unsigned and_with,
Label * on_equal )
overridevirtual

Implements v8::internal::RegExpMacroAssembler.

Definition at line 255 of file regexp-macro-assembler-tracer.cc.

Here is the call graph for this function:

◆ CheckCharacterGT()

void v8::internal::RegExpMacroAssemblerTracer::CheckCharacterGT ( base::uc16 limit,
Label * on_greater )
overridevirtual

Implements v8::internal::RegExpMacroAssembler.

Definition at line 210 of file regexp-macro-assembler-tracer.cc.

Here is the call graph for this function:

◆ CheckCharacterInRange()

void v8::internal::RegExpMacroAssemblerTracer::CheckCharacterInRange ( base::uc16 from,
base::uc16 to,
Label * on_in_range )
overridevirtual

Implements v8::internal::RegExpMacroAssembler.

Definition at line 293 of file regexp-macro-assembler-tracer.cc.

Here is the call graph for this function:

◆ CheckCharacterInRangeArray()

bool v8::internal::RegExpMacroAssemblerTracer::CheckCharacterInRangeArray ( const ZoneList< CharacterRange > * ranges,
Label * on_in_range )
overridevirtual

Implements v8::internal::RegExpMacroAssembler.

Definition at line 337 of file regexp-macro-assembler-tracer.cc.

Here is the call graph for this function:

◆ CheckCharacterLT()

void v8::internal::RegExpMacroAssemblerTracer::CheckCharacterLT ( base::uc16 limit,
Label * on_less )
overridevirtual

Implements v8::internal::RegExpMacroAssembler.

Definition at line 200 of file regexp-macro-assembler-tracer.cc.

Here is the call graph for this function:

◆ CheckCharacterNotInRange()

void v8::internal::RegExpMacroAssemblerTracer::CheckCharacterNotInRange ( base::uc16 from,
base::uc16 to,
Label * on_not_in_range )
overridevirtual

Implements v8::internal::RegExpMacroAssembler.

Definition at line 307 of file regexp-macro-assembler-tracer.cc.

Here is the call graph for this function:

◆ CheckCharacterNotInRangeArray()

bool v8::internal::RegExpMacroAssemblerTracer::CheckCharacterNotInRangeArray ( const ZoneList< CharacterRange > * ranges,
Label * on_not_in_range )
overridevirtual

Implements v8::internal::RegExpMacroAssembler.

Definition at line 347 of file regexp-macro-assembler-tracer.cc.

Here is the call graph for this function:

◆ CheckGreedyLoop()

void v8::internal::RegExpMacroAssemblerTracer::CheckGreedyLoop ( Label * on_tos_equals_current_position)
overridevirtual

Implements v8::internal::RegExpMacroAssembler.

Definition at line 47 of file regexp-macro-assembler-tracer.cc.

Here is the call graph for this function:

◆ CheckNotAtStart()

void v8::internal::RegExpMacroAssemblerTracer::CheckNotAtStart ( int cp_offset,
Label * on_not_at_start )
overridevirtual

Implements v8::internal::RegExpMacroAssembler.

Definition at line 236 of file regexp-macro-assembler-tracer.cc.

Here is the call graph for this function:

◆ CheckNotBackReference()

void v8::internal::RegExpMacroAssemblerTracer::CheckNotBackReference ( int start_reg,
bool read_backward,
Label * on_no_match )
overridevirtual

Implements v8::internal::RegExpMacroAssembler.

Definition at line 408 of file regexp-macro-assembler-tracer.cc.

Here is the call graph for this function:

◆ CheckNotBackReferenceIgnoreCase()

void v8::internal::RegExpMacroAssemblerTracer::CheckNotBackReferenceIgnoreCase ( int start_reg,
bool read_backward,
bool unicode,
Label * on_no_match )
overridevirtual

Implements v8::internal::RegExpMacroAssembler.

Definition at line 416 of file regexp-macro-assembler-tracer.cc.

Here is the call graph for this function:

◆ CheckNotCharacter()

void v8::internal::RegExpMacroAssemblerTracer::CheckNotCharacter ( unsigned c,
Label * on_not_equal )
overridevirtual

Implements v8::internal::RegExpMacroAssembler.

Definition at line 244 of file regexp-macro-assembler-tracer.cc.

Here is the call graph for this function:

◆ CheckNotCharacterAfterAnd()

void v8::internal::RegExpMacroAssemblerTracer::CheckNotCharacterAfterAnd ( unsigned c,
unsigned and_with,
Label * on_not_equal )
overridevirtual

Implements v8::internal::RegExpMacroAssembler.

Definition at line 269 of file regexp-macro-assembler-tracer.cc.

Here is the call graph for this function:

◆ CheckNotCharacterAfterMinusAnd()

void v8::internal::RegExpMacroAssemblerTracer::CheckNotCharacterAfterMinusAnd ( base::uc16 c,
base::uc16 minus,
base::uc16 and_with,
Label * on_not_equal )
overridevirtual

Implements v8::internal::RegExpMacroAssembler.

Definition at line 282 of file regexp-macro-assembler-tracer.cc.

Here is the call graph for this function:

◆ CheckPosition()

void v8::internal::RegExpMacroAssemblerTracer::CheckPosition ( int cp_offset,
Label * on_outside_input )
overridevirtual

Reimplemented from v8::internal::RegExpMacroAssembler.

Definition at line 425 of file regexp-macro-assembler-tracer.cc.

Here is the call graph for this function:

◆ CheckSpecialClassRanges()

bool v8::internal::RegExpMacroAssemblerTracer::CheckSpecialClassRanges ( StandardCharacterSet type,
Label * on_no_match )
overridevirtual

Reimplemented from v8::internal::RegExpMacroAssembler.

Definition at line 432 of file regexp-macro-assembler-tracer.cc.

Here is the call graph for this function:

◆ ClearRegisters()

void v8::internal::RegExpMacroAssemblerTracer::ClearRegisters ( int reg_from,
int reg_to )
overridevirtual

Implements v8::internal::RegExpMacroAssembler.

Definition at line 139 of file regexp-macro-assembler-tracer.cc.

Here is the call graph for this function:

◆ Fail()

void v8::internal::RegExpMacroAssemblerTracer::Fail ( )
overridevirtual

Implements v8::internal::RegExpMacroAssembler.

Definition at line 90 of file regexp-macro-assembler-tracer.cc.

Here is the call graph for this function:

◆ GetCode()

DirectHandle< HeapObject > v8::internal::RegExpMacroAssemblerTracer::GetCode ( DirectHandle< String > source,
RegExpFlags flags )
overridevirtual

Implements v8::internal::RegExpMacroAssembler.

Definition at line 470 of file regexp-macro-assembler-tracer.cc.

Here is the call graph for this function:

◆ GoTo()

void v8::internal::RegExpMacroAssemblerTracer::GoTo ( Label * label)
overridevirtual

Implements v8::internal::RegExpMacroAssembler.

Definition at line 71 of file regexp-macro-assembler-tracer.cc.

Here is the call graph for this function:

◆ IfRegisterEqPos()

void v8::internal::RegExpMacroAssemblerTracer::IfRegisterEqPos ( int reg,
Label * if_eq )
overridevirtual

Implements v8::internal::RegExpMacroAssembler.

Definition at line 449 of file regexp-macro-assembler-tracer.cc.

Here is the call graph for this function:

◆ IfRegisterGE()

void v8::internal::RegExpMacroAssemblerTracer::IfRegisterGE ( int reg,
int comparand,
Label * if_ge )
overridevirtual

Implements v8::internal::RegExpMacroAssembler.

Definition at line 457 of file regexp-macro-assembler-tracer.cc.

Here is the call graph for this function:

◆ IfRegisterLT()

void v8::internal::RegExpMacroAssemblerTracer::IfRegisterLT ( int reg,
int comparand,
Label * if_lt )
overridevirtual

Implements v8::internal::RegExpMacroAssembler.

Definition at line 441 of file regexp-macro-assembler-tracer.cc.

Here is the call graph for this function:

◆ Implementation()

RegExpMacroAssembler::IrregexpImplementation v8::internal::RegExpMacroAssemblerTracer::Implementation ( )
overridevirtual

Implements v8::internal::RegExpMacroAssembler.

Definition at line 466 of file regexp-macro-assembler-tracer.cc.

Here is the call graph for this function:

◆ LoadCurrentCharacterImpl()

void v8::internal::RegExpMacroAssemblerTracer::LoadCurrentCharacterImpl ( int cp_offset,
Label * on_end_of_input,
bool check_bounds,
int characters,
int eats_at_least )
overridevirtual

Implements v8::internal::RegExpMacroAssembler.

Definition at line 162 of file regexp-macro-assembler-tracer.cc.

Here is the call graph for this function:

◆ PopCurrentPosition()

void v8::internal::RegExpMacroAssemblerTracer::PopCurrentPosition ( )
overridevirtual

Implements v8::internal::RegExpMacroAssembler.

Definition at line 53 of file regexp-macro-assembler-tracer.cc.

Here is the call graph for this function:

◆ PopRegister()

void v8::internal::RegExpMacroAssemblerTracer::PopRegister ( int register_index)
overridevirtual

Implements v8::internal::RegExpMacroAssembler.

Definition at line 96 of file regexp-macro-assembler-tracer.cc.

Here is the call graph for this function:

◆ PushBacktrack()

void v8::internal::RegExpMacroAssemblerTracer::PushBacktrack ( Label * label)
overridevirtual

Implements v8::internal::RegExpMacroAssembler.

Definition at line 77 of file regexp-macro-assembler-tracer.cc.

Here is the call graph for this function:

◆ PushCurrentPosition()

void v8::internal::RegExpMacroAssemblerTracer::PushCurrentPosition ( )
overridevirtual

Implements v8::internal::RegExpMacroAssembler.

Definition at line 59 of file regexp-macro-assembler-tracer.cc.

Here is the call graph for this function:

◆ PushRegister()

void v8::internal::RegExpMacroAssemblerTracer::PushRegister ( int register_index,
StackCheckFlag check_stack_limit )
overridevirtual

Implements v8::internal::RegExpMacroAssembler.

Definition at line 102 of file regexp-macro-assembler-tracer.cc.

Here is the call graph for this function:

◆ ReadCurrentPositionFromRegister()

void v8::internal::RegExpMacroAssemblerTracer::ReadCurrentPositionFromRegister ( int reg)
overridevirtual

Implements v8::internal::RegExpMacroAssembler.

Definition at line 145 of file regexp-macro-assembler-tracer.cc.

Here is the call graph for this function:

◆ ReadStackPointerFromRegister()

void v8::internal::RegExpMacroAssemblerTracer::ReadStackPointerFromRegister ( int reg)
overridevirtual

Implements v8::internal::RegExpMacroAssembler.

Definition at line 157 of file regexp-macro-assembler-tracer.cc.

Here is the call graph for this function:

◆ SetCurrentPositionFromEnd()

void v8::internal::RegExpMacroAssemblerTracer::SetCurrentPositionFromEnd ( int by)
overridevirtual

Implements v8::internal::RegExpMacroAssembler.

Definition at line 118 of file regexp-macro-assembler-tracer.cc.

Here is the call graph for this function:

◆ SetRegister()

void v8::internal::RegExpMacroAssemblerTracer::SetRegister ( int register_index,
int to )
overridevirtual

Implements v8::internal::RegExpMacroAssembler.

Definition at line 124 of file regexp-macro-assembler-tracer.cc.

Here is the call graph for this function:

◆ SkipUntilBitInTable()

void v8::internal::RegExpMacroAssemblerTracer::SkipUntilBitInTable ( int cp_offset,
Handle< ByteArray > table,
Handle< ByteArray > nibble_table,
int advance_by )
overridevirtual

Implements v8::internal::RegExpMacroAssembler.

Definition at line 374 of file regexp-macro-assembler-tracer.cc.

Here is the call graph for this function:

◆ SkipUntilBitInTableUseSimd()

bool v8::internal::RegExpMacroAssemblerTracer::SkipUntilBitInTableUseSimd ( int advance_by)
inlineoverridevirtual

Reimplemented from v8::internal::RegExpMacroAssembler.

Definition at line 58 of file regexp-macro-assembler-tracer.h.

Here is the call graph for this function:

◆ stack_limit_slack_slot_count()

int v8::internal::RegExpMacroAssemblerTracer::stack_limit_slack_slot_count ( )
inlineoverridevirtual

Implements v8::internal::RegExpMacroAssembler.

Definition at line 20 of file regexp-macro-assembler-tracer.h.

Here is the call graph for this function:

◆ Succeed()

bool v8::internal::RegExpMacroAssemblerTracer::Succeed ( )
overridevirtual

Implements v8::internal::RegExpMacroAssembler.

Definition at line 83 of file regexp-macro-assembler-tracer.cc.

Here is the call graph for this function:

◆ WriteCurrentPositionToRegister()

void v8::internal::RegExpMacroAssemblerTracer::WriteCurrentPositionToRegister ( int reg,
int cp_offset )
overridevirtual

Implements v8::internal::RegExpMacroAssembler.

Definition at line 130 of file regexp-macro-assembler-tracer.cc.

Here is the call graph for this function:

◆ WriteStackPointerToRegister()

void v8::internal::RegExpMacroAssemblerTracer::WriteStackPointerToRegister ( int reg)
overridevirtual

Implements v8::internal::RegExpMacroAssembler.

Definition at line 151 of file regexp-macro-assembler-tracer.cc.

Here is the call graph for this function:

Member Data Documentation

◆ assembler_

RegExpMacroAssembler* v8::internal::RegExpMacroAssemblerTracer::assembler_
private

Definition at line 94 of file regexp-macro-assembler-tracer.h.


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