/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
deps/v8/src/compiler/refs-map.cc
37 строк
1 KB
Michaël Zasso
deps: update V8 to 14.2.231.9
23 окт 2025, 08:36
Не верифицирован
23 окт 2025, 08:36
c2843b7
Код
Авторство
О чём код?
// Copyright 2018 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 "src/compiler/refs-map.h" namespace v8 { namespace internal { namespace compiler { using UnderlyingMap = base::TemplateHashMapImpl<Address, ObjectData*, AddressMatcher, ZoneAllocationPolicy>; RefsMap::RefsMap(uint32_t capacity, AddressMatcher match, Zone* zone) : UnderlyingMap(capacity, match, ZoneAllocationPolicy(zone)) {} RefsMap::RefsMap(const RefsMap* other, Zone* zone) : UnderlyingMap(other, ZoneAllocationPolicy(zone)) {} RefsMap::Entry* RefsMap::Lookup(const Address& key) const { return UnderlyingMap::Lookup(key, Hash(key)); } RefsMap::Entry* RefsMap::InsertNew(const Address& key) { return UnderlyingMap::InsertNew(key, RefsMap::Hash(key)); } ObjectData* RefsMap::Remove(const Address& key) { return UnderlyingMap::Remove(key, RefsMap::Hash(key)); } uint32_t RefsMap::Hash(Address addr) { return static_cast<uint32_t>(addr); } } // namespace compiler } // namespace internal } // namespace v8