-
Notifications
You must be signed in to change notification settings - Fork 346
Use u64 to track file offsets instead of usize #2573
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
alexcrichton
merged 22 commits into
bytecodealliance:main
from
WorldSEnder:u64-position
Aug 12, 2026
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
2a6f9db
use u64 internally to track file offsets
WorldSEnder 22c59c1
inline LogicalOffset as per review comment
WorldSEnder 5cf4607
self-review to simplify logic slightly
WorldSEnder e8fe38c
convert wasmprinter and wasm-encoder
WorldSEnder 77ab11e
convert wasm-metadata, wasm-mutate, wast (tests)
WorldSEnder af69edf
fix msrv issue
WorldSEnder 018d1e9
convert wasm-tools bins and fuzz
WorldSEnder 2391907
fix some lints and self-review
WorldSEnder 8c251e0
fix clippy lints and adjust test on error message
WorldSEnder e0533e0
remove and inline MemOffset structure by review
WorldSEnder b210630
Merge remote-tracking branch 'upstream/main' into u64-position
WorldSEnder 3560f20
remove InMemData from two uses
WorldSEnder e5cea77
move range conversion into an OffsetCoverter struct
WorldSEnder edaf1b2
remove OffsetConverter from parse_all
WorldSEnder c1a38d0
remove references to OffsetConverter::from_start(0)
WorldSEnder 958f85d
oops missed one due to not building wit-dylib locally
WorldSEnder 5764b12
convert wasm-tools to as-casts
WorldSEnder 9df8023
remove ConvertOffset
WorldSEnder 21390de
minify the diff by reverting some unrelated changes
WorldSEnder daced2a
two more stylistic changes for diff optimization
WorldSEnder d8ce95c
fix clippy warnings
WorldSEnder a40526a
do not silently truncate data input
WorldSEnder File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could instead pass the parser offset down into
parse_component. I would like your guidance on this, as it's not clear which part is public API and where we assume "correct" data.