|
enum | constants {
magic = 0x6D736100
, version = 0x1
, magic_size = sizeof(uint32_t)
, version_size = sizeof(uint32_t)
,
id_size = sizeof(uint8_t)
, varuint32_size = 5
, max_call_depth = 250
, initial_stack_size = 8*1024
,
initial_module_size = 1 * 1024 * 1024
, max_memory = 4ull << 31
, max_useable_memory = (1ull << 32)
, page_size = 64ull * 1024
,
max_pages = (max_useable_memory/page_size)
, magic = 0x6D736100
, version = 0x1
, magic_size = sizeof(uint32_t)
,
version_size = sizeof(uint32_t)
, id_size = sizeof(uint8_t)
, varuint32_size = 5
, max_call_depth = 250
,
initial_stack_size = 8*1024
, initial_module_size = 1 * 1024 * 1024
, max_memory = 4ull << 31
, max_useable_memory = (1ull << 32)
,
page_size = 64ull * 1024
, max_pages = (max_useable_memory/page_size)
} |
|
enum | opcodes |
|
enum | imm_types {
none
, block_imm
, varuint32_imm
, br_table_imm
,
none
, block_imm
, varuint32_imm
, br_table_imm
} |
|
enum class | max_func_local_bytes_flags_t {
params = 1
, locals = 2
, stack = 4
, params = 1
,
locals = 2
, stack = 4
} |
|
enum | section_id {
custom_section = 0
, type_section = 1
, import_section = 2
, function_section = 3
,
table_section = 4
, memory_section = 5
, global_section = 6
, export_section = 7
,
start_section = 8
, element_section = 9
, code_section = 10
, data_section = 11
,
num_of_elems
, custom_section = 0
, type_section = 1
, import_section = 2
,
function_section = 3
, table_section = 4
, memory_section = 5
, global_section = 6
,
export_section = 7
, start_section = 8
, element_section = 9
, code_section = 10
,
data_section = 11
, num_of_elems
} |
|
enum | types {
i32 = 0x7f
, i64 = 0x7e
, f32 = 0x7d
, f64 = 0x7c
,
anyfunc = 0x70
, func = 0x60
, pseudo = 0x40
, ret_void
,
i32 = 0x7f
, i64 = 0x7e
, f32 = 0x7d
, f64 = 0x7c
,
anyfunc = 0x70
, func = 0x60
, pseudo = 0x40
, ret_void
} |
|
enum | external_kind {
Function = 0
, Table = 1
, Memory = 2
, Global = 3
,
Function = 0
, Table = 1
, Memory = 2
, Global = 3
} |
|
enum | constants {
magic = 0x6D736100
, version = 0x1
, magic_size = sizeof(uint32_t)
, version_size = sizeof(uint32_t)
,
id_size = sizeof(uint8_t)
, varuint32_size = 5
, max_call_depth = 250
, initial_stack_size = 8*1024
,
initial_module_size = 1 * 1024 * 1024
, max_memory = 4ull << 31
, max_useable_memory = (1ull << 32)
, page_size = 64ull * 1024
,
max_pages = (max_useable_memory/page_size)
, magic = 0x6D736100
, version = 0x1
, magic_size = sizeof(uint32_t)
,
version_size = sizeof(uint32_t)
, id_size = sizeof(uint8_t)
, varuint32_size = 5
, max_call_depth = 250
,
initial_stack_size = 8*1024
, initial_module_size = 1 * 1024 * 1024
, max_memory = 4ull << 31
, max_useable_memory = (1ull << 32)
,
page_size = 64ull * 1024
, max_pages = (max_useable_memory/page_size)
} |
|
enum | opcodes |
|
enum | imm_types {
none
, block_imm
, varuint32_imm
, br_table_imm
,
none
, block_imm
, varuint32_imm
, br_table_imm
} |
|
enum class | max_func_local_bytes_flags_t {
params = 1
, locals = 2
, stack = 4
, params = 1
,
locals = 2
, stack = 4
} |
|
enum | section_id {
custom_section = 0
, type_section = 1
, import_section = 2
, function_section = 3
,
table_section = 4
, memory_section = 5
, global_section = 6
, export_section = 7
,
start_section = 8
, element_section = 9
, code_section = 10
, data_section = 11
,
num_of_elems
, custom_section = 0
, type_section = 1
, import_section = 2
,
function_section = 3
, table_section = 4
, memory_section = 5
, global_section = 6
,
export_section = 7
, start_section = 8
, element_section = 9
, code_section = 10
,
data_section = 11
, num_of_elems
} |
|
enum | types {
i32 = 0x7f
, i64 = 0x7e
, f32 = 0x7d
, f64 = 0x7c
,
anyfunc = 0x70
, func = 0x60
, pseudo = 0x40
, ret_void
,
i32 = 0x7f
, i64 = 0x7e
, f32 = 0x7d
, f64 = 0x7c
,
anyfunc = 0x70
, func = 0x60
, pseudo = 0x40
, ret_void
} |
|
enum | external_kind {
Function = 0
, Table = 1
, Memory = 2
, Global = 3
,
Function = 0
, Table = 1
, Memory = 2
, Global = 3
} |
|
|
template<typename F > |
constexpr bool | is_callable (F &&fn) |
|
template<typename R , typename... Args> |
constexpr bool | is_function (R(*)(Args...)) |
|
template<typename F > |
constexpr bool | is_function (F &&) |
|
template<typename R , typename Cls , typename... Args> |
constexpr bool | is_member_function (R(Cls::*)(Args...)) |
|
template<typename R , typename Cls , typename... Args> |
constexpr bool | is_member_function (R(Cls::*)(Args...)&) |
|
template<typename R , typename Cls , typename... Args> |
constexpr bool | is_member_function (R(Cls::*)(Args...)&&) |
|
template<typename R , typename Cls , typename... Args> |
constexpr bool | is_member_function (R(Cls::*)(Args...) const &) |
|
template<typename R , typename Cls , typename... Args> |
constexpr bool | is_member_function (R(Cls::*)(Args...) const &&) |
|
template<typename F > |
constexpr bool | is_member_function (F &&) |
|
template<typename F > |
constexpr bool | is_class (F &&) |
|
template<typename F > |
constexpr auto | return_type (F &&fn) -> std::tuple_element_t< 0, detail::get_types_t< false, F > > |
|
template<typename F > |
constexpr auto | class_from_member (F &&fn) -> std::tuple_element_t< 1, detail::get_types_t< false, F > > |
|
template<typename F > |
constexpr auto | flatten_parameters (F &&fn) -> std::tuple_element_t< 2, detail::get_types_t< false, F > > |
|
template<typename F > |
constexpr auto | decayed_flatten_parameters (F &&fn) -> std::tuple_element_t< 2, detail::get_types_t< true, F > > |
|
template<std::size_t N, typename F > |
constexpr auto | parameter_at (F &&fn) -> std::tuple_element_t< N, decltype(flatten_parameters(std::declval< F >()))> |
|
template<std::size_t N, typename F > |
constexpr auto | parameters_from (F &&fn) -> detail::parameters_from_impl_t< N, F > |
|
template<bool Once, typename T , typename F , typename... Args> |
void | invoke_on (F &&func, const Args &... args) |
|
template<auto F, typename Preconditions , typename Type_Converter , typename Host , typename... Args> |
decltype(auto) | invoke_impl (Type_Converter &tc, Host *host, Args &&... args) |
|
template<auto F, typename Preconditions , typename Host , typename Args , typename Type_Converter , std::size_t... Is> |
decltype(auto) | invoke_with_host_impl (Type_Converter &tc, Host *host, Args &&args, std::index_sequence< Is... >) |
|
template<auto F, typename Preconditions , typename Args , typename Type_Converter , typename Host , std::size_t... Is> |
decltype(auto) | invoke_with_host (Type_Converter &tc, Host *host, std::index_sequence< Is... >) |
|
template<typename Type_Converter , typename T > |
void | maybe_push_result (Type_Converter &tc, T &&res, std::size_t trim_amt) |
|
template<typename Cls , auto F, typename Preconditions , typename R , typename Args , typename Type_Converter , size_t... Is> |
auto | create_function (std::index_sequence< Is... >) |
|
template<typename T > |
auto | to_wasm_type () |
|
template<> |
constexpr auto | to_wasm_type< i32_const_t > () |
|
template<> |
constexpr auto | to_wasm_type< i64_const_t > () |
|
template<> |
constexpr auto | to_wasm_type< f32_const_t > () |
|
template<> |
constexpr auto | to_wasm_type< f64_const_t > () |
|
bool | operator== (const host_function &lhs, const func_type &rhs) |
|
bool | operator== (const func_type &lhs, const host_function &rhs) |
|
template<typename TC , typename Args , std::size_t... Is> |
void | get_args (value_type *&out, std::index_sequence< Is... >) |
|
template<typename Type_Converter , typename T > |
void | get_args (value_type *&out) |
|
template<size_t N> |
size_t constexpr | bytes_needed () |
|
constexpr max_func_local_bytes_flags_t | operator| (max_func_local_bytes_flags_t lhs, max_func_local_bytes_flags_t rhs) |
|
constexpr max_func_local_bytes_flags_t | operator& (max_func_local_bytes_flags_t lhs, max_func_local_bytes_flags_t rhs) |
|
void | profile_handler (int sig, siginfo_t *info, void *) |
|
void | register_profile_signal_handler_impl () |
|
void | register_profile_signal_handler () |
|
void | set_profile_interval_us (uint32_t value) |
|
void | signal_handler (int sig, siginfo_t *info, void *uap) |
|
template<typename F > |
void | longjmp_on_exception (F &&f) |
|
template<typename E > |
void | throw_ (const char *msg) |
|
void | setup_signal_handler_impl () |
|
void | setup_signal_handler () |
|
template<typename F , typename E > |
auto | invoke_with_signal_handler (F &&f, E &&e) |
|
bool | operator== (const func_type &lhs, const func_type &rhs) |
|
std::vector< uint8_t > | read_wasm (const std::string &fname) |
|
template<typename StackElem > |
void | print_result (const std::optional< StackElem > &result) |
|
template<class... Ts> |
| overloaded (Ts...) -> overloaded< Ts... > |
|
template<typename... T> |
void | ignore_unused_variable_warning (T &...) |
|
template<class Visitor , typename Variant > |
constexpr auto | visit (Visitor &&vis, Variant &&var) |
|
template<typename T > |
std::string | vector_to_string (T &&vec) |
|
template<> |
constexpr auto | to_wasm_type< i32_const_t > () |
|
template<> |
constexpr auto | to_wasm_type< i64_const_t > () |
|
template<> |
constexpr auto | to_wasm_type< f32_const_t > () |
|
template<> |
constexpr auto | to_wasm_type< f64_const_t > () |
|
template<typename T , std::size_t Extent> |
bool | operator== (const span< T, Extent > &lhs, const span< T, Extent > &rhs) |
|