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
13namespace v8 {
14namespace internal {
15
16class Utf16CharacterStream;
17class RuntimeCallStats;
18
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(
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_
#define V8_EXPORT_PRIVATE
Definition macros.h:460