summaryrefslogtreecommitdiff
path: root/chromium/v8/src/heap/cppgc/gc-info.cc
blob: 70970139b17c07b83da20915f4b4a33562d721d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright 2020 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "include/cppgc/internal/gc-info.h"
#include "include/v8config.h"
#include "src/heap/cppgc/gc-info-table.h"

namespace cppgc {
namespace internal {

RegisteredGCInfoIndex::RegisteredGCInfoIndex(
    FinalizationCallback finalization_callback, TraceCallback trace_callback,
    bool has_v_table)
    : index_(GlobalGCInfoTable::GetMutable().RegisterNewGCInfo(
          {finalization_callback, trace_callback, has_v_table})) {}

}  // namespace internal
}  // namespace cppgc