summaryrefslogtreecommitdiff
path: root/src/ast.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ast.h')
-rw-r--r--src/ast.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ast.h b/src/ast.h
index db1b21a9..27844d66 100644
--- a/src/ast.h
+++ b/src/ast.h
@@ -330,6 +330,9 @@ typedef enum WasmCommandType {
WASM_COMMAND_TYPE_REGISTER,
WASM_COMMAND_TYPE_ASSERT_MALFORMED,
WASM_COMMAND_TYPE_ASSERT_INVALID,
+ /* This is a module that is invalid, but cannot be written as a binary module
+ * (e.g. it has unresolvable names.) */
+ WASM_COMMAND_TYPE_ASSERT_INVALID_NON_BINARY,
WASM_COMMAND_TYPE_ASSERT_UNLINKABLE,
WASM_COMMAND_TYPE_ASSERT_UNINSTANTIABLE,
WASM_COMMAND_TYPE_ASSERT_RETURN,
@@ -505,6 +508,13 @@ void wasm_make_type_binding_reverse_mapping(
const WasmBindingHash*,
WasmStringSliceVector* out_reverse_mapping);
+typedef void (*WasmDuplicateBindingCallback)(WasmBindingHashEntry* a,
+ WasmBindingHashEntry* b,
+ void* user_data);
+void wasm_find_duplicate_bindings(const WasmBindingHash*,
+ WasmDuplicateBindingCallback callback,
+ void* user_data);
+
static WASM_INLINE WasmBool
wasm_decl_has_func_type(const WasmFuncDeclaration* decl) {
return (WasmBool)((decl->flags & WASM_FUNC_DECLARATION_FLAG_HAS_FUNC_TYPE) !=