v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
symbol-table.cc
Go to the documentation of this file.
1// Copyright 2022 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
6
7namespace v8 {
8namespace internal {
9
12 for (InternalIndex i : this->IterateEntries()) {
14 if (!this->ToKey(roots, i, &k)) continue;
15 Tagged<Object> e = this->ValueAt(i);
16 if (e == value) return k;
17 }
18 return roots.undefined_value();
19}
20
21} // namespace internal
22} // namespace v8
Tagged< Object > ValueAt(InternalIndex entry)
Definition objects.cc:6053
Tagged< Object > SlowReverseLookup(Tagged< Object > value)
ReadOnlyRoots GetReadOnlyRoots()
Definition roots-inl.h:86