v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
wasm-turboshaft-compiler.cc
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
#include "
src/compiler/turboshaft/wasm-turboshaft-compiler.h
"
6
7
#include "
src/codegen/optimized-compilation-info.h
"
8
#include "
src/compiler/backend/instruction-selector.h
"
9
#include "
src/compiler/common-operator.h
"
10
#include "
src/compiler/compiler-source-position-table.h
"
11
#include "
src/compiler/machine-operator.h
"
12
#include "
src/compiler/node-origin-table.h
"
13
#include "
src/compiler/pipeline.h
"
14
#include "
src/compiler/turbofan-graph-visualizer.h
"
15
// TODO(14108): Remove.
16
#include "
src/compiler/wasm-compiler.h
"
17
#include "
src/wasm/wasm-engine.h
"
18
19
namespace
v8::internal::compiler::turboshaft
{
20
21
wasm::WasmCompilationResult
ExecuteTurboshaftWasmCompilation
(
22
wasm::CompilationEnv
* env,
compiler::WasmCompilationData
& data,
23
wasm::WasmDetectedFeatures
* detected,
Counters
* counters) {
24
wasm::WasmCompilationResult
result
=
25
Pipeline::GenerateWasmCode(env, data, detected, counters);
26
DCHECK
(
result
.succeeded());
27
DCHECK_EQ
(
wasm::ExecutionTier::kTurbofan
,
result
.result_tier);
28
DCHECK_NULL
(
result
.assumptions);
29
result
.assumptions = std::move(data.assumptions);
30
DCHECK_IMPLIES
(
result
.assumptions, !
result
.assumptions->empty());
31
return
result
;
32
}
33
34
}
// namespace v8::internal::compiler::turboshaft
v8::internal::Counters
Definition
counters.h:502
v8::internal::wasm::WasmDetectedFeatures
Definition
wasm-features.h:87
common-operator.h
compiler-source-position-table.h
instruction-selector.h
result
ZoneVector< RpoNumber > & result
Definition
jump-threading.cc:21
machine-operator.h
v8::internal::compiler::turboshaft
Definition
builtins.h:33
v8::internal::compiler::turboshaft::ExecuteTurboshaftWasmCompilation
wasm::WasmCompilationResult ExecuteTurboshaftWasmCompilation(wasm::CompilationEnv *env, compiler::WasmCompilationData &data, wasm::WasmDetectedFeatures *detected, Counters *counters)
Definition
wasm-turboshaft-compiler.cc:21
v8::internal::wasm::ExecutionTier::kTurbofan
@ kTurbofan
node-origin-table.h
optimized-compilation-info.h
pipeline.h
DCHECK_NULL
#define DCHECK_NULL(val)
Definition
logging.h:491
DCHECK_IMPLIES
#define DCHECK_IMPLIES(v1, v2)
Definition
logging.h:493
DCHECK
#define DCHECK(condition)
Definition
logging.h:482
DCHECK_EQ
#define DCHECK_EQ(v1, v2)
Definition
logging.h:485
v8::internal::compiler::WasmCompilationData
Definition
wasm-compiler.h:115
v8::internal::wasm::CompilationEnv
Definition
compilation-environment.h:51
v8::internal::wasm::WasmCompilationResult
Definition
function-compiler.h:62
turbofan-graph-visualizer.h
wasm-compiler.h
wasm-engine.h
wasm-turboshaft-compiler.h
src
compiler
turboshaft
wasm-turboshaft-compiler.cc
Generated on Sun Apr 6 2025 21:08:53 for v8 by
1.12.0