// Copyright 2019 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. #if !V8_ENABLE_WEBASSEMBLY #error This header should only be included if WebAssembly is enabled. #endif // !V8_ENABLE_WEBASSEMBLY #ifndef V8_WASM_WASM_ARGUMENTS_H_ #define V8_WASM_WASM_ARGUMENTS_H_ #include <stdint.h> #include <vector> #include "src/base/memory.h" #include "src/codegen/signature.h" #include "src/common/globals.h" #include "src/wasm/value-type.h" namespace v8 { namespace internal { namespace wasm { // Helper class for {Push}ing Wasm value arguments onto the stack in the format // that the CWasmEntryStub expects, as well as for {Pop}ping return values. // {Reset} must be called if a packer instance used for pushing is then // reused for popping: it resets the internal pointer to the beginning of // the stack region. class CWasmArgumentsPacker { … }; } // namespace wasm } // namespace internal } // namespace v8 #endif // V8_WASM_WASM_ARGUMENTS_H_