V8 Project
|
#include <debug.h>
Public Member Functions | |
ScriptCache (Isolate *isolate) | |
virtual | ~ScriptCache () |
void | Add (Handle< Script > script) |
Handle< FixedArray > | GetScripts () |
Private Member Functions | |
void | Clear () |
![]() | |
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 bool | PointersMatch (void *key1, void *key2) |
Private Attributes | |
Isolate * | isolate_ |
Additional Inherited Members | |
![]() | |
typedef bool(* | MatchFun) (void *key1, void *key2) |
![]() | |
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.
|
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().
|
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().
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().
|
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().
Definition at line 164 of file debug.h.
References v8::internal::ComputeIntegerHash(), and v8::internal::kZeroHashSeed.
Referenced by Add(), and HandleWeakScript().
|
private |
Definition at line 175 of file debug.h.
Referenced by Add(), GetScripts(), and ScriptCache().