canonical-types.h
Source references XOR syntaximports src/base/platform/mutex.h
SHA-256b6b0a25d9cd7d3e90d0738eb51b577ba08db288aa19fafa07c52da205abb2146
MaleculeH(Db)Md(In)
Evidence
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
5#ifndef V8_WASM_CANONICAL_TYPES_H_
6#define V8_WASM_CANONI …
9:57… y is enabled.
10#endif // !V8_ENABLE_WEBASSEMBLY
11
12#include <unordered_set>
13
14#include "src/base/bounds.h"
15#include "src/base/hashing.h"
16#include "src/base/platform/mutex.h"
17#include "src/wasm/struct-types.h"
18#include "src/wasm/value-type.h"
19
20namespace v8::internal::wasm {
⋯5 lines
25:72… so we
26// can't let them get bigger than what we have storage space for.
27// We could raise this limit using unused bits in the ValueType, but that
28// doesn't seem urge …
44:21… nsidered identical if they have the same shape, and all
45// type indices referenced in the same position in both groups reference:
46// - identical ty …
244:49… ions are OK.)
245 uint32_t desc = (descriptor_index << 11) ^ (describes_index);
246 hasher.Add(desc);
247 Add(*type.struct_type);
248 break;
249 }
250 case Canonic …