v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
page-metadata-inl.h
Go to the documentation of this file.
1// Copyright 2023 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef V8_HEAP_PAGE_METADATA_INL_H_
6#define V8_HEAP_PAGE_METADATA_INL_H_
7
9// Include the non-inl header before the rest of the headers.
10
13#include "src/heap/spaces.h"
14
15namespace v8 {
16namespace internal {
17
18// static
20 return reinterpret_cast<PageMetadata*>(
22}
23
24// static
28
29// static
33
34template <typename Callback>
41
49
59
60} // namespace internal
61} // namespace v8
62
63#endif // V8_HEAP_PAGE_METADATA_INL_H_
void ClearFlagSlow(Flag flag)
V8_INLINE bool IsFlagSet(Flag flag) const
V8_INLINE MemoryChunkMetadata * Metadata()
static V8_INLINE MemoryChunk * FromAddress(Address addr)
void SetFlagSlow(Flag flag)
void ForAllFreeListCategories(Callback callback)
static V8_INLINE PageMetadata * FromAllocationAreaAddress(Address address)
static V8_INLINE PageMetadata * FromHeapObject(Tagged< HeapObject > o)
static V8_INLINE PageMetadata * FromAddress(Address addr)
FreeList * free_list()
Definition spaces.h:123
V8_INLINE constexpr StorageType ptr() const
TNode< Object > callback
static constexpr FreeListCategoryType kFirstCategory
Definition free-list.h:39
constexpr int kTaggedSize
Definition globals.h:542
#define DCHECK_NULL(val)
Definition logging.h:491
#define DCHECK(condition)
Definition logging.h:482