* update comment about twasmifnode, since the WebAssembly 'if' instruction that

we emit is no longer hardcoded to return a value

git-svn-id: branches/wasm@48201 -
This commit is contained in:
nickysn 2021-01-19 16:13:45 +00:00
parent 0236da1da9
commit d5caaf792c

View File

@ -35,9 +35,7 @@ interface
{ Wasm doesn't have any jump(+offset) operations
It only provide structured blockes to handle jumps
(It's possible to jump-out-of-block at any time)
"If" is also implemented as a block, identical to high-level language.
Another thing to consider is "if" block also "returns" a value on the stack.
Such value should be substituteed (it's hard-coded to be type i32) }
"If" is also implemented as a block, identical to high-level language. }
twasmifnode = class(tcgifnode)
public
procedure pass_generate_code;override;