зеркало из https://github.com/mozilla/gecko-dev.git
20e9dd7d5c
This patch adds an initial implementation, along with test cases, for the memory.fill and memory.copy instructions that form part of the bulk-memory-operations proposal at https://github.com/WebAssembly/bulk-memory-operations/blob/master/proposals/bulk-memory-operations/Overview.md. This covers code generation for the baseline and optimising compilers, as well as supporting infrastructure for conversion to/from binary and text representations. The implementation is simple in the sense that -- for both compilers -- it is done by a call to a helper function, which eventually devolves to a call to memset/memmove respectively. Per subsequent clarification requests: * https://github.com/WebAssembly/bulk-memory-operations/issues/8 The arguments to these instructions are all interpreted as unsigned 32 bit ints. * https://github.com/WebAssembly/bulk-memory-operations/issues/11 Zero length fills/copies that have starting point offsets out of bounds trap rather than are treated as no-ops. --HG-- extra : rebase_source : 79c74cbe467905f03b796428ee80b643c105ca72 |
||
---|---|---|
.. | ||
ductwork/debugger | ||
examples | ||
ipc | ||
public | ||
rust | ||
src | ||
xpconnect | ||
app.mozbuild | ||
ffi.configure | ||
moz.build | ||
moz.configure |