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

Unified Diff: src/parsing/scanner-character-streams.h

Issue 2256273002: Remove unused Utf8ToUtf16CharacterStream. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/parsing/scanner-character-streams.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parsing/scanner-character-streams.h
diff --git a/src/parsing/scanner-character-streams.h b/src/parsing/scanner-character-streams.h
index 5f6c9928159c7f6b3a3a5a7ba250a4de58f783c3..94d8284f14052beb2c3a2e3aaa08fdc1a96e3550 100644
--- a/src/parsing/scanner-character-streams.h
+++ b/src/parsing/scanner-character-streams.h
@@ -64,29 +64,6 @@ class GenericStringUtf16CharacterStream: public BufferedUtf16CharacterStream {
};
-// Utf16 stream based on a literal UTF-8 string.
-class Utf8ToUtf16CharacterStream: public BufferedUtf16CharacterStream {
- public:
- Utf8ToUtf16CharacterStream(const byte* data, size_t length);
- ~Utf8ToUtf16CharacterStream() override;
-
- static size_t CopyChars(uint16_t* dest, size_t length, const byte* src,
- size_t* src_pos, size_t src_length);
-
- protected:
- size_t BufferSeekForward(size_t delta) override;
- size_t FillBuffer(size_t char_position) override;
- void SetRawPosition(size_t char_position);
-
- const byte* raw_data_;
- size_t raw_data_length_; // Measured in bytes, not characters.
- size_t raw_data_pos_;
- // The character position of the character at raw_data[raw_data_pos_].
- // Not necessarily the same as pos_.
- size_t raw_character_position_;
-};
-
-
// ExternalStreamingStream is a wrapper around an ExternalSourceStream (see
// include/v8.h) subclass implemented by the embedder.
class ExternalStreamingStream : public BufferedUtf16CharacterStream {
@@ -193,6 +170,10 @@ class ExternalOneByteStringUtf16CharacterStream
int end_position);
~ExternalOneByteStringUtf16CharacterStream() override;
+ // For testing:
+ explicit ExternalOneByteStringUtf16CharacterStream(const char* data);
+ ExternalOneByteStringUtf16CharacterStream(const char* data, size_t length);
+
bool SetBookmark() override;
void ResetToBookmark() override;
« no previous file with comments | « no previous file | src/parsing/scanner-character-streams.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698