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
9#include "src/regexp/regexp.h"
10
11namespace v8 {
12namespace internal {
13
15class String;
16class Zone;
17
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.
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_
friend Zone
Definition asm-types.cc:195
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)
v8_inspector::String16 String
Definition string-util.h:26