Catatan rilis ditulis dalam bahasa Inggris.
WebAssembly now runs real compiled modules, not just toy ones
The WebAssembly engine that landed last release ran hand-written modules. Real modules - anything a Rust, C or C++ toolchain emits - lean on three things it did not yet have: indirect calls through a function table (how compiled code does function pointers, virtual methods and closures), bulk memory operations (the fast memory copy and fill the compiler reaches for constantly), and saturating float-to-integer conversions (LLVM's default, which clamp instead of trapping). This release adds all three, so the engine now runs the kind of WebAssembly the web actually ships. Each is proven against the reference runtime's WebAssembly on a fixture built and run there: a dispatch table that routes to add, subtract or multiply through call_indirect, and a module that fills and copies linear memory and does a saturating truncation, both byte-identical here. Web APIs moves 52 to 54 and overall 53 to 54.
Apa yang berubah
3 perubahan- JavaScript dan JITcall_indirect + function tables (wasm/decode.rs element section, wasm/exec.rs): the element section fills a function table, and call_indirect pops a table slot, resolves the function, checks its declared type matches the call site, and calls it - the mechanism compiled code uses for function pointers and virtual dispatch.
- Memori dan membacaThe 0xfc opcode family (wasm/exec.rs): saturating truncation i32/i64.trunc_sat_f32/f64_s/u (clamp NaN to 0 and out-of-range to the type bounds, LLVM's default) and bulk memory memory.copy / memory.fill, all bounds-checked. These are emitted by ordinary Rust/C++ builds, so their absence alone failed most real modules.
- Memori dan membacaProven against the reference JavaScript runtime: a call_indirect dispatch table (dispatch(0,7,3)=10, (1,7,3)=4, (2,7,3)=21) and a bulk-memory + trunc_sat module both decode and run byte-identically to the reference runtime's WebAssembly. Whole conformance suite unchanged.





