v8
3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
|
#include <ast.h>
Public Types | |
enum | Type { GREEDY, NON_GREEDY, POSSESSIVE } |
Public Member Functions | |
RegExpQuantifier (int min, int max, Type type, RegExpTree *body) | |
virtual void * | Accept (RegExpVisitor *visitor, void *data) |
virtual RegExpNode * | ToNode (RegExpCompiler *compiler, RegExpNode *on_success) |
virtual RegExpQuantifier * | AsQuantifier () |
virtual Interval | CaptureRegisters () |
virtual bool | IsQuantifier () |
virtual int | min_match () |
virtual int | max_match () |
int | min () |
int | max () |
bool | is_possessive () |
bool | is_non_greedy () |
bool | is_greedy () |
RegExpTree * | body () |
Public Member Functions inherited from RegExpTree | |
virtual | ~RegExpTree () |
virtual bool | IsTextElement () |
virtual bool | IsAnchoredAtStart () |
virtual bool | IsAnchoredAtEnd () |
virtual void | AppendToText (RegExpText *text, Zone *zone) |
SmartArrayPointer< const char > | ToString (Zone *zone) |
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 RegExpNode * | ToNode (int min, int max, bool is_greedy, RegExpTree *body, RegExpCompiler *compiler, RegExpNode *on_success, bool not_at_start=false) |
Additional Inherited Members | |
Static Public Attributes inherited from RegExpTree | |
static const int | kInfinity = kMaxInt |
|
inline |
Definition at line 2326 of file ast.h.
References RegExpTree::max_match().
|
virtual |
Implements RegExpTree.
|
virtual |
|
inline |
Definition at line 2358 of file ast.h.
Referenced by RegExpQuantifier::ToNode().
|
virtual |
Reimplemented from RegExpTree.
|
inline |
Definition at line 2357 of file ast.h.
Referenced by RegExpQuantifier::ToNode().
|
virtual |
|
inline |
Definition at line 2354 of file ast.h.
Referenced by RegExpQuantifier::ToNode().
|
inlinevirtual |
Implements RegExpTree.
|
inline |
Definition at line 2353 of file ast.h.
Referenced by RegExpQuantifier::ToNode().
|
inlinevirtual |
Implements RegExpTree.
|
virtual |
Implements RegExpTree.
Definition at line 4856 of file jsregexp.cc.
References RegExpQuantifier::body(), RegExpQuantifier::is_greedy(), RegExpQuantifier::max(), and RegExpQuantifier::min().
Referenced by RegExpEngine::Compile(), and RegExpQuantifier::ToNode().
|
static |
Definition at line 4905 of file jsregexp.cc.
References ChoiceNode::AddAlternative(), LoopChoiceNode::AddContinueAlternative(), GuardedAlternative::AddGuard(), LoopChoiceNode::AddLoopAlternative(), RegExpCompiler::AllocateRegister(), ASSERT, RegExpTree::CaptureRegisters(), ActionNode::ClearCaptures(), ActionNode::EmptyMatchCheck(), Guard::GEQ, ActionNode::IncrementRegister(), Interval::is_empty(), RegExpTree::kInfinity, RegExpCompiler::kNoRegister, Guard::LT, RegExpQuantifier::max(), RegExpQuantifier::min(), RegExpTree::min_match(), RegExpExpansionLimiter::ok_to_expand(), ChoiceNode::set_not_at_start(), ActionNode::SetRegister(), ActionNode::StorePosition(), RegExpTree::ToNode(), RegExpQuantifier::ToNode(), and RegExpCompiler::zone().