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

inline 2 #12

Closed
blooddy opened this issue Jan 14, 2018 · 2 comments
Closed

inline 2 #12

blooddy opened this issue Jan 14, 2018 · 2 comments
Labels

Comments

@blooddy
Copy link

blooddy commented Jan 14, 2018

Is it possible to add support for inline functions?

export function test(x:i32, y:i32):i32 {
    x = add( x, 1 );
    y = add( y, 1 );
    return add( x, y );
}

inline function add(x:i32, y:i32):i32 {
    return x + y;
}

That should be optimized to

export function test(x:i32, y:i32):i32 {
    x = x + 1;
    y = y + 1;
    return x + y;
}
@dcodeIO
Copy link
Member

dcodeIO commented Jan 14, 2018

Yeah, this comment applies here as well.

See also: WebAssembly/binaryen#1330

@dcodeIO
Copy link
Member

dcodeIO commented Feb 17, 2018

Closing this issue for now as it hasn't received any replies recently. Feel free to reopen it if necessary!

@dcodeIO dcodeIO closed this as completed Feb 17, 2018
willemneal pushed a commit to willemneal/assemblyscript that referenced this issue May 31, 2019
Generate bindings using JSON encoder/decoder
radu-matei pushed a commit to radu-matei/assemblyscript that referenced this issue Oct 13, 2020
* Added a sleep for milliseconds

* Exported Time

* Added the additional wasi bindings

* Trying to debug rt error

* Made Constants suggestions

* Fixed constants

* Added back the original identifiers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants