-
Notifications
You must be signed in to change notification settings - Fork 854
[EH] Fuzz exnref in tables #7289
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
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
354dc5d
work
kripken 1f9eb1c
work
kripken 896c081
fixes
kripken f4b1cb3
work
kripken a105d30
Merge remote-tracking branch 'origin/main' into fuzz.exn.table
kripken 7d43ce7
update
kripken 4cffe61
format
kripken 95140c0
fix indexes
kripken 66f4b1e
add assert
kripken 720aef8
style
kripken 1072db0
table.get only works in functions, not in globals
kripken e7a31dd
Merge remote-tracking branch 'myself/fuzz.exn.table' into fuzz.exn.table
kripken c3a0c4b
Merge remote-tracking branch 'origin/main' into fuzz.exn.table
kripken e1c269a
Merge remote-tracking branch 'origin/main' into fuzz.exn.table
kripken b077cdb
update
kripken ab6d084
Merge remote-tracking branch 'origin/main' into fuzz.exn.table
kripken 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
93 changes: 54 additions & 39 deletions
93
test/passes/translate-to-fuzz_all-features_metrics_noprint.txt
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,46 +1,61 @@ | ||
| Metrics | ||
| total | ||
| [exports] : 13 | ||
| [funcs] : 14 | ||
| [globals] : 4 | ||
| [imports] : 12 | ||
| [exports] : 9 | ||
| [funcs] : 8 | ||
| [globals] : 1 | ||
| [imports] : 11 | ||
| [memories] : 1 | ||
| [memory-data] : 112 | ||
| [table-data] : 2 | ||
| [tables] : 1 | ||
| [table-data] : 0 | ||
| [tables] : 2 | ||
| [tags] : 0 | ||
| [total] : 654 | ||
| [vars] : 15 | ||
| ArrayGet : 1 | ||
| ArrayLen : 1 | ||
| ArrayNew : 6 | ||
| ArrayNewFixed : 11 | ||
| Binary : 74 | ||
| Block : 64 | ||
| Call : 43 | ||
| CallIndirect : 1 | ||
| Const : 170 | ||
| Drop : 7 | ||
| GlobalGet : 38 | ||
| GlobalSet : 32 | ||
| If : 18 | ||
| Load : 17 | ||
| LocalGet : 42 | ||
| LocalSet : 23 | ||
| Loop : 3 | ||
| Nop : 3 | ||
| RefAs : 2 | ||
| RefFunc : 7 | ||
| [total] : 738 | ||
| [vars] : 40 | ||
| ArrayCopy : 1 | ||
| ArrayFill : 1 | ||
| ArrayLen : 3 | ||
| ArrayNew : 5 | ||
| ArrayNewFixed : 1 | ||
| AtomicFence : 2 | ||
| AtomicNotify : 2 | ||
| AtomicRMW : 1 | ||
| Binary : 82 | ||
| Block : 80 | ||
| BrOn : 4 | ||
| Break : 13 | ||
| Call : 29 | ||
| CallRef : 1 | ||
| Const : 134 | ||
| Drop : 15 | ||
| GlobalGet : 26 | ||
| GlobalSet : 26 | ||
| I31Get : 3 | ||
| If : 26 | ||
| Load : 16 | ||
| LocalGet : 85 | ||
| LocalSet : 51 | ||
| Loop : 6 | ||
| MemoryFill : 2 | ||
| Nop : 5 | ||
| Pop : 4 | ||
| RefAs : 10 | ||
| RefEq : 1 | ||
| RefFunc : 2 | ||
| RefI31 : 12 | ||
| RefIsNull : 1 | ||
| RefNull : 7 | ||
| Return : 3 | ||
| Select : 1 | ||
| RefTest : 2 | ||
| Return : 4 | ||
| SIMDExtract : 7 | ||
| Select : 7 | ||
| Store : 1 | ||
| StringConst : 1 | ||
| StringEncode : 1 | ||
| StructNew : 37 | ||
| StructSet : 1 | ||
| Throw : 1 | ||
| TryTable : 2 | ||
| TupleMake : 3 | ||
| Unary : 17 | ||
| Unreachable : 16 | ||
| StringConst : 3 | ||
| StringEncode : 2 | ||
| StringMeasure : 1 | ||
| StructGet : 2 | ||
| StructNew : 2 | ||
| StructSet : 2 | ||
| Try : 6 | ||
| TryTable : 5 | ||
| Unary : 24 | ||
| Unreachable : 13 |
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.
Is it always
HeapType::funchere? Can we assert? (The same formakeTableSet)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.
Good idea, I added asserts.