v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
wasm-in-js-inlining-phase.h
Go to the documentation of this file.
1// Copyright 2024 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_IN_JS_INLINING_PHASE_H_
6#define V8_COMPILER_TURBOSHAFT_WASM_IN_JS_INLINING_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
13
15
16// This reducer is part of the JavaScript pipeline and inlines the code of
17// sufficiently small/hot Wasm functions into the caller JS function.
19 DECL_TURBOSHAFT_PHASE_CONSTANTS(WasmInJSInlining)
20
21 void Run(PipelineData* data, Zone* temp_zone);
22};
23
24} // namespace v8::internal::compiler::turboshaft
25
26#endif // V8_COMPILER_TURBOSHAFT_WASM_IN_JS_INLINING_PHASE_H_
#define DECL_TURBOSHAFT_PHASE_CONSTANTS(Name)
Definition phase.h:39