blob: 57d49fb322fdd97d00a421178c6ebd2d848d35dd [file] [log] [blame]
Rubin Xu7bc1b612021-02-16 09:38:50 +00001// 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
5#include "include/cppgc/internal/gc-info.h"
6#include "include/v8config.h"
7#include "src/heap/cppgc/gc-info-table.h"
8
9namespace cppgc {
10namespace internal {
11
12RegisteredGCInfoIndex::RegisteredGCInfoIndex(
13 FinalizationCallback finalization_callback, TraceCallback trace_callback,
14 NameCallback name_callback, bool has_v_table)
15 : index_(GlobalGCInfoTable::GetMutable().RegisterNewGCInfo(
16 {finalization_callback, trace_callback, name_callback,
17 has_v_table})) {}
18
19} // namespace internal
20} // namespace cppgc