// Copyright 2020 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef V8_HEAP_ALLOCATION_OBSERVER_H_ #define V8_HEAP_ALLOCATION_OBSERVER_H_ #include <cstdint> #include <unordered_set> #include <vector> #include "src/common/globals.h" namespace v8 { namespace internal { // Observer for allocations that is aware of LAB-based allocation. class AllocationObserver { … }; // A global allocation counter observers can be added to. class AllocationCounter final { … }; class V8_EXPORT_PRIVATE V8_NODISCARD PauseAllocationObserversScope { … }; } // namespace internal } // namespace v8 #endif // V8_HEAP_ALLOCATION_OBSERVER_H_