Displaying 2 results from an estimated 2 matches for "wasm_limits_flag_has_max".
2018 Jun 01
2
[WebAssembly] lld dynamic loader
...nd dynamic
loader/inker at run-time: by adding some exported functions coming from
another modules in the table, so call_indirect can call dynamically some
function coming from another wasm module.
So I am wondering if the static size of the table have a specific goal ?
If not did you think the WASM_LIMITS_FLAG_HAS_MAX can be remove ?
https://llvm.org/svn/llvm-project/lld/trunk/wasm/Writer.cpp
void Writer::createTableSection() {
..
WasmLimits Limits = {WASM_LIMITS_FLAG_HAS_MAX, TableSize, TableSize};
Thks in advance,
Ghis
-------------- next part --------------
An HTML attachment was scrubbed...
URL:...
2018 Jun 15
2
[WebAssembly] lld dynamic loader
...er.cpp
===================================================================
--- wasm/Writer.cpp (revision 330555)
+++ wasm/Writer.cpp (working copy)
@@ -257,7 +257,7 @@
raw_ostream &OS = Section->getStream();
writeUleb128(OS, 1, "table count");
- WasmLimits Limits = {WASM_LIMITS_FLAG_HAS_MAX, TableSize, TableSize};
+ WasmLimits Limits = {0, TableSize, TableSize};
writeTableType(OS, WasmTable{WASM_TYPE_ANYFUNC, Limits});
}
May be to have a code more readable WASM_LIMITS_FLAG_HAS_NO_MAX (=0) can
be added.
Thks,
Ghis
2018-06-03 23:45 GMT+02:00 Sam Clegg <sbc at google.com>...