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

Specify the immediate parameters of table.copy #117

@gahaas

Description

@gahaas

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.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions