/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
deps/v8/src/heap/cppgc/compaction-worklists.h
40 строк
1014 B
Michaël Zasso
deps: update V8 to 9.0.257.11
15 мар 2021, 17:54
Не верифицирован
15 мар 2021, 17:54
732ad99
Код
Авторство
О чём код?
// 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. #ifndef V8_HEAP_CPPGC_COMPACTION_WORKLISTS_H_ #define V8_HEAP_CPPGC_COMPACTION_WORKLISTS_H_ #include <unordered_set> #include "src/heap/base/worklist.h" namespace cppgc { namespace internal { class CompactionWorklists final { public: CompactionWorklists() = default; CompactionWorklists(const CompactionWorklists&) = delete; CompactionWorklists& operator=(const CompactionWorklists&) = delete; using MovableReference = const void*; using MovableReferencesWorklist = heap::base::Worklist<MovableReference*, 256 /* local entries */>; MovableReferencesWorklist* movable_slots_worklist() { return &movable_slots_worklist_; } void ClearForTesting(); private: MovableReferencesWorklist movable_slots_worklist_; }; } // namespace internal } // namespace cppgc #endif // V8_HEAP_CPPGC_COMPACTION_WORKLISTS_H_