diff options
| author | Alon Zakai <azakai@google.com> | 2019-04-30 10:48:51 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-30 10:48:51 -0700 |
| commit | fa4e1e5d9bf94c43b9b0b2295476e6b72daa81ff (patch) | |
| tree | c5db7750291509cc9442ec368600cc160839d7b1 /scripts/gen-s-parser.py | |
| parent | 28e01f3e832498237d78a64aafc1ee2a26f92bb4 (diff) | |
| download | binaryen-fa4e1e5d9bf94c43b9b0b2295476e6b72daa81ff.tar.gz binaryen-fa4e1e5d9bf94c43b9b0b2295476e6b72daa81ff.tar.bz2 binaryen-fa4e1e5d9bf94c43b9b0b2295476e6b72daa81ff.zip | |
wasm2js: optimize switches (#2067)
Don't emit unneeded breaks in switch cases, instead do
case X:
case Y:
..
case W: break ..
for each group. Also, the group with the default doesn't need any cases but the default itself.
Diffstat (limited to 'scripts/gen-s-parser.py')
0 files changed, 0 insertions, 0 deletions
