v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
visitors.cc
Go to the documentation of this file.
1
// Copyright 2017 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
#include "
src/objects/visitors.h
"
6
7
#include "
src/codegen/reloc-info-inl.h
"
8
9
#ifdef DEBUG
10
#include "
src/objects/instruction-stream-inl.h
"
11
#include "
src/objects/smi.h
"
12
#endif
// DEBUG
13
14
namespace
v8
{
15
namespace
internal
{
16
17
const
char
*
RootVisitor::RootName
(
Root
root) {
18
switch
(root) {
19
#define ROOT_CASE(root_id, description) \
20
case Root::root_id: \
21
return description;
22
ROOT_ID_LIST
(
ROOT_CASE
)
23
#undef ROOT_CASE
24
case
Root::kNumberOfRoots
:
25
break
;
26
}
27
UNREACHABLE
();
28
}
29
30
void
ObjectVisitor::VisitRelocInfo
(
Tagged<InstructionStream>
host,
31
RelocIterator
* it) {
32
// RelocInfo iteration is only valid for fully-initialized InstructionStream
33
// objects. Callers must ensure this.
34
DCHECK
(host->IsFullyInitialized());
35
for
(; !it->done(); it->next()) {
36
it->rinfo()->Visit(host,
this
);
37
}
38
}
39
40
}
// namespace internal
41
}
// namespace v8
v8::internal::ObjectVisitor::VisitRelocInfo
void VisitRelocInfo(Tagged< InstructionStream > host, RelocIterator *it)
Definition
visitors.cc:30
v8::internal::RelocIterator
Definition
reloc-info.h:567
v8::internal::RootVisitor::RootName
static const char * RootName(Root root)
Definition
visitors.cc:17
v8::internal::Tagged
Definition
waiter-queue-node.h:21
instruction-stream-inl.h
v8::internal::internal
internal
Definition
wasm-objects-inl.h:458
v8::internal::UNREACHABLE
UNREACHABLE()
v8::internal::Root
Root
Definition
visitors.h:56
v8::internal::Root::kNumberOfRoots
@ kNumberOfRoots
v8
Definition
api-arguments-inl.h:19
reloc-info-inl.h
smi.h
DCHECK
#define DCHECK(condition)
Definition
logging.h:482
ROOT_CASE
#define ROOT_CASE(root_id, description)
visitors.h
ROOT_ID_LIST
#define ROOT_ID_LIST(V)
Definition
visitors.h:20
src
objects
visitors.cc
Generated on Sun Apr 6 2025 21:08:56 for v8 by
1.12.0