OSDN Git Service

Subzero, Wasm: Dynamically reallocate read buffer. Runtime improvements.
authorEric Holk <eholk@chromium.org>
Fri, 29 Apr 2016 21:42:17 +0000 (14:42 -0700)
committerEric Holk <eholk@chromium.org>
Fri, 29 Apr 2016 21:42:17 +0000 (14:42 -0700)
commit87def2c8fa994f2daf87a090763a472335622697
tree56c9812a0e7e54a10e79ca361c45ac340de19cd6
parentde29f1201e8b77e58f5500ef4cfba51d547368b7
Subzero, Wasm: Dynamically reallocate read buffer. Runtime improvements.

This change fills in several more runtime functions needed by several
benchmarks, as well as changing the buffer handling in the WASM
decoder. Now the decoder will resize the buffer as needed to
accomodate large .wasm modules.

Tracing can now be enabled on runtime functions to aid with
debugging. Additionally, runtime failures such as bounds check
failures or invalid indirect function calls tell what kind of failure
occured.

BUG= https://bugs.chromium.org/p/nativeclient/issues/detail?id=4369
R=jpp@chromium.org, stichnot@chromium.org

Review URL: https://codereview.chromium.org/1918213003 .
c2wasm-exe.sh
pydir/wasm-run-torture-tests.py
runtime/wasm-runtime.cpp
src/IceCompiler.cpp
src/WasmTranslator.cpp
src/WasmTranslator.h