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

#include <compilation-cache.h>

Collaboration diagram for v8::internal::CompilationCache:

Public Member Functions

 CompilationCache (const CompilationCache &)=delete
 
CompilationCacheoperator= (const CompilationCache &)=delete
 
CompilationCacheScript::LookupResult LookupScript (Handle< String > source, const ScriptDetails &script_details, LanguageMode language_mode)
 
InfoCellPair LookupEval (DirectHandle< String > source, DirectHandle< SharedFunctionInfo > outer_info, DirectHandle< Context > context, LanguageMode language_mode, int position)
 
MaybeDirectHandle< RegExpDataLookupRegExp (DirectHandle< String > source, JSRegExp::Flags flags)
 
void PutScript (Handle< String > source, LanguageMode language_mode, DirectHandle< SharedFunctionInfo > function_info)
 
void PutEval (DirectHandle< String > source, DirectHandle< SharedFunctionInfo > outer_info, DirectHandle< Context > context, DirectHandle< SharedFunctionInfo > function_info, DirectHandle< FeedbackCell > feedback_cell, int position)
 
void PutRegExp (DirectHandle< String > source, JSRegExp::Flags flags, DirectHandle< RegExpData > data)
 
void Clear ()
 
void Remove (DirectHandle< SharedFunctionInfo > function_info)
 
void Iterate (RootVisitor *v)
 
void MarkCompactPrologue ()
 
void EnableScriptAndEval ()
 
void DisableScriptAndEval ()
 

Private Member Functions

 CompilationCache (Isolate *isolate)
 
 ~CompilationCache ()=default
 
base::HashMapEagerOptimizingSet ()
 
bool IsEnabledScriptAndEval () const
 
bool IsEnabledScript (LanguageMode language_mode)
 
Isolateisolate () const
 

Private Attributes

Isolateisolate_
 
CompilationCacheScript script_
 
CompilationCacheEval eval_global_
 
CompilationCacheEval eval_contextual_
 
CompilationCacheRegExp reg_exp_
 
bool enabled_script_and_eval_
 

Friends

class Isolate
 

Detailed Description

Definition at line 142 of file compilation-cache.h.

Constructor & Destructor Documentation

◆ CompilationCache() [1/2]

v8::internal::CompilationCache::CompilationCache ( const CompilationCache & )
delete

◆ CompilationCache() [2/2]

v8::internal::CompilationCache::CompilationCache ( Isolate * isolate)
explicitprivate

Definition at line 24 of file compilation-cache.cc.

◆ ~CompilationCache()

v8::internal::CompilationCache::~CompilationCache ( )
privatedefault

Member Function Documentation

◆ Clear()

void v8::internal::CompilationCache::Clear ( )

Definition at line 357 of file compilation-cache.cc.

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

◆ DisableScriptAndEval()

void v8::internal::CompilationCache::DisableScriptAndEval ( )

Definition at line 385 of file compilation-cache.cc.

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

◆ EagerOptimizingSet()

base::HashMap * v8::internal::CompilationCache::EagerOptimizingSet ( )
private

◆ EnableScriptAndEval()

void v8::internal::CompilationCache::EnableScriptAndEval ( )

Definition at line 381 of file compilation-cache.cc.

Here is the caller graph for this function:

◆ IsEnabledScript()

bool v8::internal::CompilationCache::IsEnabledScript ( LanguageMode language_mode)
inlineprivate

Definition at line 218 of file compilation-cache.h.

Here is the caller graph for this function:

◆ IsEnabledScriptAndEval()

bool v8::internal::CompilationCache::IsEnabledScriptAndEval ( ) const
inlineprivate

Definition at line 215 of file compilation-cache.h.

Here is the caller graph for this function:

◆ isolate()

Isolate * v8::internal::CompilationCache::isolate ( ) const
inlineprivate

Definition at line 224 of file compilation-cache.h.

Here is the caller graph for this function:

◆ Iterate()

void v8::internal::CompilationCache::Iterate ( RootVisitor * v)

Definition at line 364 of file compilation-cache.cc.

Here is the call graph for this function:

◆ LookupEval()

InfoCellPair v8::internal::CompilationCache::LookupEval ( DirectHandle< String > source,
DirectHandle< SharedFunctionInfo > outer_info,
DirectHandle< Context > context,
LanguageMode language_mode,
int position )

Definition at line 281 of file compilation-cache.cc.

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

◆ LookupRegExp()

MaybeDirectHandle< RegExpData > v8::internal::CompilationCache::LookupRegExp ( DirectHandle< String > source,
JSRegExp::Flags flags )

Definition at line 311 of file compilation-cache.cc.

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

◆ LookupScript()

CompilationCacheScript::LookupResult v8::internal::CompilationCache::LookupScript ( Handle< String > source,
const ScriptDetails & script_details,
LanguageMode language_mode )

Definition at line 274 of file compilation-cache.cc.

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

◆ MarkCompactPrologue()

void v8::internal::CompilationCache::MarkCompactPrologue ( )

Definition at line 371 of file compilation-cache.cc.

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

◆ operator=()

CompilationCache & v8::internal::CompilationCache::operator= ( const CompilationCache & )
delete

◆ PutEval()

void v8::internal::CompilationCache::PutEval ( DirectHandle< String > source,
DirectHandle< SharedFunctionInfo > outer_info,
DirectHandle< Context > context,
DirectHandle< SharedFunctionInfo > function_info,
DirectHandle< FeedbackCell > feedback_cell,
int position )

Definition at line 325 of file compilation-cache.cc.

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

◆ PutRegExp()

void v8::internal::CompilationCache::PutRegExp ( DirectHandle< String > source,
JSRegExp::Flags flags,
DirectHandle< RegExpData > data )

Definition at line 351 of file compilation-cache.cc.

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

◆ PutScript()

void v8::internal::CompilationCache::PutScript ( Handle< String > source,
LanguageMode language_mode,
DirectHandle< SharedFunctionInfo > function_info )

Definition at line 316 of file compilation-cache.cc.

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

◆ Remove()

void v8::internal::CompilationCache::Remove ( DirectHandle< SharedFunctionInfo > function_info)

Definition at line 266 of file compilation-cache.cc.

Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ Isolate

friend class Isolate
friend

Definition at line 236 of file compilation-cache.h.

Member Data Documentation

◆ enabled_script_and_eval_

bool v8::internal::CompilationCache::enabled_script_and_eval_
private

Definition at line 234 of file compilation-cache.h.

◆ eval_contextual_

CompilationCacheEval v8::internal::CompilationCache::eval_contextual_
private

Definition at line 230 of file compilation-cache.h.

◆ eval_global_

CompilationCacheEval v8::internal::CompilationCache::eval_global_
private

Definition at line 229 of file compilation-cache.h.

◆ isolate_

Isolate* v8::internal::CompilationCache::isolate_
private

Definition at line 226 of file compilation-cache.h.

◆ reg_exp_

CompilationCacheRegExp v8::internal::CompilationCache::reg_exp_
private

Definition at line 231 of file compilation-cache.h.

◆ script_

CompilationCacheScript v8::internal::CompilationCache::script_
private

Definition at line 228 of file compilation-cache.h.


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