diff options
Diffstat (limited to 'chromium/v8/src/heap/cppgc/heap-inl.h')
| -rw-r--r-- | chromium/v8/src/heap/cppgc/heap-inl.h | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/chromium/v8/src/heap/cppgc/heap-inl.h b/chromium/v8/src/heap/cppgc/heap-inl.h deleted file mode 100644 index 4fe3186230f..00000000000 --- a/chromium/v8/src/heap/cppgc/heap-inl.h +++ /dev/null @@ -1,33 +0,0 @@ -// 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_CPPGC_HEAP_INL_H_ -#define V8_HEAP_CPPGC_HEAP_INL_H_ - -#include "src/heap/cppgc/globals.h" -#include "src/heap/cppgc/heap.h" -#include "src/heap/cppgc/object-allocator-inl.h" - -namespace cppgc { -namespace internal { - -void* Heap::Allocate(size_t size, GCInfoIndex index) { - DCHECK(is_allocation_allowed()); - void* result = object_allocator_.AllocateObject(size, index); - objects_.push_back(&HeapObjectHeader::FromPayload(result)); - return result; -} - -void* Heap::Allocate(size_t size, GCInfoIndex index, - CustomSpaceIndex space_index) { - DCHECK(is_allocation_allowed()); - void* result = object_allocator_.AllocateObject(size, index, space_index); - objects_.push_back(&HeapObjectHeader::FromPayload(result)); - return result; -} - -} // namespace internal -} // namespace cppgc - -#endif // V8_HEAP_CPPGC_HEAP_INL_H_ |
