v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
wasm-turboshaft-compiler.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_TURBOSHAFT_COMPILER_H_
6#define V8_COMPILER_TURBOSHAFT_WASM_TURBOSHAFT_COMPILER_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
14
15namespace v8::internal::wasm {
16struct CompilationEnv;
17struct WasmCompilationResult;
18class WasmDetectedFeatures;
19} // namespace v8::internal::wasm
20
21namespace v8::internal::compiler {
22struct WasmCompilationData;
23
24namespace turboshaft {
25
26wasm::WasmCompilationResult ExecuteTurboshaftWasmCompilation(
27 wasm::CompilationEnv*, WasmCompilationData&, wasm::WasmDetectedFeatures*,
28 Counters*);
29
44
45} // namespace turboshaft
46
47} // namespace v8::internal::compiler
48
49#endif // V8_COMPILER_TURBOSHAFT_WASM_TURBOSHAFT_COMPILER_H_
TurboshaftCompilationJob(OptimizedCompilationInfo *compilation_info, State initial_state)
wasm::WasmCompilationResult ExecuteTurboshaftWasmCompilation(wasm::CompilationEnv *env, compiler::WasmCompilationData &data, wasm::WasmDetectedFeatures *detected, Counters *counters)