Add initial (binary only) support for compact imports proposal. NFC.#8226
Conversation
c48fb7e to
9248800
Compare
|
@tlively or @stevenfontanella how about we land this and I can hand it over to one of your to do the text parse stuff which is beyond my ken. |
|
I just copied the spec test directly from the upstream repo.. is that the right way to do it, or is there some script / submodule type thing for pulling those in these days? |
Looks like it's not in the testsuite repo yet link (I'm not sure when this would happen). Seems ok to me to copy it over for now. Maybe add a TODO to replace it with the one in the testsuite repo once it's there?
I'm happy to give it a try! |
5433c45 to
176e41b
Compare
sbc100
left a comment
There was a problem hiding this comment.
I had Gemini help me resolve the unique_ptr issue.
It chose to use a overloaded addImport along and a templatized readCompactImportsShared helper.
WDYT?
e7477f1 to
7305451
Compare
tlively
left a comment
There was a problem hiding this comment.
This seems pretty reasonable. I have a weak preference for doing an initial NFC refactoring to add all those new functions, but up to you.
This change is in preparation for compact imports in #8226.
749c371 to
23db09e
Compare
|
Rebased, and feedback addressed. |
So far this is binary-only. We can add the text format support as a followup I think. https://github.com/WebAssembly/compact-import-section
See https://github.com/WebAssembly/compact-import-section
This change only adds binary support. Luckily the upstream tests are devided in two seperate
files
binary-compact-imports.wastandcompact-imports.wastso this change only importsone of them.