5 #ifndef V8_SCANNER_CHARACTER_STREAMS_H_
6 #define V8_SCANNER_CHARACTER_STREAMS_H_
43 unsigned start_position,
44 unsigned end_position);
49 virtual unsigned FillBuffer(
unsigned position);
63 unsigned* src_pos,
unsigned src_length);
67 virtual unsigned FillBuffer(
unsigned char_position);
103 virtual unsigned FillBuffer(
unsigned position);
For streaming incomplete script data to V8.
uc16 buffer_[kBufferSize]
virtual unsigned BufferSeekForward(unsigned delta)=0
virtual void SlowPushBack(uc16 character)
const uc16 * pushback_limit_
static const unsigned kPushBackStepSize
virtual ~BufferedUtf16CharacterStream()
virtual unsigned SlowSeekForward(unsigned delta)
static const unsigned kBufferSize
virtual unsigned FillBuffer(unsigned position)=0
virtual void PushBack(uc32 character)
BufferedUtf16CharacterStream()
uint8_t utf8_split_char_buffer_[4]
ScriptCompiler::ExternalSourceStream * source_stream_
const uint8_t * current_data_
unsigned current_data_offset_
virtual unsigned BufferSeekForward(unsigned delta) OVERRIDE
v8::ScriptCompiler::StreamedSource::Encoding encoding_
unsigned utf8_split_char_buffer_length_
unsigned current_data_length_
virtual ~ExternalStreamingStream()
virtual unsigned FillBuffer(unsigned position)
void HandleUtf8SplitCharacters(unsigned *data_in_buffer)
ExternalStreamingStream(ScriptCompiler::ExternalSourceStream *source_stream, v8::ScriptCompiler::StreamedSource::Encoding encoding)
Handle< ExternalTwoByteString > source_
ExternalTwoByteStringUtf16CharacterStream(Handle< ExternalTwoByteString > data, int start_position, int end_position)
virtual void PushBack(uc32 character)
virtual ~ExternalTwoByteStringUtf16CharacterStream()
virtual unsigned SlowSeekForward(unsigned delta)
virtual unsigned BufferSeekForward(unsigned delta)
virtual ~GenericStringUtf16CharacterStream()
GenericStringUtf16CharacterStream(Handle< String > data, unsigned start_position, unsigned end_position)
virtual unsigned FillBuffer(unsigned position)
const uint16_t * buffer_cursor_
virtual unsigned FillBuffer(unsigned char_position)
Utf8ToUtf16CharacterStream(const byte *data, unsigned length)
virtual unsigned BufferSeekForward(unsigned delta)
unsigned raw_data_length_
static unsigned CopyChars(uint16_t *dest, unsigned length, const byte *src, unsigned *src_pos, unsigned src_length)
unsigned raw_character_position_
void SetRawPosition(unsigned char_position)
virtual ~Utf8ToUtf16CharacterStream()
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
#define DCHECK(condition)
Debugger support for the V8 JavaScript engine.