-
Notifications
You must be signed in to change notification settings - Fork 854
[Outlining] Add TryTable #7504
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
[Outlining] Add TryTable #7504
Changes from 18 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
cd5e180
logging
ashleynh c8a88d8
printHash
ashleynh 7c61aac
lint
ashleynh bc3263f
macro fun
ashleynh 5da94c6
lint
ashleynh 5959daf
readability
ashleynh 3114c9f
readability
ashleynh a12d5d9
try_catch outlining
ashleynh c3bd019
ptal
ashleynh 3116b6a
Merge branch 'main' into outlining_try
ashleynh ec393a8
does you work
ashleynh 3e38f1d
try_table
ashleynh 82ce8af
added a test
ashleynh 45f2a99
filter try_table
ashleynh b74efa7
fail tests or no
ashleynh bec7e4b
working
ashleynh f0ebaf5
Merge branch 'main' into outlining_try
ashleynh eeab8c3
Merge branch 'outlining_try' into try_table
ashleynh a1500b3
ODBG macro
ashleynh f96db0a
adds a test
ashleynh 8d9deb1
comments
ashleynh 841b1cc
Merge branch 'main' into outlining_try
ashleynh afbb2b9
Merge branch 'outlining_try' into try_table
ashleynh 19c8e58
ran update
ashleynh 600fa59
feedback
ashleynh 756ddd9
Merge branch 'main' into outlining_try
ashleynh 4789c3a
Merge branch 'outlining_try' into try_table
ashleynh c105e8e
Merge branch 'main' into try_table
ashleynh 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1164,3 +1164,35 @@ | |
| ) | ||
| ) | ||
| ) | ||
|
|
||
| ;; Tests TryTable instructions are correctly filtered from being outlined. | ||
| ;; The (drop (i32.const 0)) instructions were added to form an outlineable | ||
| ;; sequence with the block that contains the try_table. | ||
| (module | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like we need to run the test update script to get the output here.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. oops, fixed, thanks |
||
| (type $0 (func)) | ||
| (tag $tag$0 (type $0)) | ||
| (func $a (result (ref exn)) | ||
| (loop $label1 (result (ref exn)) | ||
| (drop | ||
| (i32.const 0) | ||
| ) | ||
| (block (result (ref exn)) | ||
| (try_table (catch_all $label1) | ||
| (throw $tag$0) | ||
| ) | ||
| ) | ||
| ) | ||
| ) | ||
| (func $b (result (ref exn)) | ||
| (loop $label1 (result (ref exn)) | ||
| (drop | ||
| (i32.const 0) | ||
| ) | ||
| (block (result (ref exn)) | ||
| (try_table (catch_all $label1) | ||
| (throw $tag$0) | ||
| ) | ||
| ) | ||
| ) | ||
| ) | ||
| ) | ||
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.
@aheejin, separately from this PR, I think it would make sense for
Properties::isBranch()to betrueforTryTableexpressions. Is that something you've thought about?