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
"
9
#include "
src/common/globals.h
"
10
11
namespace
v8
{
12
namespace
internal
{
13
14
class
RegExpResultVectorScope
final {
15
public
:
16
explicit
RegExpResultVectorScope
(
Isolate
* isolate);
17
RegExpResultVectorScope
(
Isolate
* isolate,
int
size);
18
~RegExpResultVectorScope
();
19
20
int32_t*
Initialize
(
int
size);
21
22
int32_t*
value
()
const
{
23
DCHECK_NOT_NULL
(
value_
);
24
return
value_
;
25
}
26
27
private
:
28
Isolate
*
const
isolate_
;
29
bool
is_dynamic_
=
false
;
30
int32_t*
value_
=
nullptr
;
31
};
32
33
class
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_
v8::internal::AllStatic
Definition
globals.h:364
v8::internal::Isolate
Definition
isolate.h:586
v8::internal::RegExpResultVectorScope
Definition
regexp-result-vector.h:14
v8::internal::RegExpResultVectorScope::value
int32_t * value() const
Definition
regexp-result-vector.h:22
v8::internal::RegExpResultVectorScope::value_
int32_t * value_
Definition
regexp-result-vector.h:30
v8::internal::RegExpResultVectorScope::isolate_
Isolate *const isolate_
Definition
regexp-result-vector.h:28
v8::internal::RegExpResultVectorScope::is_dynamic_
bool is_dynamic_
Definition
regexp-result-vector.h:29
v8::internal::RegExpResultVectorScope::~RegExpResultVectorScope
~RegExpResultVectorScope()
Definition
regexp-result-vector.cc:20
v8::internal::RegExpResultVectorScope::RegExpResultVectorScope
RegExpResultVectorScope(Isolate *isolate)
Definition
regexp-result-vector.cc:12
v8::internal::RegExpResultVectorScope::Initialize
int32_t * Initialize(int size)
Definition
regexp-result-vector.cc:31
v8::internal::RegExpResultVector
Definition
regexp-result-vector.h:33
v8::internal::RegExpResultVector::Free
static void Free(Isolate *isolate, int32_t *vector)
Definition
regexp-result-vector.cc:60
v8::internal::RegExpResultVector::Allocate
static int32_t * Allocate(Isolate *isolate, uint32_t size)
Definition
regexp-result-vector.cc:51
globals.h
v8::internal::internal
internal
Definition
wasm-objects-inl.h:458
v8
Definition
api-arguments-inl.h:19
DCHECK_NOT_NULL
#define DCHECK_NOT_NULL(val)
Definition
logging.h:492
macros.h
src
regexp
regexp-result-vector.h
Generated on Sun Apr 6 2025 21:08:57 for v8 by
1.12.0