Migrating from getExpressionInfo to expression wrappers#7525
Migrating from getExpressionInfo to expression wrappers#7525kripken merged 8 commits intoWebAssembly:mainfrom
getExpressionInfo to expression wrappers#7525Conversation
…sistencies in `getExpressionInfo`
|
Related discussion: #7515 |
|
Maybe we can make Expression constructor return the specific instance? Can we just make the instruction-building functions return expression wrappers? That shouldn't be a breaking change, as expression wrappers can be implicitly converted to Wasm pointers via valueOf (e.g. +expr or expr | 0). |
…binaryen into migrate-expression-info
Sorry, what do you mean here? What type of code can construct something with only Expression? |
|
I mean that the binaryen/src/js/binaryen.js-post.js Lines 4052 to 4057 in 90ad796 |
|
I see, thanks. Yes, I guess it could. Initially it felt slightly odd to me, maybe because in C++ |
Replace the obsolete
getExpressionInfowith expression wrapper functions.