v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
wasm-revec-phase.h
Go to the documentation of this file.
1
// Copyright 2023 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_COMPILER_TURBOSHAFT_WASM_REVEC_PHASE_H_
6
#define V8_COMPILER_TURBOSHAFT_WASM_REVEC_PHASE_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 "
src/compiler/turboshaft/phase.h
"
13
14
namespace
v8::internal::compiler::turboshaft
{
15
16
class
WasmRevecVerifier
{
17
public
:
18
explicit
WasmRevecVerifier
(std::function<
void
(
const
Graph
&)> handler)
19
:
handler_
(handler) {}
20
21
void
Verify
(
const
Graph
& graph) {
22
if
(
handler_
)
handler_
(graph);
23
}
24
25
private
:
26
std::function<void(
const
Graph
&)>
handler_
=
nullptr
;
27
};
28
29
struct
WasmRevecPhase
{
30
DECL_TURBOSHAFT_PHASE_CONSTANTS
(WasmRevec)
31
32
void
Run
(
PipelineData
* data,
Zone
* temp_zone);
33
};
34
35
}
// namespace v8::internal::compiler::turboshaft
36
37
#endif
// V8_COMPILER_TURBOSHAFT_WASM_REVEC_PHASE_H_
v8::internal::Zone
Definition
zone.h:43
v8::internal::compiler::turboshaft::Graph
Definition
graph.h:578
v8::internal::compiler::turboshaft::PipelineData
Definition
phase.h:177
v8::internal::compiler::turboshaft::WasmRevecVerifier
Definition
wasm-revec-phase.h:16
v8::internal::compiler::turboshaft::WasmRevecVerifier::handler_
std::function< void(const Graph &)> handler_
Definition
wasm-revec-phase.h:26
v8::internal::compiler::turboshaft::WasmRevecVerifier::Verify
void Verify(const Graph &graph)
Definition
wasm-revec-phase.h:21
v8::internal::compiler::turboshaft::WasmRevecVerifier::WasmRevecVerifier
WasmRevecVerifier(std::function< void(const Graph &)> handler)
Definition
wasm-revec-phase.h:18
v8::internal::compiler::turboshaft
Definition
builtins.h:33
v8::internal::compiler::turboshaft::WasmRevecPhase
Definition
wasm-revec-phase.h:29
v8::internal::compiler::turboshaft::WasmRevecPhase::Run
void Run(PipelineData *data, Zone *temp_zone)
Definition
wasm-revec-phase.cc:14
phase.h
DECL_TURBOSHAFT_PHASE_CONSTANTS
#define DECL_TURBOSHAFT_PHASE_CONSTANTS(Name)
Definition
phase.h:39
src
compiler
turboshaft
wasm-revec-phase.h
Generated on Sun Apr 6 2025 21:08:53 for v8 by
1.12.0