|
V8 Project
|
#include <compilation-cache.h>
Inheritance diagram for v8::internal::CompilationCacheScript:
Collaboration diagram for v8::internal::CompilationCacheScript:Public Member Functions | |
| CompilationCacheScript (Isolate *isolate, int generations) | |
| Handle< SharedFunctionInfo > | Lookup (Handle< String > source, Handle< Object > name, int line_offset, int column_offset, bool is_shared_cross_origin, Handle< Context > context) |
| void | Put (Handle< String > source, Handle< Context > context, Handle< SharedFunctionInfo > function_info) |
Public Member Functions inherited from v8::internal::CompilationSubCache | |
| CompilationSubCache (Isolate *isolate, int generations) | |
| ~CompilationSubCache () | |
| Handle< CompilationCacheTable > | GetTable (int generation) |
| Handle< CompilationCacheTable > | GetFirstTable () |
| void | SetFirstTable (Handle< CompilationCacheTable > value) |
| void | Age () |
| void | Iterate (ObjectVisitor *v) |
| void | IterateFunctions (ObjectVisitor *v) |
| void | Clear () |
| void | Remove (Handle< SharedFunctionInfo > function_info) |
| int | generations () |
Private Member Functions | |
| bool | HasOrigin (Handle< SharedFunctionInfo > function_info, Handle< Object > name, int line_offset, int column_offset, bool is_shared_cross_origin) |
| DISALLOW_IMPLICIT_CONSTRUCTORS (CompilationCacheScript) | |
Private Attributes | |
| void * | script_histogram_ |
| bool | script_histogram_initialized_ |
Additional Inherited Members | |
Static Public Attributes inherited from v8::internal::CompilationSubCache | |
| static const int | kFirstGeneration = 0 |
Protected Member Functions inherited from v8::internal::CompilationSubCache | |
| Isolate * | isolate () |
Definition at line 71 of file compilation-cache.h.
Definition at line 103 of file compilation-cache.cc.
|
private |
|
private |
Definition at line 113 of file compilation-cache.cc.
References v8::internal::String::Equals(), v8::internal::CompilationSubCache::isolate(), and name.
Referenced by Lookup().
Here is the call graph for this function:
Here is the caller graph for this function:| Handle< SharedFunctionInfo > v8::internal::CompilationCacheScript::Lookup | ( | Handle< String > | source, |
| Handle< Object > | name, | ||
| int | line_offset, | ||
| int | column_offset, | ||
| bool | is_shared_cross_origin, | ||
| Handle< Context > | context | ||
| ) |
Definition at line 143 of file compilation-cache.cc.
References v8::internal::StatsTable::AddHistogramSample(), v8::internal::Handle< T >::cast(), v8::internal::Isolate::counters(), v8::internal::StatsTable::CreateHistogram(), DCHECK, v8::internal::CompilationSubCache::generations(), v8::internal::CompilationSubCache::GetTable(), HasOrigin(), v8::internal::CompilationSubCache::isolate(), v8::internal::kScriptGenerations, name, NULL, v8::internal::Handle< T >::null(), Put(), script_histogram_, script_histogram_initialized_, and v8::internal::Isolate::stats_table().
Referenced by v8::internal::CompilationCache::LookupScript().
Here is the call graph for this function:
Here is the caller graph for this function:| void v8::internal::CompilationCacheScript::Put | ( | Handle< String > | source, |
| Handle< Context > | context, | ||
| Handle< SharedFunctionInfo > | function_info | ||
| ) |
Definition at line 213 of file compilation-cache.cc.
References v8::internal::CompilationSubCache::GetFirstTable(), v8::internal::CompilationSubCache::isolate(), v8::internal::CompilationCacheTable::Put(), and v8::internal::CompilationSubCache::SetFirstTable().
Referenced by Lookup(), and v8::internal::CompilationCache::PutScript().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 92 of file compilation-cache.h.
Referenced by Lookup().
|
private |
Definition at line 93 of file compilation-cache.h.
Referenced by Lookup().