v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
decompression-optimization.h
Go to the documentation of this file.
1
// Copyright 2022 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_DECOMPRESSION_OPTIMIZATION_H_
6
#define V8_COMPILER_TURBOSHAFT_DECOMPRESSION_OPTIMIZATION_H_
7
8
namespace
v8::internal
{
9
class
Zone
;
10
}
11
namespace
v8::internal::compiler::turboshaft
{
12
class
Graph;
13
14
// The purpose of decompression optimization is to avoid unnecessary pointer
15
// decompression operations. If a compressed value loaded from the heap is only
16
// used as a Smi or to store it back into the heap, then there is no need to add
17
// the root pointer to make it dereferencable. By performing this optimization
18
// late in the pipeline, all the preceding phases can safely assume that
19
// everything is decompressed and do not need to worry about the distinction
20
// between compressed and uncompressed pointers.
21
void
RunDecompressionOptimization
(Graph& graph,
Zone
*
phase_zone
);
22
23
}
// namespace v8::internal::compiler::turboshaft
24
25
#endif
// V8_COMPILER_TURBOSHAFT_DECOMPRESSION_OPTIMIZATION_H_
phase_zone
Zone * phase_zone
Definition
add-type-assertions-reducer.cc:18
Zone
friend Zone
Definition
asm-types.cc:195
v8::internal::compiler::turboshaft
Definition
builtins.h:33
v8::internal::compiler::turboshaft::RunDecompressionOptimization
void RunDecompressionOptimization(Graph &graph, Zone *phase_zone)
Definition
decompression-optimization.cc:211
v8::internal
Definition
api-arguments-inl.h:20
src
compiler
turboshaft
decompression-optimization.h
Generated on Sun Apr 6 2025 21:08:52 for v8 by
1.12.0