misapprehand opened PR #2535 from fix_2498
to main
:
- extract wat generator to other file
- add wencoder generator
- splite wat genrator and wencoder to different function in dummy.rs
<!--
Please ensure that the following steps are all taken care of before submitting
the PR.
[ ] This has been discussed in issue #..., or if not, please tell us why
here.[ ] A short description of what this does, why it is needed; if the
description becomes long, the matter should probably be discussed in an issue
first.[ ] This PR contains test cases, if meaningful.
- [ ] A reviewer from the core maintainer team has been assigned for this PR.
If you don't know who could review this, please indicate so. The list of
suggested reviewers on the right can help you.Please ensure all communication adheres to the code of conduct.
-->
misapprehand updated PR #2535 from fix_2498
to main
:
- extract wat generator to other file
- add wencoder generator
- splite wat genrator and wencoder to different function in dummy.rs
<!--
Please ensure that the following steps are all taken care of before submitting
the PR.
[ ] This has been discussed in issue #..., or if not, please tell us why
here.[ ] A short description of what this does, why it is needed; if the
description becomes long, the matter should probably be discussed in an issue
first.[ ] This PR contains test cases, if meaningful.
- [ ] A reviewer from the core maintainer team has been assigned for this PR.
If you don't know who could review this, please indicate so. The list of
suggested reviewers on the right can help you.Please ensure all communication adheres to the code of conduct.
-->
misapprehand updated PR #2535 from fix_2498
to main
:
- extract wat generator to other file
- add wencoder generator
- splite wat genrator and wencoder to different function in dummy.rs
<!--
Please ensure that the following steps are all taken care of before submitting
the PR.
[ ] This has been discussed in issue #..., or if not, please tell us why
here.[ ] A short description of what this does, why it is needed; if the
description becomes long, the matter should probably be discussed in an issue
first.[ ] This PR contains test cases, if meaningful.
- [ ] A reviewer from the core maintainer team has been assigned for this PR.
If you don't know who could review this, please indicate so. The list of
suggested reviewers on the right can help you.Please ensure all communication adheres to the code of conduct.
-->
misapprehand updated PR #2535 from fix_2498
to main
:
- extract wat generator to other file
- add wencoder generator
- splite wat genrator and wencoder to different function in dummy.rs
<!--
Please ensure that the following steps are all taken care of before submitting
the PR.
[ ] This has been discussed in issue #..., or if not, please tell us why
here.[ ] A short description of what this does, why it is needed; if the
description becomes long, the matter should probably be discussed in an issue
first.[ ] This PR contains test cases, if meaningful.
- [ ] A reviewer from the core maintainer team has been assigned for this PR.
If you don't know who could review this, please indicate so. The list of
suggested reviewers on the right can help you.Please ensure all communication adheres to the code of conduct.
-->
fitzgen submitted PR Review.
fitzgen submitted PR Review.
fitzgen created PR Review Comment:
Nothing is using the WAT versions anymore, right? So we should be able to remove them and the
WatGenerator
and also just namedummy_module_wenc
asdummy_module
instead of having the latter wrap the former.
fitzgen created PR Review Comment:
If
ExternType::Func
is ever provided more than once, then this will define multiple types, functions, and codes sections, but each section must only appear once in a Wasm binary. Similar for other methods. Rather than defining the sections inside this method, and adding them to the module at the end of it, I think theWencoderGenerator
should haveself.types
,self.functions
, etc members that have each section, and thenfinish
would add them toself.module
in the correct order before callingself.module.finish()
.
misapprehand updated PR #2535 from fix_2498
to main
:
- extract wat generator to other file
- add wencoder generator
- splite wat genrator and wencoder to different function in dummy.rs
<!--
Please ensure that the following steps are all taken care of before submitting
the PR.
[ ] This has been discussed in issue #..., or if not, please tell us why
here.[ ] A short description of what this does, why it is needed; if the
description becomes long, the matter should probably be discussed in an issue
first.[ ] This PR contains test cases, if meaningful.
- [ ] A reviewer from the core maintainer team has been assigned for this PR.
If you don't know who could review this, please indicate so. The list of
suggested reviewers on the right can help you.Please ensure all communication adheres to the code of conduct.
-->
misapprehand submitted PR Review.
misapprehand created PR Review Comment:
@fitzgen I update the PR. There is one question. I cannot find instruction section in correct order. So I did not add it to module. Is it right?
fitzgen submitted PR Review.
fitzgen created PR Review Comment:
This needs to use the type's index, rather than hard code
0
.
fitzgen submitted PR Review.
fitzgen created PR Review Comment:
This should be a module with the given module type, not an empty module. This method should create a new module and add the import and export types to that new module's types/imports/exports/etc sections, not the current module's sections.
fitzgen created PR Review Comment:
These comments were fine before, and the new versions are less informative, so let's revert the doc comment changes here and elsewhere.
fitzgen created PR Review Comment:
We don't need to create a local binding to
self.module_section
here, we could just doself.module_section.module(...);
Similar for other sections.
misapprehand updated PR #2535 from fix_2498
to main
:
- extract wat generator to other file
- add wencoder generator
- splite wat genrator and wencoder to different function in dummy.rs
<!--
Please ensure that the following steps are all taken care of before submitting
the PR.
[ ] This has been discussed in issue #..., or if not, please tell us why
here.[ ] A short description of what this does, why it is needed; if the
description becomes long, the matter should probably be discussed in an issue
first.[ ] This PR contains test cases, if meaningful.
- [ ] A reviewer from the core maintainer team has been assigned for this PR.
If you don't know who could review this, please indicate so. The list of
suggested reviewers on the right can help you.Please ensure all communication adheres to the code of conduct.
-->
misapprehand updated PR #2535 from fix_2498
to main
:
- extract wat generator to other file
- add wencoder generator
- splite wat genrator and wencoder to different function in dummy.rs
<!--
Please ensure that the following steps are all taken care of before submitting
the PR.
[ ] This has been discussed in issue #..., or if not, please tell us why
here.[ ] A short description of what this does, why it is needed; if the
description becomes long, the matter should probably be discussed in an issue
first.[ ] This PR contains test cases, if meaningful.
- [ ] A reviewer from the core maintainer team has been assigned for this PR.
If you don't know who could review this, please indicate so. The list of
suggested reviewers on the right can help you.Please ensure all communication adheres to the code of conduct.
-->
misapprehand updated PR #2535 from fix_2498
to main
:
- extract wat generator to other file
- add wencoder generator
- splite wat genrator and wencoder to different function in dummy.rs
<!--
Please ensure that the following steps are all taken care of before submitting
the PR.
[ ] This has been discussed in issue #..., or if not, please tell us why
here.[ ] A short description of what this does, why it is needed; if the
description becomes long, the matter should probably be discussed in an issue
first.[ ] This PR contains test cases, if meaningful.
- [ ] A reviewer from the core maintainer team has been assigned for this PR.
If you don't know who could review this, please indicate so. The list of
suggested reviewers on the right can help you.Please ensure all communication adheres to the code of conduct.
-->
misapprehand updated PR #2535 from fix_2498
to main
:
- extract wat generator to other file
- add wencoder generator
- splite wat genrator and wencoder to different function in dummy.rs
<!--
Please ensure that the following steps are all taken care of before submitting
the PR.
[ ] This has been discussed in issue #..., or if not, please tell us why
here.[ ] A short description of what this does, why it is needed; if the
description becomes long, the matter should probably be discussed in an issue
first.[ ] This PR contains test cases, if meaningful.
- [ ] A reviewer from the core maintainer team has been assigned for this PR.
If you don't know who could review this, please indicate so. The list of
suggested reviewers on the right can help you.Please ensure all communication adheres to the code of conduct.
-->
alexcrichton closed without merge PR #2535.
alexcrichton commented on PR #2535:
This is pretty out of date now at this point so I'm going to close this. I think the change would still be good to have though!
Last updated: Dec 23 2024 at 12:05 UTC