|
V8 Project
|
#include <debug.h>
Inheritance diagram for v8::internal::ScriptCache:
Collaboration diagram for v8::internal::ScriptCache:Public Member Functions | |
| ScriptCache (Isolate *isolate) | |
| virtual | ~ScriptCache () |
| void | Add (Handle< Script > script) |
| Handle< FixedArray > | GetScripts () |
Private Member Functions | |
| void | Clear () |
Private Member Functions inherited from v8::internal::TemplateHashMapImpl< FreeStoreAllocationPolicy > | |
| TemplateHashMapImpl (MatchFun match, uint32_t capacity=kDefaultHashMapCapacity, FreeStoreAllocationPolicy allocator=FreeStoreAllocationPolicy()) | |
| ~TemplateHashMapImpl () | |
| Entry * | Lookup (void *key, uint32_t hash, bool insert, FreeStoreAllocationPolicy allocator=FreeStoreAllocationPolicy()) |
| void * | Remove (void *key, uint32_t hash) |
| void | Clear () |
| uint32_t | occupancy () const |
| uint32_t | capacity () const |
| Entry * | Start () const |
| Entry * | Next (Entry *p) const |
Static Private Member Functions | |
| static uint32_t | Hash (int key) |
| static void | HandleWeakScript (const v8::WeakCallbackData< v8::Value, void > &data) |
Static Private Member Functions inherited from v8::internal::TemplateHashMapImpl< FreeStoreAllocationPolicy > | |
| static bool | PointersMatch (void *key1, void *key2) |
Private Attributes | |
| Isolate * | isolate_ |
Additional Inherited Members | |
Private Types inherited from v8::internal::TemplateHashMapImpl< FreeStoreAllocationPolicy > | |
| typedef bool(* | MatchFun) (void *key1, void *key2) |
Static Private Attributes inherited from v8::internal::TemplateHashMapImpl< FreeStoreAllocationPolicy > | |
| static const uint32_t | kDefaultHashMapCapacity |
|
explicit |
Definition at line 591 of file debug.cc.
References Add(), v8::internal::Heap::CollectAllGarbage(), v8::internal::Isolate::heap(), isolate_, v8::internal::Heap::kMakeHeapIterableMask, and NULL.
Here is the call graph for this function:
|
inlinevirtual |
Definition at line 614 of file debug.cc.
References v8::internal::Handle< T >::cast(), v8::internal::GlobalHandles::Create(), DCHECK, v8::internal::Isolate::global_handles(), HandleWeakScript(), Hash(), isolate_, v8::internal::TemplateHashMapImpl< FreeStoreAllocationPolicy >::Lookup(), v8::internal::GlobalHandles::MakeWeak(), and NULL.
Referenced by v8::internal::Debug::OnAfterCompile(), and ScriptCache().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 657 of file debug.cc.
References v8::internal::TemplateHashMapImpl< FreeStoreAllocationPolicy >::Clear(), v8::internal::GlobalHandles::ClearWeakness(), DCHECK, v8::internal::GlobalHandles::Destroy(), v8::internal::TemplateHashMapImpl< FreeStoreAllocationPolicy >::Next(), NULL, and v8::internal::TemplateHashMapImpl< FreeStoreAllocationPolicy >::Start().
Referenced by ~ScriptCache().
Here is the call graph for this function:
Here is the caller graph for this function:| Handle< FixedArray > v8::internal::ScriptCache::GetScripts | ( | ) |
Definition at line 642 of file debug.cc.
References DCHECK, v8::internal::Isolate::factory(), isolate_, v8::internal::TemplateHashMapImpl< FreeStoreAllocationPolicy >::Next(), NULL, v8::internal::TemplateHashMapImpl< FreeStoreAllocationPolicy >::occupancy(), and v8::internal::TemplateHashMapImpl< FreeStoreAllocationPolicy >::Start().
Referenced by v8::internal::Debug::GetLoadedScripts().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Definition at line 671 of file debug.cc.
References v8::internal::Handle< T >::cast(), v8::internal::GlobalHandles::Destroy(), v8::WeakCallbackData< T, P >::GetParameter(), v8::WeakCallbackData< T, P >::GetValue(), Hash(), v8::internal::TemplateHashMapImpl< AllocationPolicy >::Lookup(), v8::Utils::OpenHandle(), and v8::internal::TemplateHashMapImpl< AllocationPolicy >::Remove().
Referenced by Add().
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 164 of file debug.h.
References v8::internal::ComputeIntegerHash(), and v8::internal::kZeroHashSeed.
Referenced by Add(), and HandleWeakScript().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 175 of file debug.h.
Referenced by Add(), GetScripts(), and ScriptCache().