Skip to content

cranelift: Add stack support to the interpreter#3164

Closed
afonso360 wants to merge 1 commit intobytecodealliance:mainfrom
afonso360:interpreter-stack
Closed

cranelift: Add stack support to the interpreter#3164
afonso360 wants to merge 1 commit intobytecodealliance:mainfrom
afonso360:interpreter-stack

Conversation

@afonso360
Copy link
Copy Markdown
Contributor

With this PR we also change the approach for heap loads and stores.

Previously we would use the offset as the address to the heap. However, this approach does not allow using the load/store instructions to read/write from both the heap and the stack.

We now return the real addresses from the addressing instructions (stack_addr/heap_addr), and instead check if the address passed into the load/store instructions points to an area in the heap or the stack.

We also change the approach for heap loads and stores.

Previously we would use the offset as the address to the heap. However,
this approach does not allow using the load/store instructions to
read/write from both the heap and the stack.

This commit changes the addressing mechanism of the interpreter. We now
return the real addresses from the addressing instructions
(stack_addr/heap_addr), and instead check if the address passed into
the load/store instructions points to an area in the heap or the stack.
@github-actions github-actions bot added cranelift Issues related to the Cranelift code generator wasmtime:api Related to the API of the `wasmtime` crate itself labels Aug 8, 2021
@github-actions
Copy link
Copy Markdown

github-actions bot commented Aug 8, 2021

Subscribe to Label Action

cc @peterhuene

Details This issue or pull request has been labeled: "cranelift", "wasmtime:api"

Thus the following users have been cc'd because of the following labels:

  • peterhuene: wasmtime:api

To subscribe or unsubscribe from this label, edit the .github/subscribe-to-label.json configuration file.

Learn more.

@afonso360
Copy link
Copy Markdown
Contributor Author

Closed in favor of #3187

@afonso360 afonso360 closed this Aug 16, 2021
@afonso360 afonso360 deleted the interpreter-stack branch September 2, 2021 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cranelift Issues related to the Cranelift code generator wasmtime:api Related to the API of the `wasmtime` crate itself

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant