Skip to content
This repository was archived by the owner on Nov 3, 2021. It is now read-only.

[spec] Specify instantiate - #114

Merged
rossberg merged 13 commits into
masterfrom
spec-instantiate
Oct 7, 2019
Merged

rossberg merged 13 commits into
masterfrom
spec-instantiate

Conversation

@rossberg

Copy link
Copy Markdown
Member

Incorporate active/passive segments into instantiation. While doing so, drop initelem/initdata administrative instructions and express it in terms of table.init and memory.init instructions. Adjust interpreter accordingly.

Baseline is #113. See last commit for new changes.

Comment thread document/core/exec/modules.rst Resolved
Comment thread document/core/exec/modules.rst Resolved
Comment thread document/core/exec/modules.rst Resolved
Comment thread document/core/exec/modules.rst Resolved
Comment thread document/core/exec/modules.rst Resolved
Comment thread document/core/exec/modules.rst Resolved
Comment thread document/core/exec/modules.rst Resolved
Comment thread document/core/exec/modules.rst Resolved
Comment thread document/core/exec/modules.rst Resolved
Comment thread test/core/data.wast Resolved
@rossberg rossberg mentioned this pull request Oct 1, 2019
@rossberg

rossberg commented Oct 2, 2019

Copy link
Copy Markdown
Member Author

@gahaas, PTAL

d. Execute the instruction :math:`\MEMORYCOPY`.

e. Push the value :math:`\vconst_\I32(dst+1)` to the stack.
e. Push the value :math:`\vconst_{\I32}(dst+1)` to the stack.

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.

The style here is inconsistent with e.g. item a in line 885. I don't know which style is the correct one, and if this should be done in this PR, but in the long run I would prefer consistency.

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.

Do you mean the Latex style? It's a subscript here but not above. Strictly speaking the braces shouldn't be necessary here either, but our DIY macro expansion working around Sphinx limitations requires it.

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 entered the document/core directory and executed make html
Item a reads i32.const, whereas item e reads const_i32 (please imagine a subscript here. Maybe there is a rule in place here that I don't understand.

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, one is syntax, the other a meta function, analogous to t.add vs add_t. Clicking on them should take you to the definitions. They should also appear in different font, although that admittedly isn't all that noticable in the HTML rendering.

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.

FWIW, we can probably get rid of the meta function again if we adopt #111.

@rossberg
rossberg merged commit df2a55f into master Oct 7, 2019
@rossberg
rossberg deleted the spec-instantiate branch October 7, 2019 09:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants