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.cc
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
#include "
src/compiler/turboshaft/wasm-in-js-inlining-phase.h
"
6
7
#include "
src/compiler/turboshaft/copying-phase.h
"
8
#include "
src/compiler/turboshaft/phase.h
"
9
#include "
src/compiler/turboshaft/wasm-in-js-inlining-reducer-inl.h
"
10
#include "
src/compiler/turboshaft/wasm-lowering-reducer.h
"
11
12
namespace
v8::internal::compiler::turboshaft
{
13
14
void
WasmInJSInliningPhase::Run
(
PipelineData
* data,
Zone
* temp_zone) {
15
UnparkedScopeIfNeeded
scope(data->broker(),
DEBUG_BOOL
);
16
17
// We need the `WasmLoweringReducer` for lowering, e.g., `global.get` etc.
18
// TODO(dlehmann,353475584): Add Wasm GC (typed) optimizations also, see
19
// `WasmGCTypedOptimizationReducer`.
20
// This might need a separate phase due to the analysis in the input graph,
21
// which is expensive, which is why we should enable this only conditionally.
22
CopyingPhase<WasmInJSInliningReducer, WasmLoweringReducer>::Run
(data,
23
temp_zone);
24
}
25
26
}
// namespace v8::internal::compiler::turboshaft
v8::internal::Zone
Definition
zone.h:43
v8::internal::compiler::UnparkedScopeIfNeeded
Definition
js-heap-broker.h:548
v8::internal::compiler::turboshaft::CopyingPhase::Run
static void Run(PipelineData *data, Zone *phase_zone)
Definition
copying-phase.h:1067
v8::internal::compiler::turboshaft::PipelineData
Definition
phase.h:177
DEBUG_BOOL
#define DEBUG_BOOL
Definition
globals.h:87
copying-phase.h
v8::internal::compiler::turboshaft
Definition
builtins.h:33
v8::internal::compiler::turboshaft::WasmInJSInliningPhase::Run
void Run(PipelineData *data, Zone *temp_zone)
Definition
wasm-in-js-inlining-phase.cc:14
phase.h
wasm-in-js-inlining-phase.h
wasm-in-js-inlining-reducer-inl.h
wasm-lowering-reducer.h
src
compiler
turboshaft
wasm-in-js-inlining-phase.cc
Generated on Sun Apr 6 2025 21:08:53 for v8 by
1.12.0