Conversation
|
Warning Review limit reached
Next review available in: 34 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe wasm host enables Wasmi’s ChangesWasm host SIMD support
Estimated code review effort: 1 (Trivial) | ~5 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
new WebAssembly.Module(bytes)rejects most real-world wasm binaries at load time withunexpected SIMD opcode: 0xfd.The wasm SIMD proposal (128-bit vector instructions, all prefixed with the
0xfdopcode byte) has been a standard part of WebAssembly since 2021, and mainstream toolchains emit it by default — Rust'swasm32-unknown-unknowntarget under wasm-bindgen builds with+simd128on, and Emscripten and AssemblyScript ship SIMD-enabled presets. A wasm engine with SIMD support compiled out therefore fails not on exotic payloads but on the typical output of today's toolchains, e.g. a wasm-bindgen module built with+simd128.Root cause
crates/perry-wasm-host/Cargo.toml:19pulls wasmi withdefault-features = falseto keep binary size down (the comment documents a measured ~1.1 MB delta from the std-only string-interner extras). But wasmi's default feature set is also what carriessimd— so the size optimization silently dropped SIMD decoding, and the interpreter's validator bails at the first0xfd-prefixed instruction.The fix re-enables exactly the one feature:
wasmi = { version = "1.1", default-features = false, features = ["simd"] }. The string-interner extras the size note targets stay off.Test plan
Verified end-to-end against a wasm-bindgen module built with
+simd128: loads and instantiates where it previously threw atnew WebAssembly.Module.Found while compiling a manifest generation CLI — a real-world TypeScript CLI with a deep pnpm dependency graph. Independent of the other fixes from that effort; lands standalone.
Summary by CodeRabbit