v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include <jsregexp.h>
Public Types | |
enum | ActionType { SET_REGISTER, INCREMENT_REGISTER, STORE_POSITION, BEGIN_SUBMATCH, POSITIVE_SUBMATCH_SUCCESS, EMPTY_MATCH_CHECK, CLEAR_CAPTURES } |
Public Member Functions | |
virtual void | Accept (NodeVisitor *visitor) |
virtual void | Emit (RegExpCompiler *compiler, Trace *trace) |
virtual int | EatsAtLeast (int still_to_find, int budget, bool not_at_start) |
virtual void | GetQuickCheckDetails (QuickCheckDetails *details, RegExpCompiler *compiler, int filled_in, bool not_at_start) |
virtual void | FillInBMInfo (int offset, int budget, BoyerMooreLookahead *bm, bool not_at_start) |
ActionType | action_type () |
virtual int | GreedyLoopTextLength () |
Public Member Functions inherited from SeqRegExpNode | |
SeqRegExpNode (RegExpNode *on_success) | |
RegExpNode * | on_success () |
void | set_on_success (RegExpNode *node) |
virtual RegExpNode * | FilterASCII (int depth, bool ignore_case) |
Public Member Functions inherited from RegExpNode | |
RegExpNode (Zone *zone) | |
virtual | ~RegExpNode () |
bool | EmitQuickCheck (RegExpCompiler *compiler, Trace *trace, bool preload_has_checked_bounds, Label *on_possible_success, QuickCheckDetails *details_return, bool fall_through_on_failure) |
virtual RegExpNode * | GetSuccessorOfOmnivorousTextNode (RegExpCompiler *compiler) |
RegExpNode * | replacement () |
RegExpNode * | set_replacement (RegExpNode *replacement) |
void | SaveBMInfo (BoyerMooreLookahead *bm, bool not_at_start, int offset) |
Label * | label () |
NodeInfo * | info () |
BoyerMooreLookahead * | bm_info (bool not_at_start) |
Zone * | zone () const |
Public Member Functions inherited from ZoneObject | |
INLINE (void *operator new(size_t size, Zone *zone)) | |
void | operator delete (void *, size_t) |
void | operator delete (void *pointer, Zone *zone) |
Static Public Member Functions | |
static ActionNode * | SetRegister (int reg, int val, RegExpNode *on_success) |
static ActionNode * | IncrementRegister (int reg, RegExpNode *on_success) |
static ActionNode * | StorePosition (int reg, bool is_capture, RegExpNode *on_success) |
static ActionNode * | ClearCaptures (Interval range, RegExpNode *on_success) |
static ActionNode * | BeginSubmatch (int stack_pointer_reg, int position_reg, RegExpNode *on_success) |
static ActionNode * | PositiveSubmatchSuccess (int stack_pointer_reg, int restore_reg, int clear_capture_count, int clear_capture_from, RegExpNode *on_success) |
static ActionNode * | EmptyMatchCheck (int start_register, int repetition_register, int repetition_limit, RegExpNode *on_success) |
Friends | |
class | DotPrinter |
Additional Inherited Members | |
Static Public Attributes inherited from RegExpNode | |
static const int | kNodeIsTooComplexForGreedyLoops = -1 |
static const int | kRecursionBudget = 200 |
static const int | kMaxCopiesCodeGenerated = 10 |
Protected Types inherited from RegExpNode | |
enum | LimitResult { DONE, CONTINUE } |
Protected Member Functions inherited from SeqRegExpNode | |
RegExpNode * | FilterSuccessor (int depth, bool ignore_case) |
Protected Member Functions inherited from RegExpNode | |
LimitResult | LimitVersions (RegExpCompiler *compiler, Trace *trace) |
void | set_bm_info (bool not_at_start, BoyerMooreLookahead *bm) |
Protected Attributes inherited from RegExpNode | |
RegExpNode * | replacement_ |
Definition at line 760 of file jsregexp.h.
enum ActionType |
Enumerator | |
---|---|
SET_REGISTER | |
INCREMENT_REGISTER | |
STORE_POSITION | |
BEGIN_SUBMATCH | |
POSITIVE_SUBMATCH_SUCCESS | |
EMPTY_MATCH_CHECK | |
CLEAR_CAPTURES |
Definition at line 762 of file jsregexp.h.
|
virtual |
Implements RegExpNode.
|
inline |
Definition at line 803 of file jsregexp.h.
|
static |
Definition at line 1537 of file jsregexp.cc.
References ActionNode::u_submatch, and RegExpNode::zone().
|
static |
Definition at line 1527 of file jsregexp.cc.
References Interval::from(), Interval::to(), ActionNode::u_clear_captures, and RegExpNode::zone().
|
virtual |
Implements RegExpNode.
Definition at line 2305 of file jsregexp.cc.
|
virtual |
Implements RegExpNode.
Definition at line 4192 of file jsregexp.cc.
References Trace::add_action(), ASSERT, RegExpMacroAssembler::Backtrack(), Trace::backtrack(), ActionNode::BEGIN_SUBMATCH, RegExpMacroAssembler::Bind(), ActionNode::CLEAR_CAPTURES, ActionNode::clear_register_count, RegExpMacroAssembler::ClearRegisters(), RegExpNode::CONTINUE, Trace::cp_offset(), RegExpNode::DONE, RegExpNode::Emit(), ActionNode::EMPTY_MATCH_CHECK, Trace::Flush(), Trace::GetStoredPosition(), RegExpMacroAssembler::GoTo(), RegExpMacroAssembler::IfRegisterEqPos(), RegExpMacroAssembler::IfRegisterLT(), ActionNode::INCREMENT_REGISTER, Trace::is_trivial(), RegExpCompiler::kNoRegister, RegExpNode::LimitVersions(), RegExpCompiler::macro_assembler(), v8::internal::NULL, SeqRegExpNode::on_success(), ActionNode::POSITIVE_SUBMATCH_SUCCESS, RegExpMacroAssembler::ReadCurrentPositionFromRegister(), RegExpMacroAssembler::ReadStackPointerFromRegister(), Trace::set_backtrack(), ActionNode::SET_REGISTER, ActionNode::STORE_POSITION, UNREACHABLE, RegExpMacroAssembler::WriteCurrentPositionToRegister(), and RegExpMacroAssembler::WriteStackPointerToRegister().
|
static |
Definition at line 1563 of file jsregexp.cc.
References ActionNode::u_empty_match_check, and RegExpNode::zone().
|
virtual |
Reimplemented from SeqRegExpNode.
Definition at line 2316 of file jsregexp.cc.
References BoyerMooreLookahead::SetRest().
|
inlinevirtual |
Implements RegExpNode.
Definition at line 792 of file jsregexp.h.
References RegExpNode::GetQuickCheckDetails(), and SeqRegExpNode::on_success().
|
inlinevirtual |
Reimplemented from RegExpNode.
Definition at line 805 of file jsregexp.h.
References RegExpNode::kNodeIsTooComplexForGreedyLoops.
|
static |
Definition at line 1508 of file jsregexp.cc.
References ActionNode::u_increment_register, and RegExpNode::zone().
|
static |
Definition at line 1548 of file jsregexp.cc.
References ActionNode::u_submatch, and RegExpNode::zone().
|
static |
Definition at line 1497 of file jsregexp.cc.
References ActionNode::u_store_register, and RegExpNode::zone().
|
static |
Definition at line 1516 of file jsregexp.cc.
References ActionNode::u_position_register, and RegExpNode::zone().
|
friend |
Definition at line 840 of file jsregexp.h.
int clear_register_count |
Definition at line 823 of file jsregexp.h.
Referenced by ActionNode::Emit().
int clear_register_from |
Definition at line 824 of file jsregexp.h.
int current_position_register |
Definition at line 822 of file jsregexp.h.
bool is_capture |
Definition at line 818 of file jsregexp.h.
int range_from |
Definition at line 832 of file jsregexp.h.
int range_to |
Definition at line 833 of file jsregexp.h.
int reg |
Definition at line 810 of file jsregexp.h.
int repetition_limit |
Definition at line 829 of file jsregexp.h.
int repetition_register |
Definition at line 828 of file jsregexp.h.
int stack_pointer_register |
Definition at line 821 of file jsregexp.h.
int start_register |
Definition at line 827 of file jsregexp.h.
struct { ... } u_clear_captures |
Referenced by ActionNode::ClearCaptures().
struct { ... } u_empty_match_check |
Referenced by ActionNode::EmptyMatchCheck().
struct { ... } u_increment_register |
Referenced by ActionNode::IncrementRegister().
struct { ... } u_position_register |
Referenced by ActionNode::StorePosition().
struct { ... } u_store_register |
Referenced by ActionNode::SetRegister().
struct { ... } u_submatch |
Referenced by ActionNode::BeginSubmatch(), and ActionNode::PositiveSubmatchSuccess().
int value |
Definition at line 811 of file jsregexp.h.