primstar-cool

Results 3 issues of primstar-cool

``` BinaryenAddFunctionImport(module, internalName, "env", "externalBaseName", params, result); BinaryenFunctionRef func = BinaryenGetFunction(module, ret); func->setExplicitName(internalName); ``` i think add and Get , It's a bit wasteful. why not return BinaryenFunctionRef on BinaryenAddFunctionImport?...

+ add step OnSkipFunctionBodyExpr when read with skip_function_bodies + add virtual op code OpCodeRaw, when read with skip_function_bodies, the virtual struct will save byte code in a uint8 array, and...

wabt::ReadBinaryOptions options; options.skip_function_bodies = true; wabt::Result errorCode = wabt::ReadBinaryIr("", wasmData, fileSize, options, &errors, &module); will got an assert at function [Result BinaryReaderIR::EndFunctionBody(Index index)] of file [binary-reader-ir.cc] the reason is: PushLabel...