V8 Project
v8::internal::CompiledReplacement::ReplacementPart Struct Reference
+ Collaboration diagram for v8::internal::CompiledReplacement::ReplacementPart:

Public Member Functions

 ReplacementPart (int tag, int data)
 

Static Public Member Functions

static ReplacementPart SubjectMatch ()
 
static ReplacementPart SubjectCapture (int capture_index)
 
static ReplacementPart SubjectPrefix ()
 
static ReplacementPart SubjectSuffix (int subject_length)
 
static ReplacementPart ReplacementString ()
 
static ReplacementPart ReplacementSubString (int from, int to)
 

Public Attributes

int tag
 
int data
 

Detailed Description

Definition at line 46 of file runtime-regexp.cc.

Constructor & Destructor Documentation

◆ ReplacementPart()

v8::internal::CompiledReplacement::ReplacementPart::ReplacementPart ( int  tag,
int  data 
)
inline

Definition at line 70 of file runtime-regexp.cc.

70  : tag(tag), data(data) {
71  // Must be non-positive or a PartType value.
73  }
#define DCHECK(condition)
Definition: logging.h:205

References DCHECK, v8::internal::CompiledReplacement::NUMBER_OF_PART_TYPES, and tag.

Referenced by ReplacementString(), ReplacementSubString(), SubjectCapture(), SubjectMatch(), SubjectPrefix(), and SubjectSuffix().

+ Here is the caller graph for this function:

Member Function Documentation

◆ ReplacementString()

static ReplacementPart v8::internal::CompiledReplacement::ReplacementPart::ReplacementString ( )
inlinestatic

Definition at line 59 of file runtime-regexp.cc.

References v8::internal::CompiledReplacement::REPLACEMENT_STRING, and ReplacementPart().

+ Here is the call graph for this function:

◆ ReplacementSubString()

static ReplacementPart v8::internal::CompiledReplacement::ReplacementPart::ReplacementSubString ( int  from,
int  to 
)
inlinestatic

Definition at line 62 of file runtime-regexp.cc.

62  {
63  DCHECK(from >= 0);
64  DCHECK(to > from);
65  return ReplacementPart(-from, to);
66  }
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 expose gc extension under the specified name show built in functions in stack traces use random jit cookie to mask large constants minimum length for automatic enable preparsing CPU profiler sampling interval in microseconds trace out of bounds accesses to external arrays default size of stack region v8 is allowed to maximum length of function source code printed in a stack trace min size of a semi the new space consists of two semi spaces print one trace line following each garbage collection do not print trace line after scavenger collection print cumulative GC statistics in only print modified registers Trace simulator debug messages Implied by trace sim abort randomize hashes to avoid predictable hash Fixed seed to use to hash property Print the time it takes to deserialize the snapshot A filename with extra code to be included in the A file to write the raw snapshot bytes to(mksnapshot only)") DEFINE_STRING(raw_context_file

References DCHECK, ReplacementPart(), and to().

Referenced by v8::internal::CompiledReplacement::ParseReplacementPattern().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SubjectCapture()

static ReplacementPart v8::internal::CompiledReplacement::ReplacementPart::SubjectCapture ( int  capture_index)
inlinestatic

Definition at line 50 of file runtime-regexp.cc.

50  {
51  return ReplacementPart(SUBJECT_CAPTURE, capture_index);
52  }

References ReplacementPart(), and v8::internal::CompiledReplacement::SUBJECT_CAPTURE.

Referenced by v8::internal::CompiledReplacement::ParseReplacementPattern().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SubjectMatch()

static ReplacementPart v8::internal::CompiledReplacement::ReplacementPart::SubjectMatch ( )
inlinestatic

Definition at line 47 of file runtime-regexp.cc.

47  {
49  }

References ReplacementPart(), and v8::internal::CompiledReplacement::SUBJECT_CAPTURE.

Referenced by v8::internal::CompiledReplacement::ParseReplacementPattern().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SubjectPrefix()

static ReplacementPart v8::internal::CompiledReplacement::ReplacementPart::SubjectPrefix ( )
inlinestatic

Definition at line 53 of file runtime-regexp.cc.

References ReplacementPart(), and v8::internal::CompiledReplacement::SUBJECT_PREFIX.

Referenced by v8::internal::CompiledReplacement::ParseReplacementPattern().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SubjectSuffix()

static ReplacementPart v8::internal::CompiledReplacement::ReplacementPart::SubjectSuffix ( int  subject_length)
inlinestatic

Definition at line 56 of file runtime-regexp.cc.

56  {
57  return ReplacementPart(SUBJECT_SUFFIX, subject_length);
58  }

References ReplacementPart(), and v8::internal::CompiledReplacement::SUBJECT_SUFFIX.

Referenced by v8::internal::CompiledReplacement::ParseReplacementPattern().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ data

int v8::internal::CompiledReplacement::ReplacementPart::data

Definition at line 88 of file runtime-regexp.cc.

Referenced by v8::internal::CompiledReplacement::Apply().

◆ tag

int v8::internal::CompiledReplacement::ReplacementPart::tag

Definition at line 76 of file runtime-regexp.cc.

Referenced by v8::internal::CompiledReplacement::Apply(), and ReplacementPart().


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