| 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 #include "v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "scanner-character-streams.h" | 7 #include "src/scanner-character-streams.h" |
| 8 | 8 |
| 9 #include "handles.h" | 9 #include "src/handles.h" |
| 10 #include "unicode-inl.h" | 10 #include "src/unicode-inl.h" |
| 11 | 11 |
| 12 namespace v8 { | 12 namespace v8 { |
| 13 namespace internal { | 13 namespace internal { |
| 14 | 14 |
| 15 // ---------------------------------------------------------------------------- | 15 // ---------------------------------------------------------------------------- |
| 16 // BufferedUtf16CharacterStreams | 16 // BufferedUtf16CharacterStreams |
| 17 | 17 |
| 18 BufferedUtf16CharacterStream::BufferedUtf16CharacterStream() | 18 BufferedUtf16CharacterStream::BufferedUtf16CharacterStream() |
| 19 : Utf16CharacterStream(), | 19 : Utf16CharacterStream(), |
| 20 pushback_limit_(NULL) { | 20 pushback_limit_(NULL) { |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 int end_position) | 291 int end_position) |
| 292 : Utf16CharacterStream(), | 292 : Utf16CharacterStream(), |
| 293 source_(data), | 293 source_(data), |
| 294 raw_data_(data->GetTwoByteData(start_position)) { | 294 raw_data_(data->GetTwoByteData(start_position)) { |
| 295 buffer_cursor_ = raw_data_, | 295 buffer_cursor_ = raw_data_, |
| 296 buffer_end_ = raw_data_ + (end_position - start_position); | 296 buffer_end_ = raw_data_ + (end_position - start_position); |
| 297 pos_ = start_position; | 297 pos_ = start_position; |
| 298 } | 298 } |
| 299 | 299 |
| 300 } } // namespace v8::internal | 300 } } // namespace v8::internal |
| OLD | NEW |