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

#include <scanner.h>

Inheritance diagram for v8::internal::Utf16CharacterStream:
Collaboration diagram for v8::internal::Utf16CharacterStream:

Public Member Functions

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
 
virtual bool can_be_cloned () const =0
 
virtual std::unique_ptr< Utf16CharacterStreamClone () const =0
 
virtual bool can_access_heap () const =0
 
RuntimeCallStatsruntime_call_stats () const
 
void set_runtime_call_stats (RuntimeCallStats *runtime_call_stats)
 

Static Public Attributes

static constexpr base::uc32 kEndOfInput = static_cast<base::uc32>(-1)
 

Protected Member Functions

 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)
 
virtual bool ReadBlock (size_t position)=0
 

Protected Attributes

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
 

Detailed Description

Definition at line 40 of file scanner.h.

Constructor & Destructor Documentation

◆ ~Utf16CharacterStream()

virtual v8::internal::Utf16CharacterStream::~Utf16CharacterStream ( )
virtualdefault

◆ Utf16CharacterStream() [1/2]

v8::internal::Utf16CharacterStream::Utf16CharacterStream ( const uint16_t * buffer_start,
const uint16_t * buffer_cursor,
const uint16_t * buffer_end,
size_t buffer_pos )
inlineprotected

Definition at line 146 of file scanner.h.

◆ Utf16CharacterStream() [2/2]

v8::internal::Utf16CharacterStream::Utf16CharacterStream ( )
inlineprotected

Definition at line 153 of file scanner.h.

Member Function Documentation

◆ Advance()

base::uc32 v8::internal::Utf16CharacterStream::Advance ( )
inline

Definition at line 67 of file scanner.h.

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

◆ AdvanceUntil()

template<typename FunctionType >
V8_INLINE base::uc32 v8::internal::Utf16CharacterStream::AdvanceUntil ( FunctionType check)
inline

Definition at line 77 of file scanner.h.

Here is the call graph for this function:

◆ Back()

void v8::internal::Utf16CharacterStream::Back ( )
inline

Definition at line 100 of file scanner.h.

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

◆ can_access_heap()

virtual bool v8::internal::Utf16CharacterStream::can_access_heap ( ) const
pure virtual

Implemented in v8::internal::BufferedCharacterStream< ByteStream >, v8::internal::UnbufferedCharacterStream< ByteStream >, v8::internal::UnbufferedCharacterStream< OnHeapStream >, v8::internal::Utf8ExternalStreamingStream, and v8::internal::Windows1252CharacterStream.

Here is the caller graph for this function:

◆ can_be_cloned()

virtual bool v8::internal::Utf16CharacterStream::can_be_cloned ( ) const
pure virtual

Implemented in v8::internal::BufferedCharacterStream< ByteStream >, v8::internal::UnbufferedCharacterStream< ByteStream >, v8::internal::UnbufferedCharacterStream< OnHeapStream >, v8::internal::Utf8ExternalStreamingStream, and v8::internal::Windows1252CharacterStream.

Here is the caller graph for this function:

◆ can_be_cloned_for_parallel_access()

bool v8::internal::Utf16CharacterStream::can_be_cloned_for_parallel_access ( ) const
inline

Definition at line 125 of file scanner.h.

Here is the call graph for this function:

◆ Clone()

◆ has_parser_error()

V8_INLINE bool v8::internal::Utf16CharacterStream::has_parser_error ( ) const
inline

Definition at line 53 of file scanner.h.

Here is the caller graph for this function:

◆ Peek()

base::uc32 v8::internal::Utf16CharacterStream::Peek ( )
inline

Definition at line 55 of file scanner.h.

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

◆ pos()

size_t v8::internal::Utf16CharacterStream::pos ( ) const
inline

Definition at line 111 of file scanner.h.

Here is the caller graph for this function:

◆ ReadBlock()

virtual bool v8::internal::Utf16CharacterStream::ReadBlock ( size_t position)
protectedpure virtual

Implemented in v8::internal::BufferedCharacterStream< ByteStream >, v8::internal::BufferedUtf16CharacterStream, v8::internal::UnbufferedCharacterStream< ByteStream >, v8::internal::UnbufferedCharacterStream< OnHeapStream >, and v8::internal::Windows1252CharacterStream.

Here is the caller graph for this function:

◆ ReadBlockChecked()

bool v8::internal::Utf16CharacterStream::ReadBlockChecked ( size_t position)
inlineprotected

Definition at line 155 of file scanner.h.

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

◆ reset_parser_error_flag()

V8_INLINE void v8::internal::Utf16CharacterStream::reset_parser_error_flag ( )
inline

Definition at line 52 of file scanner.h.

◆ runtime_call_stats()

RuntimeCallStats * v8::internal::Utf16CharacterStream::runtime_call_stats ( ) const
inline

Definition at line 140 of file scanner.h.

Here is the caller graph for this function:

◆ Seek()

void v8::internal::Utf16CharacterStream::Seek ( size_t pos)
inline

Definition at line 115 of file scanner.h.

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

◆ set_parser_error()

V8_INLINE void v8::internal::Utf16CharacterStream::set_parser_error ( )
inline

Definition at line 46 of file scanner.h.

◆ set_runtime_call_stats()

void v8::internal::Utf16CharacterStream::set_runtime_call_stats ( RuntimeCallStats * runtime_call_stats)
inline

Definition at line 141 of file scanner.h.

Here is the call graph for this function:

Member Data Documentation

◆ buffer_cursor_

const uint16_t* v8::internal::Utf16CharacterStream::buffer_cursor_
protected

Definition at line 205 of file scanner.h.

◆ buffer_end_

const uint16_t* v8::internal::Utf16CharacterStream::buffer_end_
protected

Definition at line 206 of file scanner.h.

◆ buffer_pos_

size_t v8::internal::Utf16CharacterStream::buffer_pos_
protected

Definition at line 207 of file scanner.h.

◆ buffer_start_

const uint16_t* v8::internal::Utf16CharacterStream::buffer_start_
protected

Definition at line 204 of file scanner.h.

◆ has_parser_error_

bool v8::internal::Utf16CharacterStream::has_parser_error_ = false
protected

Definition at line 209 of file scanner.h.

◆ kEndOfInput

base::uc32 v8::internal::Utf16CharacterStream::kEndOfInput = static_cast<base::uc32>(-1)
staticconstexpr

Definition at line 42 of file scanner.h.

◆ runtime_call_stats_

RuntimeCallStats* v8::internal::Utf16CharacterStream::runtime_call_stats_ = nullptr
protected

Definition at line 208 of file scanner.h.


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