v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
experimental-interpreter.h
Go to the documentation of this file.
1
// Copyright 2020 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_REGEXP_EXPERIMENTAL_EXPERIMENTAL_INTERPRETER_H_
6
#define V8_REGEXP_EXPERIMENTAL_EXPERIMENTAL_INTERPRETER_H_
7
8
#include "
src/regexp/experimental/experimental-bytecode.h
"
9
#include "
src/regexp/regexp.h
"
10
11
namespace
v8
{
12
namespace
internal
{
13
14
class
TrustedByteArray
;
15
class
String
;
16
class
Zone
;
17
18
class
ExperimentalRegExpInterpreter
final :
public
AllStatic
{
19
public
:
20
// Executes a bytecode program in breadth-first NFA mode, without
21
// backtracking, to find matching substrings. Tries to find up to
22
// `max_match_num` matches in `input`, starting at `start_index`. Returns
23
// the actual number of matches found. The boundaries of matching subranges
24
// are written to `matches_out`. Provided in variants for one-byte and
25
// two-byte strings.
26
static
int
FindMatches
(
Isolate
* isolate,
RegExp::CallOrigin
call_origin
,
27
Tagged<TrustedByteArray>
bytecode,
int
capture_count,
28
Tagged<String>
input,
int
start_index,
29
int32_t* output_registers,
int
output_register_count,
30
Zone
* zone);
31
};
32
33
}
// namespace internal
34
}
// namespace v8
35
36
#endif
// V8_REGEXP_EXPERIMENTAL_EXPERIMENTAL_INTERPRETER_H_
Zone
friend Zone
Definition
asm-types.cc:195
v8::internal::AllStatic
Definition
globals.h:364
v8::internal::ExperimentalRegExpInterpreter
Definition
experimental-interpreter.h:18
v8::internal::ExperimentalRegExpInterpreter::FindMatches
static int FindMatches(Isolate *isolate, RegExp::CallOrigin call_origin, Tagged< TrustedByteArray > bytecode, int capture_count, Tagged< String > input, int start_index, int32_t *output_registers, int output_register_count, Zone *zone)
Definition
experimental-interpreter.cc:1550
v8::internal::Isolate
Definition
isolate.h:586
v8::internal::RegExp::CallOrigin
CallOrigin
Definition
regexp.h:103
v8::internal::Tagged
Definition
waiter-queue-node.h:21
v8::internal::Zone
Definition
zone.h:43
experimental-bytecode.h
v8::internal::internal
internal
Definition
wasm-objects-inl.h:458
v8::internal::TrustedByteArray
TrustedByteArray
Definition
js-regexp-inl.h:121
v8::internal::call_origin
call_origin
Definition
wasm-objects-inl.h:432
v8_inspector::protocol::String
v8_inspector::String16 String
Definition
string-util.h:26
v8
Definition
api-arguments-inl.h:19
regexp.h
src
regexp
experimental
experimental-interpreter.h
Generated on Sun Apr 6 2025 21:08:56 for v8 by
1.12.0