V8 Project
v8::internal::RegExpTree Class Referenceabstract

#include <ast.h>

+ Inheritance diagram for v8::internal::RegExpTree:
+ Collaboration diagram for v8::internal::RegExpTree:

Public Member Functions

virtual ~RegExpTree ()
 
virtual void * Accept (RegExpVisitor *visitor, void *data)=0
 
virtual RegExpNodeToNode (RegExpCompiler *compiler, RegExpNode *on_success)=0
 
virtual bool IsTextElement ()
 
virtual bool IsAnchoredAtStart ()
 
virtual bool IsAnchoredAtEnd ()
 
virtual int min_match ()=0
 
virtual int max_match ()=0
 
virtual Interval CaptureRegisters ()
 
virtual void AppendToText (RegExpText *text, Zone *zone)
 
OStreamPrint (OStream &os, Zone *zone)
 
- Public Member Functions inherited from v8::internal::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 Attributes

static const int kInfinity = kMaxInt
 

Detailed Description

Definition at line 2595 of file ast.h.

Constructor & Destructor Documentation

◆ ~RegExpTree()

virtual v8::internal::RegExpTree::~RegExpTree ( )
inlinevirtual

Definition at line 2598 of file ast.h.

2598 {}

Member Function Documentation

◆ Accept()

◆ AppendToText()

void v8::internal::RegExpTree::AppendToText ( RegExpText *  text,
Zone zone 
)
virtual

◆ CaptureRegisters()

virtual Interval v8::internal::RegExpTree::CaptureRegisters ( )
inlinevirtual

Reimplemented in v8::internal::FINAL< kOperandKind, kNumCachedOperands >, v8::internal::FINAL< kOperandKind, kNumCachedOperands >, v8::internal::FINAL< kOperandKind, kNumCachedOperands >, v8::internal::FINAL< kOperandKind, kNumCachedOperands >, and v8::internal::FINAL< kOperandKind, kNumCachedOperands >.

Definition at line 2609 of file ast.h.

2609 { return Interval::Empty(); }
static Interval Empty()
Definition: jsregexp.h:715

References v8::internal::Interval::Empty().

+ Here is the call graph for this function:

◆ IsAnchoredAtEnd()

virtual bool v8::internal::RegExpTree::IsAnchoredAtEnd ( )
inlinevirtual

Reimplemented in v8::internal::FINAL< kOperandKind, kNumCachedOperands >, v8::internal::FINAL< kOperandKind, kNumCachedOperands >, v8::internal::FINAL< kOperandKind, kNumCachedOperands >, and v8::internal::FINAL< kOperandKind, kNumCachedOperands >.

Definition at line 2604 of file ast.h.

2604 { return false; }

Referenced by v8::internal::RegExpEngine::Compile().

+ Here is the caller graph for this function:

◆ IsAnchoredAtStart()

virtual bool v8::internal::RegExpTree::IsAnchoredAtStart ( )
inlinevirtual

Reimplemented in v8::internal::FINAL< kOperandKind, kNumCachedOperands >, v8::internal::FINAL< kOperandKind, kNumCachedOperands >, v8::internal::FINAL< kOperandKind, kNumCachedOperands >, v8::internal::FINAL< kOperandKind, kNumCachedOperands >, and v8::internal::FINAL< kOperandKind, kNumCachedOperands >.

Definition at line 2603 of file ast.h.

2603 { return false; }

Referenced by v8::internal::RegExpEngine::Compile().

+ Here is the caller graph for this function:

◆ IsTextElement()

virtual bool v8::internal::RegExpTree::IsTextElement ( )
inlinevirtual

Reimplemented in v8::internal::FINAL< kOperandKind, kNumCachedOperands >, v8::internal::FINAL< kOperandKind, kNumCachedOperands >, and v8::internal::FINAL< kOperandKind, kNumCachedOperands >.

Definition at line 2602 of file ast.h.

2602 { return false; }

Referenced by v8::internal::RegExpBuilder::AddAtom().

+ Here is the caller graph for this function:

◆ max_match()

◆ min_match()

◆ Print()

OStream & v8::internal::RegExpTree::Print ( OStream os,
Zone zone 
)

Definition at line 947 of file ast.cc.

947  { // NOLINT
948  RegExpUnparser unparser(os, zone);
949  Accept(&unparser, NULL);
950  return os;
951 }
virtual void * Accept(RegExpVisitor *visitor, void *data)=0
enable harmony numeric enable harmony object literal extensions Optimize object Array DOM strings and string trace pretenuring decisions of HAllocate instructions Enables optimizations which favor memory size over execution speed maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining trace the tracking of allocation sites deoptimize every n garbage collections perform array bounds checks elimination analyze liveness of environment slots and zap dead values flushes the cache of optimized code for closures on every GC allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes enable context specialization in TurboFan execution budget before interrupt is triggered max percentage of megamorphic generic ICs to allow optimization enable use of SAHF instruction if enable use of VFP3 instructions if available enable use of NEON instructions if enable use of SDIV and UDIV instructions if enable use of MLS instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of d16 d31 registers on ARM this requires VFP3 force all emitted branches to be in long enable alignment of csp to bytes on platforms which prefer the register to always be NULL

References Accept(), and NULL.

+ Here is the call graph for this function:

◆ ToNode()

Member Data Documentation

◆ kInfinity

const int v8::internal::RegExpTree::kInfinity = kMaxInt
static

Definition at line 2597 of file ast.h.

Referenced by v8::internal::RegExpEngine::Compile(), and v8::internal::IncreaseBy().


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