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
14
#include "
src/codegen/machine-type.h
"
15
#include "
src/wasm/wasm-tier.h
"
16
17
namespace
v8::internal::wasm
{
18
19
// This struct is create in generated code, hence use low-level types.
20
struct
MemoryTracingInfo
{
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
29
MemoryTracingInfo
(uintptr_t
offset
,
bool
is_store
,
MachineRepresentation
rep)
30
:
offset
(
offset
),
31
is_store
(
is_store
),
32
mem_rep
(static_cast<uint8_t>(rep)) {}
33
};
34
35
}
// namespace v8::internal::wasm
36
37
#endif
// V8_WASM_MEMORY_TRACING_H_
machine-type.h
v8::internal::wasm
Definition
asm-parser.cc:24
v8::internal::MachineRepresentation
MachineRepresentation
Definition
machine-type.h:19
v8::internal::value
return value
Definition
map-inl.h:893
v8::internal::wasm::MemoryTracingInfo
Definition
memory-tracing.h:20
v8::internal::wasm::MemoryTracingInfo::MemoryTracingInfo
MemoryTracingInfo(uintptr_t offset, bool is_store, MachineRepresentation rep)
Definition
memory-tracing.h:29
v8::internal::wasm::MemoryTracingInfo::is_store
uint8_t is_store
Definition
memory-tracing.h:22
v8::internal::wasm::MemoryTracingInfo::mem_rep
uint8_t mem_rep
Definition
memory-tracing.h:23
v8::internal::wasm::MemoryTracingInfo::offset
uintptr_t offset
Definition
memory-tracing.h:21
wasm-tier.h
src
wasm
memory-tracing.h
Generated on Sun Apr 6 2025 21:08:58 for v8 by
1.12.0