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

Public Member Functions

 RegExpCompiler (int capture_count, bool ignore_case, bool is_ascii, Zone *zone)
 
int AllocateRegister ()
 
RegExpEngine::CompilationResult Assemble (RegExpMacroAssembler *assembler, RegExpNode *start, int capture_count, Handle< String > pattern)
 
void AddWork (RegExpNode *node)
 
RegExpMacroAssemblermacro_assembler ()
 
EndNodeaccept ()
 
int recursion_depth ()
 
void IncrementRecursionDepth ()
 
void DecrementRecursionDepth ()
 
void SetRegExpTooBig ()
 
bool ignore_case ()
 
bool ascii ()
 
FrequencyCollatorfrequency_collator ()
 
int current_expansion_factor ()
 
void set_current_expansion_factor (int value)
 
Zonezone () const
 

Static Public Attributes

static const int kImplementationOffset = 0
 
static const int kNumberOfRegistersOffset = 0
 
static const int kCodeOffset = 1
 
static const int kMaxRecursion = 100
 
static const int kNoRegister = -1
 

Detailed Description

Definition at line 926 of file jsregexp.cc.

Constructor & Destructor Documentation

RegExpCompiler ( int  capture_count,
bool  ignore_case,
bool  is_ascii,
Zone zone 
)

Member Function Documentation

EndNode* accept ( )
inline

Definition at line 951 of file jsregexp.cc.

Referenced by RegExpEngine::Compile().

void AddWork ( RegExpNode node)
inline

Definition at line 944 of file jsregexp.cc.

Referenced by RegExpNode::LimitVersions().

int AllocateRegister ( )
inline
int current_expansion_factor ( )
inline

Definition at line 964 of file jsregexp.cc.

void DecrementRecursionDepth ( )
inline

Definition at line 956 of file jsregexp.cc.

Referenced by RecursionCheck::~RecursionCheck().

FrequencyCollator* frequency_collator ( )
inline

Definition at line 962 of file jsregexp.cc.

Referenced by RegExpEngine::Compile().

bool ignore_case ( )
inline
void IncrementRecursionDepth ( )
inline

Definition at line 955 of file jsregexp.cc.

Referenced by RecursionCheck::RecursionCheck().

int recursion_depth ( )
inline

Definition at line 954 of file jsregexp.cc.

Referenced by RegExpNode::LimitVersions().

void set_current_expansion_factor ( int  value)
inline
void SetRegExpTooBig ( )
inline

Definition at line 958 of file jsregexp.cc.

Referenced by Trace::AdvanceCurrentPositionInTrace(), and TextNode::Emit().

Field Documentation

const int kCodeOffset = 1
static

Definition at line 948 of file jsregexp.cc.

const int kImplementationOffset = 0
static

Definition at line 946 of file jsregexp.cc.

const int kNoRegister = -1
static

Definition at line 971 of file jsregexp.cc.

Referenced by ActionNode::Emit(), and RegExpQuantifier::ToNode().

const int kNumberOfRegistersOffset = 0
static

Definition at line 947 of file jsregexp.cc.


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