v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::Utf8ExternalStreamingStream Class Referencefinal
Inheritance diagram for v8::internal::Utf8ExternalStreamingStream:
Collaboration diagram for v8::internal::Utf8ExternalStreamingStream:

Classes

struct  Chunk
 
struct  Position
 
struct  StreamPosition
 

Public Member Functions

 Utf8ExternalStreamingStream (ScriptCompiler::ExternalSourceStream *source_stream)
 
 ~Utf8ExternalStreamingStream () final=default
 
bool can_access_heap () const final
 
bool can_be_cloned () const final
 
std::unique_ptr< Utf16CharacterStreamClone () const override
 
- Public Member Functions inherited from v8::internal::BufferedUtf16CharacterStream
 BufferedUtf16CharacterStream ()
 
- Public Member Functions inherited from v8::internal::Utf16CharacterStream
virtual ~Utf16CharacterStream ()=default
 
V8_INLINE void set_parser_error ()
 
V8_INLINE void reset_parser_error_flag ()
 
V8_INLINE bool has_parser_error () const
 
base::uc32 Peek ()
 
base::uc32 Advance ()
 
template<typename FunctionType >
V8_INLINE base::uc32 AdvanceUntil (FunctionType check)
 
void Back ()
 
size_t pos () const
 
void Seek (size_t pos)
 
bool can_be_cloned_for_parallel_access () const
 
RuntimeCallStatsruntime_call_stats () const
 
void set_runtime_call_stats (RuntimeCallStats *runtime_call_stats)
 

Protected Member Functions

size_t FillBuffer (size_t position) final
 
- Protected Member Functions inherited from v8::internal::BufferedUtf16CharacterStream
bool ReadBlock (size_t position) final
 
- Protected Member Functions inherited from v8::internal::Utf16CharacterStream
 Utf16CharacterStream (const uint16_t *buffer_start, const uint16_t *buffer_cursor, const uint16_t *buffer_end, size_t buffer_pos)
 
 Utf16CharacterStream ()
 
bool ReadBlockChecked (size_t position)
 

Private Member Functions

 Utf8ExternalStreamingStream (const Utf8ExternalStreamingStream &source_stream) V8_NOEXCEPT
 
bool SkipToPosition (size_t position)
 
void FillBufferFromCurrentChunk ()
 
bool FetchChunk ()
 
void SearchPosition (size_t position)
 
ChunkGetChunk (size_t chunk_no)
 

Private Attributes

std::shared_ptr< std::vector< Chunk > > chunks_
 
Position current_
 
ScriptCompiler::ExternalSourceStreamsource_stream_
 

Additional Inherited Members

- Static Public Attributes inherited from v8::internal::Utf16CharacterStream
static constexpr base::uc32 kEndOfInput = static_cast<base::uc32>(-1)
 
- Protected Attributes inherited from v8::internal::BufferedUtf16CharacterStream
base::uc16 buffer_ [kBufferSize]
 
- Protected Attributes inherited from v8::internal::Utf16CharacterStream
const uint16_t * buffer_start_
 
const uint16_t * buffer_cursor_
 
const uint16_t * buffer_end_
 
size_t buffer_pos_
 
RuntimeCallStatsruntime_call_stats_ = nullptr
 
bool has_parser_error_ = false
 
- Static Protected Attributes inherited from v8::internal::BufferedUtf16CharacterStream
static const size_t kBufferSize = 512
 

Detailed Description

Definition at line 526 of file scanner-character-streams.cc.

Constructor & Destructor Documentation

◆ Utf8ExternalStreamingStream() [1/2]

v8::internal::Utf8ExternalStreamingStream::Utf8ExternalStreamingStream ( ScriptCompiler::ExternalSourceStream * source_stream)
inline

Definition at line 528 of file scanner-character-streams.cc.

Here is the caller graph for this function:

◆ ~Utf8ExternalStreamingStream()

v8::internal::Utf8ExternalStreamingStream::~Utf8ExternalStreamingStream ( )
finaldefault

◆ Utf8ExternalStreamingStream() [2/2]

v8::internal::Utf8ExternalStreamingStream::Utf8ExternalStreamingStream ( const Utf8ExternalStreamingStream & source_stream)
inlineprivate

Definition at line 578 of file scanner-character-streams.cc.

Member Function Documentation

◆ can_access_heap()

bool v8::internal::Utf8ExternalStreamingStream::can_access_heap ( ) const
inlinefinalvirtual

Implements v8::internal::Utf16CharacterStream.

Definition at line 535 of file scanner-character-streams.cc.

◆ can_be_cloned()

bool v8::internal::Utf8ExternalStreamingStream::can_be_cloned ( ) const
inlinefinalvirtual

Implements v8::internal::Utf16CharacterStream.

Definition at line 537 of file scanner-character-streams.cc.

◆ Clone()

std::unique_ptr< Utf16CharacterStream > v8::internal::Utf8ExternalStreamingStream::Clone ( ) const
inlineoverridevirtual

Implements v8::internal::Utf16CharacterStream.

Definition at line 539 of file scanner-character-streams.cc.

Here is the call graph for this function:

◆ FetchChunk()

bool v8::internal::Utf8ExternalStreamingStream::FetchChunk ( )
private

Definition at line 737 of file scanner-character-streams.cc.

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

◆ FillBuffer()

size_t v8::internal::Utf8ExternalStreamingStream::FillBuffer ( size_t position)
finalprotectedvirtual

Implements v8::internal::BufferedUtf16CharacterStream.

Definition at line 836 of file scanner-character-streams.cc.

Here is the call graph for this function:

◆ FillBufferFromCurrentChunk()

void v8::internal::Utf8ExternalStreamingStream::FillBufferFromCurrentChunk ( )
private

Definition at line 648 of file scanner-character-streams.cc.

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

◆ GetChunk()

Chunk & v8::internal::Utf8ExternalStreamingStream::GetChunk ( size_t chunk_no)
inlineprivate

Definition at line 593 of file scanner-character-streams.cc.

Here is the caller graph for this function:

◆ SearchPosition()

void v8::internal::Utf8ExternalStreamingStream::SearchPosition ( size_t position)
private

Definition at line 756 of file scanner-character-streams.cc.

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

◆ SkipToPosition()

bool v8::internal::Utf8ExternalStreamingStream::SkipToPosition ( size_t position)
private

Definition at line 600 of file scanner-character-streams.cc.

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

Member Data Documentation

◆ chunks_

std::shared_ptr<std::vector<Chunk> > v8::internal::Utf8ExternalStreamingStream::chunks_
private

Definition at line 595 of file scanner-character-streams.cc.

◆ current_

Position v8::internal::Utf8ExternalStreamingStream::current_
private

Definition at line 596 of file scanner-character-streams.cc.

◆ source_stream_

ScriptCompiler::ExternalSourceStream* v8::internal::Utf8ExternalStreamingStream::source_stream_
private

Definition at line 597 of file scanner-character-streams.cc.


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