This repository was archived by the owner on Nov 3, 2021. It is now read-only.

Description
At the moment this proposal does not specify the semantics of the immediate operands the table.copy instruction, especially which of the two parameters is destination, and which one is source.
Unfortunately there are already contradicting implementations in Firefox/LLVM/V8/WAVM, so we should close this gap in the Spec quickly.
In V8 I implemented table-copy as table.copy dst src, i.e. destination before source, because this matches the C++ memcpy(dst, src, count) signature. According to my reading of the spec, also non-immediate parameters of table.copy are interpreted destination before source.
However Java's arraycopy function does it different though, source before destination.