From 62e9f5d881e2d7e7f9f5da845ed2dbc176bc0bc5 Mon Sep 17 00:00:00 2001 From: jgravelle-google Date: Fri, 10 Mar 2017 13:10:17 -0800 Subject: Wasm h to cpp (#926) * Move WasmType function implementations to wasm.cpp * Move Literal methods to wasm.cpp * Reorder wasm.cpp shared constants back to top * Move expression functions to wasm.cpp * Finish moving things to wasm.cpp * Split out Literal into its own .h/.cpp. Also factor out common wasm-type module * Remove unneeded/transitive includes from wasm.h * Add comment to try/check methods * Rename tryX/checkX methods to getXOrNull * Add missing include that should fix appveyor build breakage * More appveyor --- src/shell-interface.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/shell-interface.h') diff --git a/src/shell-interface.h b/src/shell-interface.h index 26e0c1742..3fb2da2b0 100644 --- a/src/shell-interface.h +++ b/src/shell-interface.h @@ -148,7 +148,7 @@ struct ShellExternalInterface : ModuleInstance::ExternalInterface { Literal callTable(Index index, LiteralList& arguments, WasmType result, ModuleInstance& instance) override { if (index >= table.size()) trap("callTable overflow"); - auto* func = instance.wasm.checkFunction(table[index]); + auto* func = instance.wasm.getFunctionOrNull(table[index]); if (!func) trap("uninitialized table element"); if (func->params.size() != arguments.size()) trap("callIndirect: bad # of arguments"); for (size_t i = 0; i < func->params.size(); i++) { -- cgit v1.2.3