Repository navigation
Conversation
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. Thanks for integrating Codecov - We've got you covered ☂️ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
go_asm.hoffsets, linear-memory SP/FP frames, CTXT and register globals, caller PC/resume dispatch,CALLNORESUME, andRETUNWINDinternal/bytealg,internal/chacha8rand,internal/runtime/atomic, and runtime wasm assembly without source patchesWebAssembly scope
The zero-value/direct mode preserves plan9asm's existing LLVM/C-compatible wasm calling convention. The explicit Go ABI mode models the official
GOARCH=wasmassembly contract used byGOOS=jsandGOOS=wasip1; Emscripten ABI/profile selection remains owned by LLGo.The Go ABI mode covers both the Go 1.20 write-barrier/import shape and the Go 1.21+ native helper shape. It emits LLVM modules for all selected official standard-library wasm assembly files, including generated struct offsets such as
gobuf_g.The execution fixtures translate real GOROOT
internal/bytealg,internal/runtime/atomic, and runtime assembly, compile the generated LLVM IR withllc, link withwasm-ld, and run the module with Node. Whole-runtime corpus validation proves translation and LLVM object generation; LLGo R1 integration additionally proves these packages compile and run without their former source patches under Emscripten wasm32 and Memory64.Validation
go test ./...go test -race ./...go.work, then again through the pinned pseudo-version: all target profiles build, andllgo testpasses under Emscripten wasm32 and Memory64js/wasmofficial standard-library corpus: 24 asm files, 18 LLVM modulesjs/wasmandwasip1/wasmofficial standard-library corpora: no unsupported forms or parse failures; every generated module accepted byllc