diff options
author | Ben Smith <binji@chromium.org> | 2015-11-04 16:19:30 -0800 |
---|---|---|
committer | Ben Smith <binji@chromium.org> | 2015-11-05 12:58:13 -0800 |
commit | 743624656b6479303e0caed3dbeabfe1d7e1ce28 (patch) | |
tree | a315f8d89288ddaf2b08f2a09cccd6198f880520 /test/dump/loop.txt | |
parent | 80fb89290acd3e39a8d61c762dd40a81b15f36a3 (diff) | |
download | wabt-743624656b6479303e0caed3dbeabfe1d7e1ce28.tar.gz wabt-743624656b6479303e0caed3dbeabfe1d7e1ce28.tar.bz2 wabt-743624656b6479303e0caed3dbeabfe1d7e1ce28.zip |
fix gen after v8-native change to make stmt=expr
The big changes:
- there are no more statement ops, everything is an expression op
- some of the opcodes are shuffled around
- loops no longer implicitly branch to the top
- loops have two break scopes, one is the continue scope, the deeper one
is the exit scope.
- the return statement was removed, so to return you need to break to a
top-level block
Diffstat (limited to 'test/dump/loop.txt')
-rw-r--r-- | test/dump/loop.txt | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/test/dump/loop.txt b/test/dump/loop.txt index 1167b679..b4e97266 100644 --- a/test/dump/loop.txt +++ b/test/dump/loop.txt @@ -21,14 +21,17 @@ 000000b: 0000 ; func signature index 000000d: 0000 0000 ; func name offset 0000011: 0000 ; func body size -0000013: 06 ; OPCODE_LOOP +0000013: 02 ; OPCODE_LOOP 0000014: 00 ; num expressions 0000015: 00 ; OPCODE_NOP 0000016: 00 ; OPCODE_NOP -0000014: 02 ; FIXUP num expressions -0000011: 0400 ; FIXUP func body size -0000017: 06 ; WASM_SECTION_END +0000017: 06 ; OPCODE_BR +0000018: 00 ; branch to the top of the loop +0000019: 00 ; OPCODE_NOP +0000014: 03 ; FIXUP num expressions +0000011: 0700 ; FIXUP func body size +000001a: 06 ; WASM_SECTION_END ; names 0000000: 0000 0001 0101 0000 0201 0100 0000 0000 ................ -0000010: 0004 0006 0200 0006 ........ +0000010: 0007 0002 0300 0006 0000 06 ........... ;;; STDOUT ;;) |