v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
regexp-result-vector.h
Go to the documentation of this file.
1// Copyright 2024 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_REGEXP_RESULT_VECTOR_H_
6#define V8_REGEXP_REGEXP_RESULT_VECTOR_H_
7
8#include "src/base/macros.h"
10
11namespace v8 {
12namespace internal {
13
15 public:
16 explicit RegExpResultVectorScope(Isolate* isolate);
17 RegExpResultVectorScope(Isolate* isolate, int size);
19
20 int32_t* Initialize(int size);
21
22 int32_t* value() const {
24 return value_;
25 }
26
27 private:
29 bool is_dynamic_ = false;
30 int32_t* value_ = nullptr;
31};
32
33class RegExpResultVector final : public AllStatic {
34 public:
35 static int32_t* Allocate(Isolate* isolate, uint32_t size);
36 static void Free(Isolate* isolate, int32_t* vector);
37};
38
39} // namespace internal
40} // namespace v8
41
42#endif // V8_REGEXP_REGEXP_RESULT_VECTOR_H_
static void Free(Isolate *isolate, int32_t *vector)
static int32_t * Allocate(Isolate *isolate, uint32_t size)
#define DCHECK_NOT_NULL(val)
Definition logging.h:492