#include <scanner-character-streams.h>
Definition at line 81 of file scanner-character-streams.h.
◆ ExternalStreamingStream()
Definition at line 83 of file scanner-character-streams.h.
ScriptCompiler::ExternalSourceStream * source_stream_
const uint8_t * current_data_
unsigned current_data_offset_
v8::ScriptCompiler::StreamedSource::Encoding encoding_
unsigned utf8_split_char_buffer_length_
unsigned current_data_length_
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 NULL
◆ ~ExternalStreamingStream()
virtual v8::internal::ExternalStreamingStream::~ExternalStreamingStream |
( |
| ) |
|
|
inlinevirtual |
◆ BufferSeekForward()
virtual unsigned v8::internal::ExternalStreamingStream::BufferSeekForward |
( |
unsigned |
delta | ) |
|
|
inlinevirtual |
◆ FillBuffer()
unsigned v8::internal::ExternalStreamingStream::FillBuffer |
( |
unsigned |
position | ) |
|
|
virtual |
Implements v8::internal::BufferedUtf16CharacterStream.
Definition at line 319 of file scanner-character-streams.cc.
322 unsigned data_in_buffer = 0;
357 return data_in_buffer;
362 unsigned new_offset = 0;
363 unsigned new_chars_in_buffer =
367 data_in_buffer += new_chars_in_buffer;
379 return data_in_buffer;
virtual size_t GetMoreData(const uint8_t **src)=0
V8 calls this to request the next chunk of data from the embedder.
uc16 buffer_[kBufferSize]
static const unsigned kBufferSize
void HandleUtf8SplitCharacters(unsigned *data_in_buffer)
#define DCHECK(condition)
unsigned CopyCharsHelper(uint16_t *dest, unsigned length, const uint8_t *src, unsigned *src_pos, unsigned src_length, ScriptCompiler::StreamedSource::Encoding encoding)
References v8::internal::BufferedUtf16CharacterStream::buffer_, v8::internal::anonymous_namespace{scanner-character-streams.cc}::CopyCharsHelper(), current_data_, current_data_length_, current_data_offset_, DCHECK, encoding_, v8::ScriptCompiler::ExternalSourceStream::GetMoreData(), HandleUtf8SplitCharacters(), v8::internal::BufferedUtf16CharacterStream::kBufferSize, NULL, source_stream_, v8::ScriptCompiler::StreamedSource::UTF8, and utf8_split_char_buffer_length_.
◆ HandleUtf8SplitCharacters()
void v8::internal::ExternalStreamingStream::HandleUtf8SplitCharacters |
( |
unsigned * |
data_in_buffer | ) |
|
|
private |
Definition at line 382 of file scanner-character-streams.cc.
399 unsigned new_offset = 0;
400 unsigned new_chars_in_buffer =
404 *data_in_buffer += new_chars_in_buffer;
static const unsigned kMaxOneByteChar
uint8_t utf8_split_char_buffer_[4]
References v8::internal::BufferedUtf16CharacterStream::buffer_, CHECK, v8::internal::anonymous_namespace{scanner-character-streams.cc}::CopyCharsHelper(), current_data_, current_data_length_, current_data_offset_, DCHECK, encoding_, v8::internal::BufferedUtf16CharacterStream::kBufferSize, unibrow::Utf8::kMaxOneByteChar, utf8_split_char_buffer_, and utf8_split_char_buffer_length_.
Referenced by FillBuffer().
◆ current_data_
const uint8_t* v8::internal::ExternalStreamingStream::current_data_ |
|
private |
◆ current_data_length_
unsigned v8::internal::ExternalStreamingStream::current_data_length_ |
|
private |
◆ current_data_offset_
unsigned v8::internal::ExternalStreamingStream::current_data_offset_ |
|
private |
◆ encoding_
◆ source_stream_
◆ utf8_split_char_buffer_
uint8_t v8::internal::ExternalStreamingStream::utf8_split_char_buffer_[4] |
|
private |
◆ utf8_split_char_buffer_length_
unsigned v8::internal::ExternalStreamingStream::utf8_split_char_buffer_length_ |
|
private |
The documentation for this class was generated from the following files: