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
6
8
9#ifdef DEBUG
11#include "src/objects/smi.h"
12#endif // DEBUG
13
14namespace v8 {
15namespace internal {
16
17const char* RootVisitor::RootName(Root root) {
18 switch (root) {
19#define ROOT_CASE(root_id, description) \
20 case Root::root_id: \
21 return description;
23#undef ROOT_CASE
25 break;
26 }
28}
29
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
void VisitRelocInfo(Tagged< InstructionStream > host, RelocIterator *it)
Definition visitors.cc:30
static const char * RootName(Root root)
Definition visitors.cc:17
#define DCHECK(condition)
Definition logging.h:482
#define ROOT_CASE(root_id, description)
#define ROOT_ID_LIST(V)
Definition visitors.h:20