Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(236)

Side by Side Diff: src/scanner-character-streams.h

Issue 1131543002: Add TODO to implement 'bookmarking' for the streaming stream. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_SCANNER_CHARACTER_STREAMS_H_ 5 #ifndef V8_SCANNER_CHARACTER_STREAMS_H_
6 #define V8_SCANNER_CHARACTER_STREAMS_H_ 6 #define V8_SCANNER_CHARACTER_STREAMS_H_
7 7
8 #include "src/scanner.h" 8 #include "src/scanner.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 size_t raw_data_length_; // Measured in bytes, not characters. 76 size_t raw_data_length_; // Measured in bytes, not characters.
77 size_t raw_data_pos_; 77 size_t raw_data_pos_;
78 // The character position of the character at raw_data[raw_data_pos_]. 78 // The character position of the character at raw_data[raw_data_pos_].
79 // Not necessarily the same as pos_. 79 // Not necessarily the same as pos_.
80 size_t raw_character_position_; 80 size_t raw_character_position_;
81 }; 81 };
82 82
83 83
84 // ExternalStreamingStream is a wrapper around an ExternalSourceStream (see 84 // ExternalStreamingStream is a wrapper around an ExternalSourceStream (see
85 // include/v8.h) subclass implemented by the embedder. 85 // include/v8.h) subclass implemented by the embedder.
86 //
87 // TODO(vogelheim): Implement (Set|ResetTo)Bookmark methods for this stream.
86 class ExternalStreamingStream : public BufferedUtf16CharacterStream { 88 class ExternalStreamingStream : public BufferedUtf16CharacterStream {
87 public: 89 public:
88 ExternalStreamingStream(ScriptCompiler::ExternalSourceStream* source_stream, 90 ExternalStreamingStream(ScriptCompiler::ExternalSourceStream* source_stream,
89 v8::ScriptCompiler::StreamedSource::Encoding encoding) 91 v8::ScriptCompiler::StreamedSource::Encoding encoding)
90 : source_stream_(source_stream), 92 : source_stream_(source_stream),
91 encoding_(encoding), 93 encoding_(encoding),
92 current_data_(NULL), 94 current_data_(NULL),
93 current_data_offset_(0), 95 current_data_offset_(0),
94 current_data_length_(0), 96 current_data_length_(0),
95 utf8_split_char_buffer_length_(0) {} 97 utf8_split_char_buffer_length_(0) {}
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 154
153 private: 155 private:
154 static const size_t kNoBookmark = -1; 156 static const size_t kNoBookmark = -1;
155 157
156 size_t bookmark_; 158 size_t bookmark_;
157 }; 159 };
158 160
159 } } // namespace v8::internal 161 } } // namespace v8::internal
160 162
161 #endif // V8_SCANNER_CHARACTER_STREAMS_H_ 163 #endif // V8_SCANNER_CHARACTER_STREAMS_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698