v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
scanner-character-streams.h
Go to the documentation of this file.
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
3
// found in the LICENSE file.
4
5
#ifndef V8_PARSING_SCANNER_CHARACTER_STREAMS_H_
6
#define V8_PARSING_SCANNER_CHARACTER_STREAMS_H_
7
8
#include <memory>
9
10
#include "
include/v8-script.h
"
// for v8::ScriptCompiler
11
#include "
src/common/globals.h
"
12
13
namespace
v8
{
14
namespace
internal
{
15
16
class
Utf16CharacterStream;
17
class
RuntimeCallStats;
18
19
class
V8_EXPORT_PRIVATE
ScannerStream
{
20
public
:
21
static
Utf16CharacterStream
* For(
Isolate
* isolate,
Handle<String>
data);
22
static
Utf16CharacterStream
* For(
Isolate
* isolate,
Handle<String>
data,
23
int
start_pos,
int
end_pos);
24
static
Utf16CharacterStream
* For(
25
ScriptCompiler::ExternalSourceStream
* source_stream,
26
ScriptCompiler::StreamedSource::Encoding
encoding);
27
28
static
std::unique_ptr<Utf16CharacterStream> ForTesting(
const
char
* data);
29
static
std::unique_ptr<Utf16CharacterStream> ForTesting(
const
char
* data,
30
size_t
length);
31
static
std::unique_ptr<Utf16CharacterStream> ForTesting(
const
uint16_t* data,
32
size_t
length);
33
};
34
35
}
// namespace internal
36
}
// namespace v8
37
38
#endif
// V8_PARSING_SCANNER_CHARACTER_STREAMS_H_
v8::ScriptCompiler::ExternalSourceStream
Definition
v8-script.h:548
v8::ScriptCompiler::StreamedSource::Encoding
Encoding
Definition
v8-script.h:584
v8::internal::Handle
Definition
handles.h:149
v8::internal::Isolate
Definition
isolate.h:586
v8::internal::ScannerStream
Definition
scanner-character-streams.h:19
v8::internal::Utf16CharacterStream
Definition
scanner.h:40
globals.h
v8::internal::internal
internal
Definition
wasm-objects-inl.h:458
v8
Definition
api-arguments-inl.h:19
V8_EXPORT_PRIVATE
#define V8_EXPORT_PRIVATE
Definition
macros.h:460
v8-script.h
src
parsing
scanner-character-streams.h
Generated on Sun Apr 6 2025 21:08:56 for v8 by
1.12.0