v8/test/unittests/wasm
Clemens Hammacher 92bf832799 [wasm] [interpreter] Precompute side table for breaks
Instead of dynamically tracking the block nesting, precompute the
information statically.
The interpreter was already using a side table to store the pc diff for
each break, conditional break and others. The information needed to
adjust the stack was tracked dynamically, however. This CL also
precomputes this information, as it is statically known.
Instead of just storing the pc diff in the side table, we now store the
pc diff, the stack height diff and the arity of the target block.

Local measurements show speedups of 5-6% on average, sometimes >10%.

R=ahaas@chromium.org
BUG=v8:5822

Change-Id: I986cfa989aabe1488f2ff79ddbfbb28aeffe1452
Reviewed-on: https://chromium-review.googlesource.com/485482
Reviewed-by: Andreas Haas <ahaas@chromium.org>
Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#44837}
2017-04-25 10:54:31 +00:00
..
asm-types-unittest.cc [wasm] Fix more -Wsign-compare warnings. 2016-11-11 11:56:05 +00:00
control-transfer-unittest.cc [wasm] [interpreter] Precompute side table for breaks 2017-04-25 10:54:31 +00:00
decoder-unittest.cc [wasm] [decoder] Templatize decode function for unchecked decoding 2017-04-05 11:14:32 +00:00
function-body-decoder-unittest.cc Terminate the decoding loop more gracefully. 2017-04-10 14:02:42 +00:00
leb-helper-unittest.cc [wasm] [decoder] Templatize decode function for unchecked decoding 2017-04-05 11:14:32 +00:00
loop-assignment-analysis-unittest.cc [iwyu, wasm] Remove unallowed includes to objects-inl.h from wasm. 2017-02-13 15:05:37 +00:00
module-decoder-unittest.cc [wasm] Check for UTF-8 validity of section names 2017-04-11 08:52:53 +00:00
OWNERS Make clemensh owner (wasm, asmjs and general) 2017-01-13 10:20:44 +00:00
switch-logic-unittest.cc [asmjs] Move switch-logic.h to asmjs/ directory. 2016-10-10 17:57:47 +00:00
wasm-macro-gen-unittest.cc [gn] Enable stricter build flags 2017-03-17 15:18:18 +00:00
wasm-module-builder-unittest.cc [iwyu, wasm] Remove unallowed includes to objects-inl.h from wasm. 2017-02-13 15:05:37 +00:00
wasm-opcodes-unittest.cc [wasm] Use the official opcode names everywhere. 2017-01-20 13:28:29 +00:00