Closed Bug 1532927 Opened 6 years ago Closed 6 years ago

Multi-byte opcodes are not actually byte + byte but byte + leb128

Categories

(Core :: JavaScript: WebAssembly, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla67
Tracking Status
firefox67 --- fixed

People

(Reporter: lth, Assigned: lth)

References

Details

Attachments

(1 file)

I believe this reached consensus a long time ago but it's not been an issue until SIMD: for a prefixed operation, the secondary opcode is not a byte but a leb128, yet we read it as a byte. This must change.

Changes to decoding, dispatch, and encoding to handle a uint32_t representation
for the secondary opcode.

Also a drive-by fix to remove an orphaned enum in WasmTypes.h

Pushed by shindli@mozilla.com: https://hg.mozilla.org/mozilla-central/rev/9cd8b6db0567 Secondary wasm opcodes are not bytes. r=luke
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla67
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: