v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::RegExpResultsCache Class Referencefinal

#include <regexp.h>

Inheritance diagram for v8::internal::RegExpResultsCache:
Collaboration diagram for v8::internal::RegExpResultsCache:

Public Types

enum  ResultsCacheType { REGEXP_MULTIPLE_INDICES , STRING_SPLIT_SUBSTRINGS }
 

Static Public Member Functions

static Tagged< ObjectLookup (Heap *heap, Tagged< String > key_string, Tagged< Object > key_pattern, Tagged< FixedArray > *last_match_out, ResultsCacheType type)
 
static void Enter (Isolate *isolate, DirectHandle< String > key_string, DirectHandle< Object > key_pattern, DirectHandle< FixedArray > value_array, DirectHandle< FixedArray > last_match_cache, ResultsCacheType type)
 
static void Clear (Tagged< FixedArray > cache)
 

Static Public Attributes

static constexpr int kRegExpResultsCacheSize = 0x100
 

Static Private Attributes

static constexpr int kStringOffset = 0
 
static constexpr int kPatternOffset = 1
 
static constexpr int kArrayOffset = 2
 
static constexpr int kLastMatchOffset = 3
 
static constexpr int kArrayEntriesPerCacheEntry = 4
 

Detailed Description

Definition at line 221 of file regexp.h.

Member Enumeration Documentation

◆ ResultsCacheType

Enumerator
REGEXP_MULTIPLE_INDICES 
STRING_SPLIT_SUBSTRINGS 

Definition at line 223 of file regexp.h.

Member Function Documentation

◆ Clear()

void v8::internal::RegExpResultsCache::Clear ( Tagged< FixedArray > cache)
static

Definition at line 1396 of file regexp.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Enter()

void v8::internal::RegExpResultsCache::Enter ( Isolate * isolate,
DirectHandle< String > key_string,
DirectHandle< Object > key_pattern,
DirectHandle< FixedArray > value_array,
DirectHandle< FixedArray > last_match_cache,
ResultsCacheType type )
static

Definition at line 1335 of file regexp.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Lookup()

Tagged< Object > v8::internal::RegExpResultsCache::Lookup ( Heap * heap,
Tagged< String > key_string,
Tagged< Object > key_pattern,
Tagged< FixedArray > * last_match_out,
ResultsCacheType type )
static

Definition at line 1301 of file regexp.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ kArrayEntriesPerCacheEntry

int v8::internal::RegExpResultsCache::kArrayEntriesPerCacheEntry = 4
staticconstexprprivate

Definition at line 247 of file regexp.h.

◆ kArrayOffset

int v8::internal::RegExpResultsCache::kArrayOffset = 2
staticconstexprprivate

Definition at line 245 of file regexp.h.

◆ kLastMatchOffset

int v8::internal::RegExpResultsCache::kLastMatchOffset = 3
staticconstexprprivate

Definition at line 246 of file regexp.h.

◆ kPatternOffset

int v8::internal::RegExpResultsCache::kPatternOffset = 1
staticconstexprprivate

Definition at line 244 of file regexp.h.

◆ kRegExpResultsCacheSize

int v8::internal::RegExpResultsCache::kRegExpResultsCacheSize = 0x100
staticconstexpr

Definition at line 240 of file regexp.h.

◆ kStringOffset

int v8::internal::RegExpResultsCache::kStringOffset = 0
staticconstexprprivate

Definition at line 243 of file regexp.h.


The documentation for this class was generated from the following files: