#include "src/codegen/compilation-cache.h"
#include "src/common/globals.h"
#include "src/heap/factory.h"
#include "src/logging/counters.h"
#include "src/logging/log.h"
#include "src/objects/compilation-cache-table-inl.h"
#include "src/objects/objects-inl.h"
#include "src/objects/objects.h"
#include "src/objects/slots.h"
#include "src/objects/visitors.h"
#include "src/utils/ostreams.h"
namespace v8 {
namespace internal {
static const int kInitialCacheSize = …;
CompilationCache::CompilationCache(Isolate* isolate)
: … { … }
Handle<CompilationCacheTable> CompilationCacheEvalOrScript::GetTable() { … }
Handle<CompilationCacheTable> CompilationCacheRegExp::GetTable(int generation) { … }
void CompilationCacheRegExp::Age() { … }
void CompilationCacheScript::Age() { … }
void CompilationCacheEval::Age() { … }
void CompilationCacheEvalOrScript::Iterate(RootVisitor* v) { … }
void CompilationCacheRegExp::Iterate(RootVisitor* v) { … }
void CompilationCacheEvalOrScript::Clear() { … }
void CompilationCacheRegExp::Clear() { … }
void CompilationCacheEvalOrScript::Remove(
DirectHandle<SharedFunctionInfo> function_info) { … }
CompilationCacheScript::LookupResult CompilationCacheScript::Lookup(
Handle<String> source, const ScriptDetails& script_details) { … }
void CompilationCacheScript::Put(
Handle<String> source, DirectHandle<SharedFunctionInfo> function_info) { … }
InfoCellPair CompilationCacheEval::Lookup(Handle<String> source,
Handle<SharedFunctionInfo> outer_info,
DirectHandle<Context> native_context,
LanguageMode language_mode,
int position) { … }
void CompilationCacheEval::Put(Handle<String> source,
Handle<SharedFunctionInfo> outer_info,
DirectHandle<SharedFunctionInfo> function_info,
DirectHandle<Context> native_context,
DirectHandle<FeedbackCell> feedback_cell,
int position) { … }
MaybeHandle<RegExpData> CompilationCacheRegExp::Lookup(Handle<String> source,
JSRegExp::Flags flags) { … }
void CompilationCacheRegExp::Put(Handle<String> source, JSRegExp::Flags flags,
DirectHandle<RegExpData> data) { … }
void CompilationCache::Remove(DirectHandle<SharedFunctionInfo> function_info) { … }
CompilationCacheScript::LookupResult CompilationCache::LookupScript(
Handle<String> source, const ScriptDetails& script_details,
LanguageMode language_mode) { … }
InfoCellPair CompilationCache::LookupEval(Handle<String> source,
Handle<SharedFunctionInfo> outer_info,
DirectHandle<Context> context,
LanguageMode language_mode,
int position) { … }
MaybeHandle<RegExpData> CompilationCache::LookupRegExp(Handle<String> source,
JSRegExp::Flags flags) { … }
void CompilationCache::PutScript(
Handle<String> source, LanguageMode language_mode,
DirectHandle<SharedFunctionInfo> function_info) { … }
void CompilationCache::PutEval(Handle<String> source,
Handle<SharedFunctionInfo> outer_info,
DirectHandle<Context> context,
DirectHandle<SharedFunctionInfo> function_info,
DirectHandle<FeedbackCell> feedback_cell,
int position) { … }
void CompilationCache::PutRegExp(Handle<String> source, JSRegExp::Flags flags,
DirectHandle<RegExpData> data) { … }
void CompilationCache::Clear() { … }
void CompilationCache::Iterate(RootVisitor* v) { … }
void CompilationCache::MarkCompactPrologue() { … }
void CompilationCache::EnableScriptAndEval() { … }
void CompilationCache::DisableScriptAndEval() { … }
}
}