v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
memory-tracing.h
Go to the documentation of this file.
1// Copyright 2017 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_MEMORY_TRACING_H_
6#define V8_WASM_MEMORY_TRACING_H_
7
8#if !V8_ENABLE_WEBASSEMBLY
9#error This header should only be included if WebAssembly is enabled.
10#endif // !V8_ENABLE_WEBASSEMBLY
11
12#include <cstdint>
13
15#include "src/wasm/wasm-tier.h"
16
17namespace v8::internal::wasm {
18
19// This struct is create in generated code, hence use low-level types.
21 uintptr_t offset;
22 uint8_t is_store; // 0 or 1
23 uint8_t mem_rep;
24 static_assert(
25 std::is_same<decltype(mem_rep),
26 std::underlying_type<MachineRepresentation>::type>::value,
27 "MachineRepresentation uses uint8_t");
28
30 : offset(offset),
32 mem_rep(static_cast<uint8_t>(rep)) {}
33};
34
35} // namespace v8::internal::wasm
36
37#endif // V8_WASM_MEMORY_TRACING_H_
return value
Definition map-inl.h:893
MemoryTracingInfo(uintptr_t offset, bool is_store, MachineRepresentation rep)