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 initial wasm memory grow/current intrinsics #361

Merged
merged 1 commit into from
Mar 9, 2018

Conversation

alexcrichton
Copy link
Member

This exposes access to the grow_memory and current_memory instructions
provided by wasm in what will hopefully be a stable interface (the stable part
being x86 first in theory).

This exposes access to the `grow_memory` and `current_memory` instructions
provided by wasm in what will hopefully be a stable interface (the stable part
being x86 first in theory).
@@ -1,6 +1,8 @@
//! Caches run-time feature detection so that it only needs to be computed
//! once.

#![allow(dead_code)] // not used on all platforms

Copy link
Contributor

@gnzlbg gnzlbg Mar 9, 2018

Choose a reason for hiding this comment

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

I would prefer if we would just disable the detect module in the platforms in which it is not used. I can do this in the MIPS PR since I've cleaned up the detect module there quite a bit.

@gnzlbg
Copy link
Contributor

gnzlbg commented Mar 9, 2018

LGTM!

@alexcrichton alexcrichton merged commit ab9356f into rust-lang:master Mar 9, 2018
@alexcrichton alexcrichton deleted the wasm branch March 9, 2018 15:21
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.

None yet

2 participants