v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
wasm-simd-phase.cc
Go to the documentation of this file.
1
// Copyright 2025 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-simd-phase.h
"
6
7
#include "
src/compiler/turboshaft/copying-phase.h
"
8
#include "
src/compiler/turboshaft/wasm-shuffle-reducer.h
"
9
10
namespace
v8::internal::compiler::turboshaft
{
11
12
void
WasmSimdPhase::Run
(
PipelineData
* data,
Zone
* temp_zone) {
13
WasmShuffleAnalyzer
analyzer(temp_zone, data->graph());
14
15
if
(analyzer.
ShouldReduce
()) {
16
data->set_wasm_shuffle_analyzer(&analyzer);
17
CopyingPhase<WasmShuffleReducer>::Run
(data, temp_zone);
18
data->clear_wasm_shuffle_analyzer();
19
}
20
}
21
22
}
// namespace v8::internal::compiler::turboshaft
v8::internal::Zone
Definition
zone.h:43
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
v8::internal::compiler::turboshaft::WasmShuffleAnalyzer
Definition
wasm-shuffle-reducer.h:76
v8::internal::compiler::turboshaft::WasmShuffleAnalyzer::ShouldReduce
bool ShouldReduce() const
Definition
wasm-shuffle-reducer.h:112
copying-phase.h
v8::internal::compiler::turboshaft
Definition
builtins.h:33
v8::internal::compiler::turboshaft::WasmSimdPhase::Run
void Run(PipelineData *data, Zone *temp_zone)
Definition
wasm-simd-phase.cc:12
wasm-shuffle-reducer.h
wasm-simd-phase.h
src
compiler
turboshaft
wasm-simd-phase.cc
Generated on Sun Apr 6 2025 21:08:53 for v8 by
1.12.0