v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
wasm-inlining-into-js.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_WASM_INLINING_INTO_JS_H_
6
#define V8_COMPILER_WASM_INLINING_INTO_JS_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/base/vector.h
"
13
#include "
src/common/globals.h
"
14
15
namespace
v8::internal
{
16
class
Zone
;
17
18
namespace
wasm
{
19
struct
FunctionBody;
20
struct
WasmModule
;
21
}
// namespace wasm
22
23
namespace
compiler {
24
class
MachineGraph;
25
class
Node;
26
class
SourcePositionTable;
27
28
// The WasmIntoJsInliner provides support for inlining very small wasm functions
29
// which only contain very specific supported instructions into JS.
30
class
WasmIntoJSInliner
{
31
public
:
32
static
bool
TryInlining
(
Zone
* zone,
const
wasm::WasmModule
* module,
33
MachineGraph
* mcgraph,
const
wasm::FunctionBody
& body,
34
base::Vector<const uint8_t>
bytes,
35
SourcePositionTable
* source_position_table,
36
int
inlining_id);
37
};
38
39
}
// namespace compiler
40
}
// namespace v8::internal
41
42
#endif
// V8_COMPILER_WASM_INLINING_INTO_JS_H_
Zone
friend Zone
Definition
asm-types.cc:195
v8::base::Vector
Definition
zone-list.h:15
v8::internal::Zone
Definition
zone.h:43
v8::internal::compiler::MachineGraph
Definition
machine-graph.h:24
v8::internal::compiler::SourcePositionTable
Definition
compiler-source-position-table.h:17
v8::internal::compiler::WasmIntoJSInliner
Definition
wasm-inlining-into-js.h:30
v8::internal::compiler::WasmIntoJSInliner::TryInlining
static bool TryInlining(Zone *zone, const wasm::WasmModule *module, MachineGraph *mcgraph, const wasm::FunctionBody &body, base::Vector< const uint8_t > bytes, SourcePositionTable *source_position_table, int inlining_id)
Definition
wasm-inlining-into-js.cc:383
globals.h
v8::internal
Definition
api-arguments-inl.h:20
v8::internal::WasmModule
wasm::WasmModule WasmModule
Definition
wasm-objects.cc:109
wasm
Definition
c-api.cc:87
v8::internal::wasm::FunctionBody
Definition
function-body-decoder.h:32
v8::internal::wasm::WasmModule
Definition
wasm-module.h:705
vector.h
src
compiler
wasm-inlining-into-js.h
Generated on Sun Apr 6 2025 21:08:53 for v8 by
1.12.0