/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
deps/v8/src/objects/symbol-table.cc
22 строки
645 B
Michaël Zasso
deps: update V8 to 13.6.233.8
02 май 2025, 16:06
Не верифицирован
02 май 2025, 16:06
918fe04
Код
Авторство
О чём код?
// Copyright 2022 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/objects/hash-table-inl.h" namespace v8 { namespace internal { Tagged<Object> RegisteredSymbolTable::SlowReverseLookup(Tagged<Object> value) { ReadOnlyRoots roots = GetReadOnlyRoots(); for (InternalIndex i : this->IterateEntries()) { Tagged<Object> k; if (!this->ToKey(roots, i, &k)) continue; Tagged<Object> e = this->ValueAt(i); if (e == value) return k; } return roots.undefined_value(); } } // namespace internal } // namespace v8