v8  3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ActionNode Class Reference

#include <jsregexp.h>

Inheritance diagram for ActionNode:
Collaboration diagram for ActionNode:

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)
 
RegExpNodeon_success ()
 
void set_on_success (RegExpNode *node)
 
virtual RegExpNodeFilterASCII (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 RegExpNodeGetSuccessorOfOmnivorousTextNode (RegExpCompiler *compiler)
 
RegExpNodereplacement ()
 
RegExpNodeset_replacement (RegExpNode *replacement)
 
void SaveBMInfo (BoyerMooreLookahead *bm, bool not_at_start, int offset)
 
Label * label ()
 
NodeInfoinfo ()
 
BoyerMooreLookaheadbm_info (bool not_at_start)
 
Zonezone () 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 ActionNodeSetRegister (int reg, int val, RegExpNode *on_success)
 
static ActionNodeIncrementRegister (int reg, RegExpNode *on_success)
 
static ActionNodeStorePosition (int reg, bool is_capture, RegExpNode *on_success)
 
static ActionNodeClearCaptures (Interval range, RegExpNode *on_success)
 
static ActionNodeBeginSubmatch (int stack_pointer_reg, int position_reg, RegExpNode *on_success)
 
static ActionNodePositiveSubmatchSuccess (int stack_pointer_reg, int restore_reg, int clear_capture_count, int clear_capture_from, RegExpNode *on_success)
 
static ActionNodeEmptyMatchCheck (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
RegExpNodeFilterSuccessor (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
RegExpNodereplacement_
 

Detailed Description

Definition at line 760 of file jsregexp.h.

Member Enumeration Documentation

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.

Member Function Documentation

virtual void Accept ( NodeVisitor visitor)
virtual

Implements RegExpNode.

ActionType action_type ( )
inline

Definition at line 803 of file jsregexp.h.

ActionNode * BeginSubmatch ( int  stack_pointer_reg,
int  position_reg,
RegExpNode on_success 
)
static

Definition at line 1537 of file jsregexp.cc.

References ActionNode::u_submatch, and RegExpNode::zone().

ActionNode * ClearCaptures ( Interval  range,
RegExpNode on_success 
)
static
int EatsAtLeast ( int  still_to_find,
int  budget,
bool  not_at_start 
)
virtual

Implements RegExpNode.

Definition at line 2305 of file jsregexp.cc.

ActionNode * EmptyMatchCheck ( int  start_register,
int  repetition_register,
int  repetition_limit,
RegExpNode on_success 
)
static

Definition at line 1563 of file jsregexp.cc.

References ActionNode::u_empty_match_check, and RegExpNode::zone().

void FillInBMInfo ( int  offset,
int  budget,
BoyerMooreLookahead bm,
bool  not_at_start 
)
virtual

Reimplemented from SeqRegExpNode.

Definition at line 2316 of file jsregexp.cc.

References BoyerMooreLookahead::SetRest().

virtual void GetQuickCheckDetails ( QuickCheckDetails details,
RegExpCompiler compiler,
int  filled_in,
bool  not_at_start 
)
inlinevirtual

Implements RegExpNode.

Definition at line 792 of file jsregexp.h.

References RegExpNode::GetQuickCheckDetails(), and SeqRegExpNode::on_success().

virtual int GreedyLoopTextLength ( )
inlinevirtual

Reimplemented from RegExpNode.

Definition at line 805 of file jsregexp.h.

References RegExpNode::kNodeIsTooComplexForGreedyLoops.

ActionNode * IncrementRegister ( int  reg,
RegExpNode on_success 
)
static

Definition at line 1508 of file jsregexp.cc.

References ActionNode::u_increment_register, and RegExpNode::zone().

ActionNode * PositiveSubmatchSuccess ( int  stack_pointer_reg,
int  restore_reg,
int  clear_capture_count,
int  clear_capture_from,
RegExpNode on_success 
)
static

Definition at line 1548 of file jsregexp.cc.

References ActionNode::u_submatch, and RegExpNode::zone().

ActionNode * SetRegister ( int  reg,
int  val,
RegExpNode on_success 
)
static

Definition at line 1497 of file jsregexp.cc.

References ActionNode::u_store_register, and RegExpNode::zone().

ActionNode * StorePosition ( int  reg,
bool  is_capture,
RegExpNode on_success 
)
static

Definition at line 1516 of file jsregexp.cc.

References ActionNode::u_position_register, and RegExpNode::zone().

Friends And Related Function Documentation

friend class DotPrinter
friend

Definition at line 840 of file jsregexp.h.

Field Documentation

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
struct { ... } u_empty_match_check
struct { ... } u_increment_register
struct { ... } u_position_register
struct { ... } u_store_register

Referenced by ActionNode::SetRegister().

struct { ... } u_submatch
int value

Definition at line 811 of file jsregexp.h.


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