5#ifndef V8_HEAP_HEAP_LAYOUT_INL_H_
6#define V8_HEAP_HEAP_LAYOUT_INL_H_
27 if constexpr (
v8_flags.single_generation.value()) {
30 if constexpr (
v8_flags.sticky_mark_bits.value()) {
35 if (in_young_generation) {
39 return in_young_generation;
static V8_INLINE bool InYoungGeneration(Tagged< Object > object)
static V8_EXPORT bool InYoungGenerationForStickyMarkbits(const MemoryChunk *chunk, Tagged< HeapObject > object)
static V8_INLINE bool InWritableSharedSpace(Tagged< HeapObject > object)
static V8_INLINE bool IsOwnedByAnyHeap(Tagged< HeapObject > object)
static V8_EXPORT void CheckYoungGenerationConsistency(const MemoryChunk *chunk)
static V8_INLINE bool InTrustedSpace(Tagged< HeapObject > object)
static V8_INLINE bool InReadOnlySpace(Tagged< HeapObject > object)
static V8_INLINE bool InBlackAllocatedPage(Tagged< HeapObject > object)
static V8_INLINE bool InAnySharedSpace(Tagged< HeapObject > object)
static V8_INLINE bool InCodeSpace(Tagged< HeapObject > object)
V8_INLINE bool InTrustedSpace() const
V8_INLINE bool InWritableSharedSpace() const
V8_INLINE Heap * GetHeap()
V8_INLINE bool InYoungGeneration() const
V8_INLINE bool InCodeSpace() const
static V8_INLINE MemoryChunk * FromHeapObject(Tagged< HeapObject > object)
V8_INLINE bool InReadOnlySpace() const
V8_INLINE MainThreadFlags GetFlags() const
bool GetHeapObject(Tagged< HeapObject > *result) const
V8_INLINE constexpr bool IsSmi(TaggedImpl< kRefType, StorageType > obj)
V8_EXPORT_PRIVATE FlagValues v8_flags
Tagged< To > Cast(Tagged< From > value, const v8::SourceLocation &loc=INIT_SOURCE_LOCATION_IN_DEBUG)
#define DCHECK(condition)