v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::ConsStringIterator Class Reference

#include <string.h>

Collaboration diagram for v8::internal::ConsStringIterator:

Public Member Functions

 ConsStringIterator ()=default
 
 ConsStringIterator (Tagged< ConsString > cons_string, int offset=0)
 
 ConsStringIterator (const ConsStringIterator &)=delete
 
ConsStringIteratoroperator= (const ConsStringIterator &)=delete
 
void Reset (Tagged< ConsString > cons_string, int offset=0)
 
Tagged< StringNext (int *offset_out)
 

Private Member Functions

void PushLeft (Tagged< ConsString > string)
 
void PushRight (Tagged< ConsString > string)
 
void AdjustMaximumDepth ()
 
void Pop ()
 
bool StackBlown ()
 
V8_EXPORT_PRIVATE void Initialize (Tagged< ConsString > cons_string, int offset)
 
V8_EXPORT_PRIVATE Tagged< StringContinue (int *offset_out)
 
Tagged< StringNextLeaf (bool *blew_stack)
 
Tagged< StringSearch (int *offset_out)
 

Static Private Member Functions

static int OffsetForDepth (int depth)
 

Private Attributes

Tagged< ConsStringframes_ [kStackSize]
 
Tagged< ConsStringroot_
 
int depth_
 
int maximum_depth_
 
uint32_t consumed_
 

Static Private Attributes

static const int kStackSize = 32
 
static const int kDepthMask = kStackSize - 1
 

Detailed Description

Definition at line 1320 of file string.h.

Constructor & Destructor Documentation

◆ ConsStringIterator() [1/3]

v8::internal::ConsStringIterator::ConsStringIterator ( )
inlinedefault

◆ ConsStringIterator() [2/3]

v8::internal::ConsStringIterator::ConsStringIterator ( Tagged< ConsString > cons_string,
int offset = 0 )
inlineexplicit

Definition at line 1323 of file string.h.

Here is the call graph for this function:

◆ ConsStringIterator() [3/3]

v8::internal::ConsStringIterator::ConsStringIterator ( const ConsStringIterator & )
delete

Member Function Documentation

◆ AdjustMaximumDepth()

void v8::internal::ConsStringIterator::AdjustMaximumDepth ( )
inlineprivate

Definition at line 1507 of file string-inl.h.

Here is the caller graph for this function:

◆ Continue()

Tagged< String > v8::internal::ConsStringIterator::Continue ( int * offset_out)
private

Definition at line 2084 of file string.cc.

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

◆ Initialize()

void v8::internal::ConsStringIterator::Initialize ( Tagged< ConsString > cons_string,
int offset )
private

Definition at line 2073 of file string.cc.

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

◆ Next()

Tagged< String > v8::internal::ConsStringIterator::Next ( int * offset_out)
inline

Definition at line 1340 of file string.h.

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

◆ NextLeaf()

Tagged< String > v8::internal::ConsStringIterator::NextLeaf ( bool * blew_stack)
private

Definition at line 2160 of file string.cc.

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

◆ OffsetForDepth()

int v8::internal::ConsStringIterator::OffsetForDepth ( int depth)
inlinestaticprivate

Definition at line 1496 of file string-inl.h.

Here is the caller graph for this function:

◆ operator=()

ConsStringIterator & v8::internal::ConsStringIterator::operator= ( const ConsStringIterator & )
delete

◆ Pop()

void v8::internal::ConsStringIterator::Pop ( )
inlineprivate

Definition at line 1511 of file string-inl.h.

Here is the caller graph for this function:

◆ PushLeft()

void v8::internal::ConsStringIterator::PushLeft ( Tagged< ConsString > string)
inlineprivate

Definition at line 1498 of file string-inl.h.

Here is the caller graph for this function:

◆ PushRight()

void v8::internal::ConsStringIterator::PushRight ( Tagged< ConsString > string)
inlineprivate

Definition at line 1502 of file string-inl.h.

Here is the caller graph for this function:

◆ Reset()

void v8::internal::ConsStringIterator::Reset ( Tagged< ConsString > cons_string,
int offset = 0 )
inline

Definition at line 1329 of file string.h.

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

◆ Search()

Tagged< String > v8::internal::ConsStringIterator::Search ( int * offset_out)
private

Definition at line 2101 of file string.cc.

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

◆ StackBlown()

bool v8::internal::ConsStringIterator::StackBlown ( )
inlineprivate

Definition at line 1358 of file string.h.

Here is the caller graph for this function:

Member Data Documentation

◆ consumed_

uint32_t v8::internal::ConsStringIterator::consumed_
private

Definition at line 1370 of file string.h.

◆ depth_

int v8::internal::ConsStringIterator::depth_
private

Definition at line 1368 of file string.h.

◆ frames_

Tagged<ConsString> v8::internal::ConsStringIterator::frames_[kStackSize]
private

Definition at line 1366 of file string.h.

◆ kDepthMask

const int v8::internal::ConsStringIterator::kDepthMask = kStackSize - 1
staticprivate

Definition at line 1349 of file string.h.

◆ kStackSize

const int v8::internal::ConsStringIterator::kStackSize = 32
staticprivate

Definition at line 1347 of file string.h.

◆ maximum_depth_

int v8::internal::ConsStringIterator::maximum_depth_
private

Definition at line 1369 of file string.h.

◆ root_

Tagged<ConsString> v8::internal::ConsStringIterator::root_
private

Definition at line 1367 of file string.h.


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