#include <wasm_sysio_validation.hpp>
Definition at line 38 of file wasm_sysio_validation.hpp.
◆ validate()
void sysio::chain::wasm_validations::maximum_function_stack_visitor::validate |
( |
const IR::Module & | m | ) |
|
|
static |
Definition at line 62 of file wasm_sysio_validation.cpp.
62 {
63 for(
const FunctionDef& func : m.
functions.defs) {
64 unsigned function_stack_usage = 0;
69
71 FC_THROW_EXCEPTION(wasm_execution_error,
"Smart contract function has more than ${k} bytes of stack usage",
73 }
74}
#define FC_THROW_EXCEPTION(EXCEPTION, FORMAT,...)
U8 getTypeBitWidth(ValueType type)
constexpr unsigned maximum_func_local_bytes
IndexSpace< FunctionDef, IndexedFunctionType > functions
std::vector< const FunctionType * > types
account_query_db::get_accounts_by_authorizers_params params
The documentation for this struct was generated from the following files: