v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
refs-map.cc
Go to the documentation of this file.
1// Copyright 2018 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 {
9namespace compiler {
10
14
15RefsMap::RefsMap(uint32_t capacity, AddressMatcher match, Zone* zone)
16 : UnderlyingMap(capacity, match, ZoneAllocationPolicy(zone)) {}
17
18RefsMap::RefsMap(const RefsMap* other, Zone* zone)
19 : UnderlyingMap(other, ZoneAllocationPolicy(zone)) {}
20
24
27 []() { return nullptr; });
28}
29
33
34uint32_t RefsMap::Hash(Address addr) { return static_cast<uint32_t>(addr); }
35
36} // namespace compiler
37} // namespace internal
38} // namespace v8
RefsMap(uint32_t capacity, AddressMatcher match, Zone *zone)
Definition refs-map.cc:15
ObjectData * Remove(const Address &key)
Definition refs-map.cc:30
static uint32_t Hash(Address addr)
Definition refs-map.cc:34
Entry * Lookup(const Address &key) const
Definition refs-map.cc:21
Entry * LookupOrInsert(const Address &key)
Definition refs-map.cc:25