|
V8 Project
|
#include <profile-generator.h>
Collaboration diagram for v8::internal::StringsStorage:Public Member Functions | |
| StringsStorage (Heap *heap) | |
| ~StringsStorage () | |
| const char * | GetCopy (const char *src) |
| const char * | GetFormatted (const char *format,...) |
| const char * | GetVFormatted (const char *format, va_list args) |
| const char * | GetName (Name *name) |
| const char * | GetName (int index) |
| const char * | GetFunctionName (Name *name) |
| const char * | GetFunctionName (const char *name) |
| size_t | GetUsedMemorySize () const |
Private Member Functions | |
| const char * | AddOrDisposeString (char *str, int len) |
| HashMap::Entry * | GetEntry (const char *str, int len) |
| DISALLOW_COPY_AND_ASSIGN (StringsStorage) | |
Static Private Member Functions | |
| static bool | StringsMatch (void *key1, void *key2) |
Private Attributes | |
| uint32_t | hash_seed_ |
| HashMap | names_ |
Static Private Attributes | |
| static const int | kMaxNameSize = 1024 |
Definition at line 19 of file profile-generator.h.
|
explicit |
Definition at line 27 of file profile-generator.cc.
| v8::internal::StringsStorage::~StringsStorage | ( | ) |
Definition at line 32 of file profile-generator.cc.
References v8::internal::DeleteArray(), names_, v8::internal::TemplateHashMapImpl< AllocationPolicy >::Next(), NULL, and v8::internal::TemplateHashMapImpl< AllocationPolicy >::Start().
Here is the call graph for this function:
|
private |
Definition at line 64 of file profile-generator.cc.
References v8::internal::DeleteArray(), GetEntry(), and NULL.
Referenced by GetName(), and GetVFormatted().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
| const char * v8::internal::StringsStorage::GetCopy | ( | const char * | src | ) |
Definition at line 41 of file profile-generator.cc.
References GetEntry(), v8::internal::Vector< T >::New(), NULL, v8::internal::Vector< T >::start(), and v8::internal::StrNCpy().
Referenced by v8::internal::BasicHeapEntriesAllocator::AllocateEntry(), v8::internal::NativeObjectsExplorer::FindOrAddGroupInfo(), GetFunctionName(), and GetVFormatted().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 129 of file profile-generator.cc.
References hash_seed_, v8::internal::StringHasher::HashSequentialString(), v8::internal::TemplateHashMapImpl< AllocationPolicy >::Lookup(), and names_.
Referenced by AddOrDisposeString(), and GetCopy().
Here is the call graph for this function:
Here is the caller graph for this function:| const char * v8::internal::StringsStorage::GetFormatted | ( | const char * | format, |
| ... | |||
| ) |
Definition at line 55 of file profile-generator.cc.
References GetVFormatted().
Referenced by v8::internal::V8HeapExplorer::AddEntry(), v8::internal::BasicHeapEntriesAllocator::AllocateEntry(), v8::internal::V8HeapExplorer::ExtractClosureReferences(), v8::internal::V8HeapExplorer::ExtractSharedFunctionInfoReferences(), GetName(), v8::internal::V8HeapExplorer::SetPropertyReference(), v8::internal::V8HeapExplorer::SetWeakReference(), v8::internal::V8HeapExplorer::TagBuiltinCodeObject(), and v8::internal::V8HeapExplorer::TagCodeObject().
Here is the call graph for this function:
Here is the caller graph for this function:| const char * v8::internal::StringsStorage::GetFunctionName | ( | const char * | name | ) |
Definition at line 114 of file profile-generator.cc.
References GetCopy(), and name.
Here is the call graph for this function:| const char * v8::internal::StringsStorage::GetFunctionName | ( | Name * | name | ) |
Definition at line 109 of file profile-generator.cc.
References GetName(), and name.
Referenced by v8::internal::AllocationTracker::AddFunctionInfo(), and v8::internal::CpuProfilesCollection::GetFunctionName().
Here is the call graph for this function:
Here is the caller graph for this function:| const char * v8::internal::StringsStorage::GetName | ( | int | index | ) |
Definition at line 104 of file profile-generator.cc.
References GetFormatted().
Here is the call graph for this function:| const char * v8::internal::StringsStorage::GetName | ( | Name * | name | ) |
Definition at line 88 of file profile-generator.cc.
References AddOrDisposeString(), v8::internal::SmartPointerBase< Deallocator, T >::Detach(), v8::internal::DISALLOW_NULLS, kMaxNameSize, v8::internal::String::length(), v8::internal::Min(), name, v8::internal::ROBUST_STRING_TRAVERSAL, and v8::internal::String::ToCString().
Referenced by v8::internal::V8HeapExplorer::AddEntry(), v8::internal::AllocationTracker::AddFunctionInfo(), v8::internal::V8HeapExplorer::ExtractSharedFunctionInfoReferences(), GetFunctionName(), v8::internal::CpuProfilesCollection::GetName(), v8::internal::V8HeapExplorer::SetContextReference(), v8::internal::V8HeapExplorer::SetInternalReference(), v8::internal::SnapshotFiller::SetNamedAutoIndexReference(), and v8::internal::V8HeapExplorer::SetPropertyReference().
Here is the call graph for this function:
Here is the caller graph for this function:| size_t v8::internal::StringsStorage::GetUsedMemorySize | ( | ) | const |
Definition at line 119 of file profile-generator.cc.
References v8::internal::TemplateHashMapImpl< AllocationPolicy >::capacity(), names_, v8::internal::TemplateHashMapImpl< AllocationPolicy >::Next(), NULL, size, and v8::internal::TemplateHashMapImpl< AllocationPolicy >::Start().
Here is the call graph for this function:| const char * v8::internal::StringsStorage::GetVFormatted | ( | const char * | format, |
| va_list | args | ||
| ) |
Definition at line 77 of file profile-generator.cc.
References AddOrDisposeString(), v8::internal::DeleteArray(), GetCopy(), v8::internal::Vector< T >::New(), v8::internal::Vector< T >::start(), and v8::internal::VSNPrintF().
Referenced by GetFormatted().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
Definition at line 21 of file profile-generator.cc.
|
private |
Definition at line 40 of file profile-generator.h.
Referenced by GetEntry().
|
staticprivate |
Definition at line 34 of file profile-generator.h.
Referenced by GetName().
|
private |
Definition at line 41 of file profile-generator.h.
Referenced by GetEntry(), GetUsedMemorySize(), and ~StringsStorage().