// Copyright 2024 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef V8_WASM_WASM_DEOPT_DATA_H_ #define V8_WASM_WASM_DEOPT_DATA_H_ #if !V8_ENABLE_WEBASSEMBLY #error This header should only be included if WebAssembly is enabled. #endif // !V8_ENABLE_WEBASSEMBLY #include "src/base/memory.h" #include "src/utils/utils.h" #include "src/wasm/baseline/liftoff-varstate.h" #include "src/zone/zone-containers.h" namespace v8::internal { class DeoptimizationLiteral; } namespace v8::internal::wasm { // The "header" of the full deopt data for an optimized wasm function containing // overall counts used to access the unerlying translated values, literals etc. struct WasmDeoptData { … }; struct WasmDeoptEntry { … }; // A view to access the deopt data stored in the WasmCode's metadata as raw // bytes. class WasmDeoptView { … }; class WasmDeoptDataProcessor { … }; // All the information needed by the deoptimizer to know what the Liftoff frame // has to look like. struct LiftoffFrameDescriptionForDeopt { … }; } // namespace v8::internal::wasm #endif // V8_WASM_WASM_DEOPT_DATA_H_