Line data Source code
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/visitors.h"
6 :
7 : #include "src/objects/code.h"
8 :
9 : namespace v8 {
10 : namespace internal {
11 :
12 : #define DECLARE_TAG(ignore1, name, ignore2) name,
13 : const char* const
14 : VisitorSynchronization::kTags[VisitorSynchronization::kNumberOfSyncTags] = {
15 : ROOT_ID_LIST(DECLARE_TAG)};
16 : #undef DECLARE_TAG
17 :
18 : #define DECLARE_TAG(ignore1, ignore2, name) name,
19 : const char* const VisitorSynchronization::kTagNames
20 : [VisitorSynchronization::kNumberOfSyncTags] = {ROOT_ID_LIST(DECLARE_TAG)};
21 : #undef DECLARE_TAG
22 :
23 1801793 : void ObjectVisitor::VisitNextCodeLink(Code* host, Object** p) {
24 1801793 : VisitPointers(host, p, p + 1);
25 1801793 : }
26 :
27 : } // namespace internal
28 : } // namespace v8
|