diff options
Diffstat (limited to 'deps/v8/src/heap/cppgc/allocation.cc')
-rw-r--r-- | deps/v8/src/heap/cppgc/allocation.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/deps/v8/src/heap/cppgc/allocation.cc b/deps/v8/src/heap/cppgc/allocation.cc index 7e98d1eec98..32f917da5ac 100644 --- a/deps/v8/src/heap/cppgc/allocation.cc +++ b/deps/v8/src/heap/cppgc/allocation.cc @@ -11,6 +11,9 @@ namespace cppgc { namespace internal { +STATIC_ASSERT(api_constants::kLargeObjectSizeThreshold == + kLargeObjectSizeThreshold); + // static void* MakeGarbageCollectedTraitInternal::Allocate(cppgc::Heap* heap, size_t size, @@ -19,5 +22,13 @@ void* MakeGarbageCollectedTraitInternal::Allocate(cppgc::Heap* heap, return Heap::From(heap)->Allocate(size, index); } +// static +void* MakeGarbageCollectedTraitInternal::Allocate( + cppgc::Heap* heap, size_t size, GCInfoIndex index, + CustomSpaceIndex space_index) { + DCHECK_NOT_NULL(heap); + return Heap::From(heap)->Allocate(size, index, space_index); +} + } // namespace internal } // namespace cppgc |