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
8namespace v8::internal {
9class Zone;
10}
12class 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.
22
23} // namespace v8::internal::compiler::turboshaft
24
25#endif // V8_COMPILER_TURBOSHAFT_DECOMPRESSION_OPTIMIZATION_H_
friend Zone
Definition asm-types.cc:195
void RunDecompressionOptimization(Graph &graph, Zone *phase_zone)