Skip to content

[EH] Remove unwind - #1682

Merged
aheejin merged 2 commits into
WebAssembly:mainfrom
aheejin:remove_unwind
Jun 29, 2021
Merged

aheejin merged 2 commits into
WebAssembly:mainfrom
aheejin:remove_unwind

Conversation

@aheejin

@aheejin aheejin commented Jun 26, 2021

Copy link
Copy Markdown
Member

unwind was removed. See WebAssembly/exception-handling#156.

@aheejin
aheejin requested a review from takikawa June 26, 2021 10:13
@aheejin aheejin changed the title Remove unwind [EH] Remove unwind Jun 27, 2021
Comment thread src/type-checker.cc Outdated
} else {
result |= OnEnd(label, label->result_types, desc, desc);
}
result |= OnEnd(label, label->result_types, desc, desc);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe it's possible to further simplify here, because the 2nd argument check_type (line 592) was added for unwind. The argument can be removed and then label->result_types passed in line 596 instead of check_type. (see commit 036a632 that added this)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Done.

@@ -1,5 +0,0 @@
;;; TOOL: run-spec-wasm2c

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this file should stay actually, the third_party/testsuite/unwind.wast is not related to try-unwind AFAICT.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, thanks for the catch. I blindly searched for unwind... Restored.

Comment thread test/spec/unwind.txt
@@ -1,13 +0,0 @@
;;; TOOL: run-interp-spec

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto my other comment, I think this file should stay.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@takikawa

Copy link
Copy Markdown
Contributor

LGTM other than comments above.

@takikawa

Copy link
Copy Markdown
Contributor

Thanks for the fixes. BTW, I don't actually have write access to this repo so I don't think it's counting my review as allowing merging (and same on #1681), just so you know. I have no other comments on the PR though.

@aheejin
aheejin merged commit 29323f0 into WebAssembly:main Jun 29, 2021
@aheejin
aheejin deleted the remove_unwind branch June 29, 2021 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants