[wasm] optimized switch implementation in asm.js to wasm builder
This change implements switch as a balanced if/else tree or break table or hybrid. A lot of asm.js modules are expected to extensively use switch alongside function tables that can benefit from a better implementation. BUG=v8:4203 TEST=mjsunit/asm-wasm R=titzer@chromium.org,bradnelson@chromium.org,ahaas@chromium.org LOG=N Review URL: https://codereview.chromium.org/1838973002 Cr-Commit-Position: refs/heads/master@{#35455}
Showing
src/wasm/switch-logic.cc
0 → 100644
src/wasm/switch-logic.h
0 → 100644
This diff is collapsed.
Please
register
or
sign in
to comment