diff options
author | Ali Ijaz Sheikh <ofrobots@google.com> | 2015-08-23 06:09:40 -0700 |
---|---|---|
committer | Rod Vagg <rod@vagg.org> | 2015-09-06 21:38:01 +1000 |
commit | 9fddd83cf9adf505bce2e2373881df0c4d41b261 (patch) | |
tree | 4272ce14c10fea496af2e78fc6debb187d613451 /deps/v8/src/scanner-character-streams.h | |
parent | 46b7d151674d138e7ea4342d5f3ada1208b87ff2 (diff) | |
download | node-new-9fddd83cf9adf505bce2e2373881df0c4d41b261.tar.gz |
deps: upgrade V8 to 4.5.103.24
Upgrade to the latest branch-head for V8 4.5. For the full commit log see
https://github.com/v8/v8-git-mirror/commits/4.5.103.24
PR-URL: https://github.com/nodejs/node/pull/2509
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'deps/v8/src/scanner-character-streams.h')
-rw-r--r-- | deps/v8/src/scanner-character-streams.h | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/deps/v8/src/scanner-character-streams.h b/deps/v8/src/scanner-character-streams.h index 36d84bc0f6..582165710d 100644 --- a/deps/v8/src/scanner-character-streams.h +++ b/deps/v8/src/scanner-character-streams.h @@ -92,9 +92,15 @@ class ExternalStreamingStream : public BufferedUtf16CharacterStream { current_data_(NULL), current_data_offset_(0), current_data_length_(0), - utf8_split_char_buffer_length_(0) {} - - virtual ~ExternalStreamingStream() { delete[] current_data_; } + utf8_split_char_buffer_length_(0), + bookmark_(0), + bookmark_utf8_split_char_buffer_length_(0) {} + + virtual ~ExternalStreamingStream() { + delete[] current_data_; + bookmark_buffer_.Dispose(); + bookmark_data_.Dispose(); + } size_t BufferSeekForward(size_t delta) override { // We never need to seek forward when streaming scripts. We only seek @@ -107,8 +113,12 @@ class ExternalStreamingStream : public BufferedUtf16CharacterStream { size_t FillBuffer(size_t position) override; + virtual bool SetBookmark() override; + virtual void ResetToBookmark() override; + private: void HandleUtf8SplitCharacters(size_t* data_in_buffer); + void FlushCurrent(); ScriptCompiler::ExternalSourceStream* source_stream_; v8::ScriptCompiler::StreamedSource::Encoding encoding_; @@ -118,6 +128,14 @@ class ExternalStreamingStream : public BufferedUtf16CharacterStream { // For converting UTF-8 characters which are split across two data chunks. uint8_t utf8_split_char_buffer_[4]; size_t utf8_split_char_buffer_length_; + + // Bookmark support. See comments in ExternalStreamingStream::SetBookmark + // for additional details. + size_t bookmark_; + Vector<uint16_t> bookmark_buffer_; + Vector<uint8_t> bookmark_data_; + uint8_t bookmark_utf8_split_char_buffer_[4]; + size_t bookmark_utf8_split_char_buffer_length_; }; |