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

#include <compilation-cache-table-inl.h>

Inheritance diagram for v8::internal::ScriptCacheKey:
Collaboration diagram for v8::internal::ScriptCacheKey:

Public Types

enum  Index { kHash , kWeakScript , kEnd }
 

Public Member Functions

 ScriptCacheKey (Handle< String > source, const ScriptDetails *script_details, Isolate *isolate)
 
 ScriptCacheKey (Handle< String > source, MaybeHandle< Object > name, int line_offset, int column_offset, v8::ScriptOriginOptions origin_options, MaybeHandle< Object > host_defined_options, MaybeHandle< FixedArray > maybe_wrapped_arguments, Isolate *isolate)
 
bool IsMatch (Tagged< Object > other) override
 
bool MatchesScript (Tagged< Script > script)
 
DirectHandle< ObjectAsHandle (Isolate *isolate, DirectHandle< SharedFunctionInfo > shared)
 
- Public Member Functions inherited from v8::internal::HashTableKey
 HashTableKey (uint32_t hash)
 
virtual ~HashTableKey ()=default
 
uint32_t Hash () const
 

Static Public Member Functions

static std::optional< Tagged< String > > SourceFromObject (Tagged< Object > obj)
 

Private Attributes

Handle< Stringsource_
 
MaybeHandle< Objectname_
 
int line_offset_
 
int column_offset_
 
v8::ScriptOriginOptions origin_options_
 
MaybeHandle< Objecthost_defined_options_
 
MaybeHandle< FixedArraywrapped_arguments_
 
Isolateisolate_
 

Additional Inherited Members

- Protected Member Functions inherited from v8::internal::HashTableKey
void set_hash (uint32_t hash)
 

Detailed Description

Definition at line 55 of file compilation-cache-table-inl.h.

Member Enumeration Documentation

◆ Index

Enumerator
kHash 
kWeakScript 
kEnd 

Definition at line 57 of file compilation-cache-table-inl.h.

Constructor & Destructor Documentation

◆ ScriptCacheKey() [1/2]

v8::internal::ScriptCacheKey::ScriptCacheKey ( Handle< String > source,
const ScriptDetails * script_details,
Isolate * isolate )

Definition at line 337 of file compilation-cache-table.cc.

◆ ScriptCacheKey() [2/2]

v8::internal::ScriptCacheKey::ScriptCacheKey ( Handle< String > source,
MaybeHandle< Object > name,
int line_offset,
int column_offset,
v8::ScriptOriginOptions origin_options,
MaybeHandle< Object > host_defined_options,
MaybeHandle< FixedArray > maybe_wrapped_arguments,
Isolate * isolate )

Definition at line 346 of file compilation-cache-table.cc.

Here is the call graph for this function:

Member Function Documentation

◆ AsHandle()

DirectHandle< Object > v8::internal::ScriptCacheKey::AsHandle ( Isolate * isolate,
DirectHandle< SharedFunctionInfo > shared )

Definition at line 400 of file compilation-cache-table.cc.

Here is the call graph for this function:

◆ IsMatch()

bool v8::internal::ScriptCacheKey::IsMatch ( Tagged< Object > other)
overridevirtual

Implements v8::internal::HashTableKey.

Definition at line 377 of file compilation-cache-table.cc.

Here is the call graph for this function:

◆ MatchesScript()

bool v8::internal::ScriptCacheKey::MatchesScript ( Tagged< Script > script)

Definition at line 258 of file compilation-cache-table.cc.

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

◆ SourceFromObject()

static std::optional< Tagged< String > > v8::internal::ScriptCacheKey::SourceFromObject ( Tagged< Object > obj)
inlinestatic

Definition at line 78 of file compilation-cache-table-inl.h.

Here is the call graph for this function:

Member Data Documentation

◆ column_offset_

int v8::internal::ScriptCacheKey::column_offset_
private

Definition at line 100 of file compilation-cache-table-inl.h.

◆ host_defined_options_

MaybeHandle<Object> v8::internal::ScriptCacheKey::host_defined_options_
private

Definition at line 102 of file compilation-cache-table-inl.h.

◆ isolate_

Isolate* v8::internal::ScriptCacheKey::isolate_
private

Definition at line 104 of file compilation-cache-table-inl.h.

◆ line_offset_

int v8::internal::ScriptCacheKey::line_offset_
private

Definition at line 99 of file compilation-cache-table-inl.h.

◆ name_

MaybeHandle<Object> v8::internal::ScriptCacheKey::name_
private

Definition at line 98 of file compilation-cache-table-inl.h.

◆ origin_options_

v8::ScriptOriginOptions v8::internal::ScriptCacheKey::origin_options_
private

Definition at line 101 of file compilation-cache-table-inl.h.

◆ source_

Handle<String> v8::internal::ScriptCacheKey::source_
private

Definition at line 97 of file compilation-cache-table-inl.h.

◆ wrapped_arguments_

MaybeHandle<FixedArray> v8::internal::ScriptCacheKey::wrapped_arguments_
private

Definition at line 103 of file compilation-cache-table-inl.h.


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