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

#include <experimental-bytecode.h>

Collaboration diagram for v8::internal::RegExpInstruction:

Classes

class  LookaroundPayload
 
struct  Uc16Range
 

Public Types

enum  Opcode : int32_t {
  ACCEPT , ASSERTION , CLEAR_REGISTER , CONSUME_RANGE ,
  RANGE_COUNT , FORK , JMP , SET_REGISTER_TO_CP ,
  SET_QUANTIFIER_TO_CLOCK , FILTER_QUANTIFIER , FILTER_GROUP , FILTER_LOOKAROUND ,
  FILTER_CHILD , BEGIN_LOOP , END_LOOP , START_LOOKAROUND ,
  END_LOOKAROUND , WRITE_LOOKAROUND_TABLE , READ_LOOKAROUND_TABLE
}
 

Static Public Member Functions

static RegExpInstruction ConsumeRange (base::uc16 min, base::uc16 max)
 
static RegExpInstruction ConsumeAnyChar ()
 
static RegExpInstruction Fail ()
 
static RegExpInstruction RangeCount (int32_t num_ranges)
 
static RegExpInstruction Fork (int32_t alt_index)
 
static RegExpInstruction Jmp (int32_t alt_index)
 
static RegExpInstruction Accept ()
 
static RegExpInstruction SetRegisterToCp (int32_t register_index)
 
static RegExpInstruction Assertion (RegExpAssertion::Type t)
 
static RegExpInstruction ClearRegister (int32_t register_index)
 
static RegExpInstruction SetQuantifierToClock (int32_t quantifier_id)
 
static RegExpInstruction FilterQuantifier (int32_t quantifier_id)
 
static RegExpInstruction FilterGroup (int32_t group_id)
 
static RegExpInstruction FilterLookaround (int32_t lookaround_id)
 
static RegExpInstruction FilterChild (int32_t pc)
 
static RegExpInstruction BeginLoop ()
 
static RegExpInstruction EndLoop ()
 
static RegExpInstruction StartLookaround (int lookaround_index, bool is_positive, RegExpLookaround::Type type)
 
static RegExpInstruction EndLookaround ()
 
static RegExpInstruction WriteLookTable (int32_t index)
 
static RegExpInstruction ReadLookTable (int32_t index, bool is_positive, RegExpLookaround::Type type)
 
static bool IsFilter (const RegExpInstruction &instruction)
 

Public Attributes

Opcode opcode
 
union { 
 
   Uc16Range   consume_range 
 
   int32_t   num_ranges 
 
   int32_t   pc 
 
   int32_t   register_index 
 
   RegExpAssertion::Type   assertion_type 
 
   int32_t   quantifier_id 
 
   int32_t   group_id 
 
   int32_t   lookaround_id 
 
   LookaroundPayload   lookaround 
 
payload 
 

Detailed Description

Definition at line 99 of file experimental-bytecode.h.

Member Enumeration Documentation

◆ Opcode

Enumerator
ACCEPT 
ASSERTION 
CLEAR_REGISTER 
CONSUME_RANGE 
RANGE_COUNT 
FORK 
JMP 
SET_REGISTER_TO_CP 
SET_QUANTIFIER_TO_CLOCK 
FILTER_QUANTIFIER 
FILTER_GROUP 
FILTER_LOOKAROUND 
FILTER_CHILD 
BEGIN_LOOP 
END_LOOP 
START_LOOKAROUND 
END_LOOKAROUND 
WRITE_LOOKAROUND_TABLE 
READ_LOOKAROUND_TABLE 

Definition at line 100 of file experimental-bytecode.h.

Member Function Documentation

◆ Accept()

static RegExpInstruction v8::internal::RegExpInstruction::Accept ( )
inlinestatic

Definition at line 187 of file experimental-bytecode.h.

◆ Assertion()

static RegExpInstruction v8::internal::RegExpInstruction::Assertion ( RegExpAssertion::Type t)
inlinestatic

Definition at line 200 of file experimental-bytecode.h.

◆ BeginLoop()

static RegExpInstruction v8::internal::RegExpInstruction::BeginLoop ( )
inlinestatic

Definition at line 249 of file experimental-bytecode.h.

◆ ClearRegister()

static RegExpInstruction v8::internal::RegExpInstruction::ClearRegister ( int32_t register_index)
inlinestatic

Definition at line 207 of file experimental-bytecode.h.

◆ ConsumeAnyChar()

static RegExpInstruction v8::internal::RegExpInstruction::ConsumeAnyChar ( )
inlinestatic

Definition at line 156 of file experimental-bytecode.h.

Here is the call graph for this function:

◆ ConsumeRange()

static RegExpInstruction v8::internal::RegExpInstruction::ConsumeRange ( base::uc16 min,
base::uc16 max )
inlinestatic

Definition at line 149 of file experimental-bytecode.h.

Here is the caller graph for this function:

◆ EndLookaround()

static RegExpInstruction v8::internal::RegExpInstruction::EndLookaround ( )
inlinestatic

Definition at line 271 of file experimental-bytecode.h.

◆ EndLoop()

static RegExpInstruction v8::internal::RegExpInstruction::EndLoop ( )
inlinestatic

Definition at line 255 of file experimental-bytecode.h.

◆ Fail()

static RegExpInstruction v8::internal::RegExpInstruction::Fail ( )
inlinestatic

Definition at line 160 of file experimental-bytecode.h.

Here is the call graph for this function:

◆ FilterChild()

static RegExpInstruction v8::internal::RegExpInstruction::FilterChild ( int32_t pc)
inlinestatic

Definition at line 242 of file experimental-bytecode.h.

◆ FilterGroup()

static RegExpInstruction v8::internal::RegExpInstruction::FilterGroup ( int32_t group_id)
inlinestatic

Definition at line 228 of file experimental-bytecode.h.

◆ FilterLookaround()

static RegExpInstruction v8::internal::RegExpInstruction::FilterLookaround ( int32_t lookaround_id)
inlinestatic

Definition at line 235 of file experimental-bytecode.h.

◆ FilterQuantifier()

static RegExpInstruction v8::internal::RegExpInstruction::FilterQuantifier ( int32_t quantifier_id)
inlinestatic

Definition at line 221 of file experimental-bytecode.h.

◆ Fork()

static RegExpInstruction v8::internal::RegExpInstruction::Fork ( int32_t alt_index)
inlinestatic

Definition at line 173 of file experimental-bytecode.h.

◆ IsFilter()

static bool v8::internal::RegExpInstruction::IsFilter ( const RegExpInstruction & instruction)
inlinestatic

Definition at line 294 of file experimental-bytecode.h.

◆ Jmp()

static RegExpInstruction v8::internal::RegExpInstruction::Jmp ( int32_t alt_index)
inlinestatic

Definition at line 180 of file experimental-bytecode.h.

◆ RangeCount()

static RegExpInstruction v8::internal::RegExpInstruction::RangeCount ( int32_t num_ranges)
inlinestatic

Definition at line 166 of file experimental-bytecode.h.

◆ ReadLookTable()

static RegExpInstruction v8::internal::RegExpInstruction::ReadLookTable ( int32_t index,
bool is_positive,
RegExpLookaround::Type type )
inlinestatic

Definition at line 284 of file experimental-bytecode.h.

◆ SetQuantifierToClock()

static RegExpInstruction v8::internal::RegExpInstruction::SetQuantifierToClock ( int32_t quantifier_id)
inlinestatic

Definition at line 214 of file experimental-bytecode.h.

◆ SetRegisterToCp()

static RegExpInstruction v8::internal::RegExpInstruction::SetRegisterToCp ( int32_t register_index)
inlinestatic

Definition at line 193 of file experimental-bytecode.h.

◆ StartLookaround()

static RegExpInstruction v8::internal::RegExpInstruction::StartLookaround ( int lookaround_index,
bool is_positive,
RegExpLookaround::Type type )
inlinestatic

Definition at line 261 of file experimental-bytecode.h.

◆ WriteLookTable()

static RegExpInstruction v8::internal::RegExpInstruction::WriteLookTable ( int32_t index)
inlinestatic

Definition at line 277 of file experimental-bytecode.h.

Member Data Documentation

◆ assertion_type

RegExpAssertion::Type v8::internal::RegExpInstruction::assertion_type

Definition at line 312 of file experimental-bytecode.h.

◆ consume_range

Uc16Range v8::internal::RegExpInstruction::consume_range

Definition at line 303 of file experimental-bytecode.h.

◆ group_id

int32_t v8::internal::RegExpInstruction::group_id

Definition at line 316 of file experimental-bytecode.h.

◆ lookaround

LookaroundPayload v8::internal::RegExpInstruction::lookaround

Definition at line 320 of file experimental-bytecode.h.

◆ lookaround_id

int32_t v8::internal::RegExpInstruction::lookaround_id

Definition at line 318 of file experimental-bytecode.h.

◆ num_ranges

int32_t v8::internal::RegExpInstruction::num_ranges

Definition at line 305 of file experimental-bytecode.h.

◆ opcode

Opcode v8::internal::RegExpInstruction::opcode

Definition at line 300 of file experimental-bytecode.h.

◆ [union]

union { ... } v8::internal::RegExpInstruction::payload

◆ pc

int32_t v8::internal::RegExpInstruction::pc

Definition at line 308 of file experimental-bytecode.h.

◆ quantifier_id

int32_t v8::internal::RegExpInstruction::quantifier_id

Definition at line 314 of file experimental-bytecode.h.

◆ register_index

int32_t v8::internal::RegExpInstruction::register_index

Definition at line 310 of file experimental-bytecode.h.


The documentation for this struct was generated from the following file: