v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
wasm-escape-analysis.h
Go to the documentation of this file.
1
// Copyright 2021 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_WASM_ESCAPE_ANALYSIS_H_
6
#define V8_COMPILER_WASM_ESCAPE_ANALYSIS_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/graph-reducer.h
"
13
14
namespace
v8
{
15
namespace
internal
{
16
namespace
compiler {
17
18
class
MachineGraph;
19
20
// Eliminate allocated objects with no uses other than as store targets.
21
// Future work: Also exclude phis and renamings from uses.
22
class
WasmEscapeAnalysis
final :
public
AdvancedReducer
{
23
public
:
24
WasmEscapeAnalysis
(
Editor
* editor,
MachineGraph
* mcgraph)
25
:
AdvancedReducer
(editor),
mcgraph_
(mcgraph) {}
26
27
const
char
*
reducer_name
()
const override
{
return
"WasmEscapeAnalysis"
; }
28
29
Reduction
Reduce
(
Node
* node)
final
;
30
31
private
:
32
Reduction
ReduceAllocateRaw
(
Node
* call);
33
MachineGraph
*
const
mcgraph_
;
34
};
35
36
}
// namespace compiler
37
}
// namespace internal
38
}
// namespace v8
39
40
#endif
// V8_COMPILER_WASM_ESCAPE_ANALYSIS_H_
v8::internal::compiler::AdvancedReducer::Editor
Definition
graph-reducer.h:85
v8::internal::compiler::AdvancedReducer
Definition
graph-reducer.h:82
v8::internal::compiler::MachineGraph
Definition
machine-graph.h:24
v8::internal::compiler::Node
Definition
node.h:41
v8::internal::compiler::Reduction
Definition
graph-reducer.h:34
v8::internal::compiler::WasmEscapeAnalysis
Definition
wasm-escape-analysis.h:22
v8::internal::compiler::WasmEscapeAnalysis::Reduce
Reduction Reduce(Node *node) final
Definition
wasm-escape-analysis.cc:14
v8::internal::compiler::WasmEscapeAnalysis::mcgraph_
MachineGraph *const mcgraph_
Definition
wasm-escape-analysis.h:33
v8::internal::compiler::WasmEscapeAnalysis::ReduceAllocateRaw
Reduction ReduceAllocateRaw(Node *call)
Definition
wasm-escape-analysis.cc:23
v8::internal::compiler::WasmEscapeAnalysis::reducer_name
const char * reducer_name() const override
Definition
wasm-escape-analysis.h:27
v8::internal::compiler::WasmEscapeAnalysis::WasmEscapeAnalysis
WasmEscapeAnalysis(Editor *editor, MachineGraph *mcgraph)
Definition
wasm-escape-analysis.h:24
graph-reducer.h
v8::internal::internal
internal
Definition
wasm-objects-inl.h:458
v8
Definition
api-arguments-inl.h:19
src
compiler
wasm-escape-analysis.h
Generated on Sun Apr 6 2025 21:08:53 for v8 by
1.12.0