summaryrefslogtreecommitdiff
path: root/deps/v8/src/heap/third-party/heap-api.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/heap/third-party/heap-api.h')
-rw-r--r--deps/v8/src/heap/third-party/heap-api.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/deps/v8/src/heap/third-party/heap-api.h b/deps/v8/src/heap/third-party/heap-api.h
index 16f2fde884..6bf72b85b8 100644
--- a/deps/v8/src/heap/third-party/heap-api.h
+++ b/deps/v8/src/heap/third-party/heap-api.h
@@ -13,6 +13,8 @@ namespace v8 {
namespace internal {
namespace third_party_heap {
+class Impl;
+
class Heap {
public:
static std::unique_ptr<Heap> New(v8::internal::Isolate* isolate);
@@ -26,6 +28,8 @@ class Heap {
const base::AddressRegion& GetCodeRange();
+ bool IsPendingAllocation(HeapObject object);
+
static bool InSpace(Address address, AllocationSpace space);
static bool InOldSpace(Address address);
@@ -38,12 +42,19 @@ class Heap {
static bool IsValidHeapObject(HeapObject object);
+ static bool IsImmovable(HeapObject object);
+
void ResetIterator();
HeapObject NextObject();
bool CollectGarbage();
size_t Capacity();
+
+ V8_INLINE Impl* impl() { return impl_; }
+
+ private:
+ Impl* impl_ = nullptr;
};
} // namespace third_party_heap