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

Public Member Functions

 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
 
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)
 

Protected Member Functions

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

Protected Attributes

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

static const size_t kBufferSize = 512
 

Additional Inherited Members

- Static Public Attributes inherited from v8::internal::Utf16CharacterStream
static constexpr base::uc32 kEndOfInput = static_cast<base::uc32>(-1)
 

Detailed Description

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

Constructor & Destructor Documentation

◆ BufferedUtf16CharacterStream()

v8::internal::BufferedUtf16CharacterStream::BufferedUtf16CharacterStream ( )

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

Member Function Documentation

◆ FillBuffer()

virtual size_t v8::internal::BufferedUtf16CharacterStream::FillBuffer ( size_t position)
protectedpure virtual

Implemented in v8::internal::Utf8ExternalStreamingStream.

Here is the caller graph for this function:

◆ ReadBlock()

bool v8::internal::BufferedUtf16CharacterStream::ReadBlock ( size_t position)
finalprotectedvirtual

Implements v8::internal::Utf16CharacterStream.

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

Here is the call graph for this function:

Member Data Documentation

◆ buffer_

base::uc16 v8::internal::BufferedUtf16CharacterStream::buffer_[kBufferSize]
protected

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

◆ kBufferSize

const size_t v8::internal::BufferedUtf16CharacterStream::kBufferSize = 512
staticprotected

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


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