28 return *heap_registry.Pointer();
37 auto& storage = GetHeapRegistryStorage();
38 DCHECK_EQ(storage.end(), std::find(storage.begin(), storage.end(), &
heap));
39 storage.push_back(&
heap);
50 auto& storage = GetHeapRegistryStorage();
51 const auto pos = std::find(storage.begin(), storage.end(), &
heap);
60 for (
auto*
heap : GetHeapRegistryStorage()) {
63 if (address)
return heap;
70 return GetHeapRegistryStorage();
static HeapBase * TryFromManagedPointer(const void *needle)
static const Storage & GetRegisteredHeapsForTesting()
std::vector< HeapBase * > Storage
static void UnregisterHeap(HeapBase &)
static void RegisterHeap(HeapBase &)
static v8::base::LazyMutex process_mutex_
#define LAZY_INSTANCE_INITIALIZER
#define LAZY_MUTEX_INITIALIZER
const uint8_t * ConstAddress
#define DCHECK_NOT_NULL(val)
#define DCHECK_NE(v1, v2)
#define DCHECK_EQ(v1, v2)
typename LazyStaticInstance< T, CreateTrait, InitOnceTrait, DestroyTrait >::type type