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

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

Issue 2751693002: [wasm][asm.js] Adding custom asm.js lexer. (Closed)
Patch Set: fix Created 3 years, 9 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
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/globals.h"
9 10
10 namespace v8 { 11 namespace v8 {
11 namespace internal { 12 namespace internal {
12 13
13 template <typename T> 14 template <typename T>
14 class Handle; 15 class Handle;
15 class Utf16CharacterStream; 16 class Utf16CharacterStream;
16 class RuntimeCallStats; 17 class RuntimeCallStats;
17 class String; 18 class String;
18 19
19 class ScannerStream { 20 class V8_EXPORT_PRIVATE ScannerStream {
20 public: 21 public:
21 static Utf16CharacterStream* For(Handle<String> data); 22 static Utf16CharacterStream* For(Handle<String> data);
22 static Utf16CharacterStream* For(Handle<String> data, int start_pos, 23 static Utf16CharacterStream* For(Handle<String> data, int start_pos,
23 int end_pos); 24 int end_pos);
24 static Utf16CharacterStream* For( 25 static Utf16CharacterStream* For(
25 ScriptCompiler::ExternalSourceStream* source_stream, 26 ScriptCompiler::ExternalSourceStream* source_stream,
26 ScriptCompiler::StreamedSource::Encoding encoding, 27 ScriptCompiler::StreamedSource::Encoding encoding,
27 RuntimeCallStats* stats); 28 RuntimeCallStats* stats);
28 29
29 // For testing: 30 // For testing:
30 static std::unique_ptr<Utf16CharacterStream> ForTesting(const char* data); 31 static std::unique_ptr<Utf16CharacterStream> ForTesting(const char* data);
31 static std::unique_ptr<Utf16CharacterStream> ForTesting(const char* data, 32 static std::unique_ptr<Utf16CharacterStream> ForTesting(const char* data,
32 size_t length); 33 size_t length);
33 }; 34 };
34 35
35 } // namespace internal 36 } // namespace internal
36 } // namespace v8 37 } // namespace v8
37 38
38 #endif // V8_PARSING_SCANNER_CHARACTER_STREAMS_H_ 39 #endif // V8_PARSING_SCANNER_CHARACTER_STREAMS_H_
OLDNEW
« src/asmjs/asm-scanner.h ('K') | « src/parsing/scanner.cc ('k') | src/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698