OLD | NEW |
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 "scanner.h" | 8 #include "src/scanner.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
11 namespace internal { | 11 namespace internal { |
12 | 12 |
13 // A buffered character stream based on a random access character | 13 // A buffered character stream based on a random access character |
14 // source (ReadBlock can be called with pos_ pointing to any position, | 14 // source (ReadBlock can be called with pos_ pointing to any position, |
15 // even positions before the current). | 15 // even positions before the current). |
16 class BufferedUtf16CharacterStream: public Utf16CharacterStream { | 16 class BufferedUtf16CharacterStream: public Utf16CharacterStream { |
17 public: | 17 public: |
18 BufferedUtf16CharacterStream(); | 18 BufferedUtf16CharacterStream(); |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 // Entire string is read at start. | 96 // Entire string is read at start. |
97 return false; | 97 return false; |
98 } | 98 } |
99 Handle<ExternalTwoByteString> source_; | 99 Handle<ExternalTwoByteString> source_; |
100 const uc16* raw_data_; // Pointer to the actual array of characters. | 100 const uc16* raw_data_; // Pointer to the actual array of characters. |
101 }; | 101 }; |
102 | 102 |
103 } } // namespace v8::internal | 103 } } // namespace v8::internal |
104 | 104 |
105 #endif // V8_SCANNER_CHARACTER_STREAMS_H_ | 105 #endif // V8_SCANNER_CHARACTER_STREAMS_H_ |
OLD | NEW |