| Rubin Xu | 7bc1b61 | 2021-02-16 09:38:50 +0000 | [diff] [blame^] | 1 | // 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 | |
| 9 | namespace cppgc { |
| 10 | namespace internal { |
| 11 | |
| 12 | RegisteredGCInfoIndex::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 |