v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
regexp-interpreter.cc File Reference
Include dependency graph for regexp-interpreter.cc:

Go to the source code of this file.

Namespaces

namespace  v8
 
namespace  v8::internal
 

Macros

#define BC_LABEL(name)
 
#define DECODE()
 
#define DISPATCH()
 
#define ADVANCE(name)
 
#define SET_PC_FROM_OFFSET(offset)
 
#define SET_CURRENT_POSITION(value)
 
#define ADVANCE_CURRENT_POSITION(by)
 
#define BYTECODE(name)
 

Macro Definition Documentation

◆ ADVANCE

#define ADVANCE ( name)
Value:
next_pc = pc + RegExpBytecodeLength(BC_##name); \
DECODE()

Definition at line 371 of file regexp-interpreter.cc.

◆ ADVANCE_CURRENT_POSITION

#define ADVANCE_CURRENT_POSITION ( by)
Value:
SET_CURRENT_POSITION(current + (by))
#define SET_CURRENT_POSITION(value)

Definition at line 384 of file regexp-interpreter.cc.

◆ BC_LABEL

#define BC_LABEL ( name)
Value:
case BC_##name:
const char * name
Definition builtins.cc:39

Definition at line 356 of file regexp-interpreter.cc.

◆ BYTECODE

#define BYTECODE ( name)
Value:
BC_LABEL(name)
#define BC_LABEL(name)

Definition at line 392 of file regexp-interpreter.cc.

◆ DECODE

#define DECODE ( )
Value:
next_insn = Load32Aligned(next_pc)

Definition at line 357 of file regexp-interpreter.cc.

◆ DISPATCH

#define DISPATCH ( )
Value:
pc = next_pc; \
insn = next_insn; \
goto switch_dispatch_continuation

Definition at line 358 of file regexp-interpreter.cc.

◆ SET_CURRENT_POSITION

#define SET_CURRENT_POSITION ( value)
Value:
do { \
current = (value); \
DCHECK(base::IsInRange(current, 0, subject.length())); \
} while (false)
std::unique_ptr< ValueMirror > value

Definition at line 379 of file regexp-interpreter.cc.

◆ SET_PC_FROM_OFFSET

#define SET_PC_FROM_OFFSET ( offset)
Value:
next_pc = code_base + offset; \
DECODE()
int32_t offset

Definition at line 374 of file regexp-interpreter.cc.

Variable Documentation

◆ data_

base::SmallVector<ValueT, kStaticCapacity> data_
private

Definition at line 161 of file regexp-interpreter.cc.

◆ kMaxSize

int kMaxSize
staticconstexprprivate
Initial value:
=
RegExpStack::kMaximumStackSize / sizeof(ValueT)

Definition at line 163 of file regexp-interpreter.cc.

◆ kStaticCapacity

int kStaticCapacity = 64
staticconstexprprivate

Definition at line 158 of file regexp-interpreter.cc.

◆ output_register_count_

const int output_register_count_
private

Definition at line 215 of file regexp-interpreter.cc.

◆ output_registers_

RegisterT* const output_registers_
private

Definition at line 213 of file regexp-interpreter.cc.

◆ registers_

base::SmallVector<RegisterT, kStaticCapacity> registers_
private

Definition at line 212 of file regexp-interpreter.cc.

◆ total_register_count_

const int total_register_count_
private

Definition at line 214 of file regexp-interpreter.cc.