Skip to content
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

Add wasi functions required by quickjs #327

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kulcsaradam
Copy link
Contributor

Add numerous wasi functions required to run quickjs engine. Also add test case for functions.
Also fix a small bug with accessing an empty vector's element.

Add numerous wasi functions required to run quickjs engine.
Also add test case for functions.
Also fix a small bug with accessing an empty vector's element.

Signed-off-by: Ádám László Kulcsár <[email protected]>
@@ -638,7 +638,7 @@ class WASMBinaryReader : public wabt::WASMBinaryReaderDelegate {
*
* m_currentFunction->peekByteCode<Walrus::UnaryOperation>(m_lastI32EqzPos)->dstOffset() == stackPos
* checks if the output of I32Eqz is the input of JumpIfTrue/JumpIfFalse
*/
*/
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This change was made by the clang-format. I do not know why it was not discovered before.

F(fd_prestat_get, I32I32_RI32) \
F(fd_prestat_dir_name, I32I32I32_RI32) \
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I moved this definition so functions follow the order of the specifications so it's a bit easier to search.

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.

1 participant