v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
trace-trait.cc
Go to the documentation of this file.
1// Copyright 2020 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
6
9
10namespace cppgc {
11namespace internal {
12
14 const void* address) {
15 // address is guaranteed to be on a normal page because this is used only for
16 // mixins.
17 const BasePage* page = BasePage::FromPayload(address);
18 page->SynchronizedLoad();
19 const HeapObjectHeader& header =
20 page->ObjectHeaderFromInnerAddress<AccessMode::kAtomic>(address);
21 return {header.ObjectStart(),
24 .trace};
25}
26
27} // namespace internal
28} // namespace cppgc
static BasePage * FromPayload(void *)
Definition heap-page.h:314
static const GCInfo & GCInfoFromIndex(GCInfoIndex index)
static TraceDescriptor GetTraceDescriptor(const void *address)