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

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

Issue 2654253002: [iwyu] Include handles.h less. (Closed)
Patch Set: Created 3 years, 11 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 | « src/parsing/func-name-inferrer.h ('k') | src/regexp/jsregexp-inl.h » ('j') | 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_PARSING_SCANNER_CHARACTER_STREAMS_H_ 5 #ifndef V8_PARSING_SCANNER_CHARACTER_STREAMS_H_
6 #define V8_PARSING_SCANNER_CHARACTER_STREAMS_H_ 6 #define V8_PARSING_SCANNER_CHARACTER_STREAMS_H_
7 7
8 #include "include/v8.h" // for v8::ScriptCompiler 8 #include "include/v8.h" // for v8::ScriptCompiler
9 #include "src/handles.h"
10 9
11 namespace v8 { 10 namespace v8 {
12 namespace internal { 11 namespace internal {
13 12
13 template <typename T>
14 class Handle;
14 class Utf16CharacterStream; 15 class Utf16CharacterStream;
15 class RuntimeCallStats; 16 class RuntimeCallStats;
17 class String;
16 18
17 class ScannerStream { 19 class ScannerStream {
18 public: 20 public:
19 static Utf16CharacterStream* For(Handle<String> data); 21 static Utf16CharacterStream* For(Handle<String> data);
20 static Utf16CharacterStream* For(Handle<String> data, int start_pos, 22 static Utf16CharacterStream* For(Handle<String> data, int start_pos,
21 int end_pos); 23 int end_pos);
22 static Utf16CharacterStream* For( 24 static Utf16CharacterStream* For(
23 ScriptCompiler::ExternalSourceStream* source_stream, 25 ScriptCompiler::ExternalSourceStream* source_stream,
24 ScriptCompiler::StreamedSource::Encoding encoding, 26 ScriptCompiler::StreamedSource::Encoding encoding,
25 RuntimeCallStats* stats); 27 RuntimeCallStats* stats);
26 28
27 // For testing: 29 // For testing:
28 static std::unique_ptr<Utf16CharacterStream> ForTesting(const char* data); 30 static std::unique_ptr<Utf16CharacterStream> ForTesting(const char* data);
29 static std::unique_ptr<Utf16CharacterStream> ForTesting(const char* data, 31 static std::unique_ptr<Utf16CharacterStream> ForTesting(const char* data,
30 size_t length); 32 size_t length);
31 }; 33 };
32 34
33 } // namespace internal 35 } // namespace internal
34 } // namespace v8 36 } // namespace v8
35 37
36 #endif // V8_PARSING_SCANNER_CHARACTER_STREAMS_H_ 38 #endif // V8_PARSING_SCANNER_CHARACTER_STREAMS_H_
OLDNEW
« no previous file with comments | « src/parsing/func-name-inferrer.h ('k') | src/regexp/jsregexp-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698