#include "src/profiler/strings-storage.h"
#include <memory>
#include "src/base/bits.h"
#include "src/base/strings.h"
#include "src/objects/objects-inl.h"
#include "src/utils/allocation.h"
namespace v8 {
namespace internal {
bool StringsStorage::StringsMatch(void* key1, void* key2) { … }
StringsStorage::StringsStorage() : … { … }
StringsStorage::~StringsStorage() { … }
const char* StringsStorage::GetCopy(const char* src) { … }
const char* StringsStorage::GetFormatted(const char* format, ...) { … }
const char* StringsStorage::AddOrDisposeString(char* str, int len) { … }
const char* StringsStorage::GetVFormatted(const char* format, va_list args) { … }
const char* StringsStorage::GetSymbol(Tagged<Symbol> sym) { … }
const char* StringsStorage::GetName(Tagged<Name> name) { … }
const char* StringsStorage::GetName(int index) { … }
const char* StringsStorage::GetConsName(const char* prefix, Tagged<Name> name) { … }
namespace {
inline uint32_t ComputeStringHash(const char* str, int len) { … }
}
bool StringsStorage::Release(const char* str) { … }
size_t StringsStorage::GetStringCountForTesting() const { … }
size_t StringsStorage::GetStringSize() { … }
base::HashMap::Entry* StringsStorage::GetEntry(const char* str, int len) { … }
}
}