v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
wasm-revec-phase.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
6
11
13
14void WasmRevecPhase::Run(PipelineData* data, Zone* temp_zone) {
15 WasmRevecAnalyzer analyzer(data, temp_zone, data->graph());
16
17 if (analyzer.ShouldReduce()) {
18 data->set_wasm_revec_analyzer(&analyzer);
19 UnparkedScopeIfNeeded scope(data->broker(),
20 v8_flags.turboshaft_trace_reduction);
23 WasmRevecVerifier* revec_observer_for_test =
24 isolate ? isolate->wasm_revec_verifier_for_test() : nullptr;
25 if (revec_observer_for_test) {
26 revec_observer_for_test->Verify(data->graph());
27 }
28 data->clear_wasm_revec_analyzer();
29 }
30}
31
32} // namespace v8::internal::compiler::turboshaft
static Isolate * TryGetCurrent()
Definition api.cc:9954
static void Run(PipelineData *data, Zone *phase_zone)
V8_EXPORT_PRIVATE FlagValues v8_flags
void Run(PipelineData *data, Zone *temp_zone)