v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
string-set-inl.h
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
5#ifndef V8_OBJECTS_STRING_SET_INL_H_
6#define V8_OBJECTS_STRING_SET_INL_H_
7
9// Include the non-inl header before the rest of the headers.
10
12
13// Has to be the last include (doesn't have include guards):
15
16namespace v8 {
17namespace internal {
18
20 DCHECK(IsString(value));
21 return key->Equals(Cast<String>(value));
22}
23
25 return key->EnsureHash();
26}
27
29 Tagged<Object> object) {
30 return Cast<String>(object)->EnsureHash();
31}
32
33} // namespace internal
34} // namespace v8
35
37
38#endif // V8_OBJECTS_STRING_SET_INL_H_
static uint32_t HashForObject(ReadOnlyRoots roots, Tagged< Object > object)
static uint32_t Hash(ReadOnlyRoots roots, Tagged< String > key)
static bool IsMatch(Tagged< String > key, Tagged< Object > value)
Tagged< To > Cast(Tagged< From > value, const v8::SourceLocation &loc=INIT_SOURCE_LOCATION_IN_DEBUG)
Definition casting.h:150
#define DCHECK(condition)
Definition logging.h:482