Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(713)

Issue 1918213003: Subzero, Wasm: Dynamically reallocate read buffer. Runtime improvements. (Closed)

Created:
4 years, 8 months ago by Eric Holk
Modified:
4 years, 7 months ago
Reviewers:
Jim Stichnoth, Karl, sehr, John
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

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 Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=87def2c8fa994f2daf87a090763a472335622697

Patch Set 1 #

Patch Set 2 : Formatting #

Total comments: 15

Patch Set 3 : Some code review feedback." #

Total comments: 13

Patch Set 4 : Cleaner wasm pointer handling #

Patch Set 5 : General improvements #

Total comments: 7

Patch Set 6 : Code review changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+381 lines, -112 lines) Patch
M c2wasm-exe.sh View 1 chunk +2 lines, -2 lines 0 comments Download
M pydir/wasm-run-torture-tests.py View 1 chunk +1 line, -1 line 0 comments Download
M runtime/wasm-runtime.cpp View 1 2 3 4 5 4 chunks +303 lines, -83 lines 0 comments Download
M src/IceCompiler.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/WasmTranslator.h View 1 chunk +1 line, -2 lines 0 comments Download
M src/WasmTranslator.cpp View 1 2 3 4 9 chunks +73 lines, -23 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
Eric Holk
4 years, 8 months ago (2016-04-26 20:57:03 UTC) #2
Jim Stichnoth
https://codereview.chromium.org/1918213003/diff/20001/runtime/wasm-runtime.cpp File runtime/wasm-runtime.cpp (right): https://codereview.chromium.org/1918213003/diff/20001/runtime/wasm-runtime.cpp#newcode21 runtime/wasm-runtime.cpp:21: // TODO (eholk): change to cstdint You can probably ...
4 years, 8 months ago (2016-04-26 22:36:43 UTC) #3
John
lgtm https://codereview.chromium.org/1918213003/diff/40001/runtime/wasm-runtime.cpp File runtime/wasm-runtime.cpp (right): https://codereview.chromium.org/1918213003/diff/40001/runtime/wasm-runtime.cpp#newcode16 runtime/wasm-runtime.cpp:16: #include <cmath> extreme nit ** 10: space between ...
4 years, 8 months ago (2016-04-27 02:28:20 UTC) #4
Eric Holk
I tried to address most people's feedback, although some of the changes and comments might ...
4 years, 7 months ago (2016-04-27 21:45:21 UTC) #5
Jim Stichnoth
lgtm https://codereview.chromium.org/1918213003/diff/80001/runtime/wasm-runtime.cpp File runtime/wasm-runtime.cpp (right): https://codereview.chromium.org/1918213003/diff/80001/runtime/wasm-runtime.cpp#newcode212 runtime/wasm-runtime.cpp:212: // The empty comment is to keep clang-fmt ...
4 years, 7 months ago (2016-04-29 20:57:38 UTC) #6
Eric Holk
Committed patchset #6 (id:100001) manually as 87def2c8fa994f2daf87a090763a472335622697 (presubmit successful).
4 years, 7 months ago (2016-04-29 21:42:22 UTC) #8
Eric Holk
4 years, 7 months ago (2016-04-29 21:42:55 UTC) #9
Message was sent while issue was closed.
https://codereview.chromium.org/1918213003/diff/80001/runtime/wasm-runtime.cpp
File runtime/wasm-runtime.cpp (right):

https://codereview.chromium.org/1918213003/diff/80001/runtime/wasm-runtime.cp...
runtime/wasm-runtime.cpp:219: // fprintf(stderr, "main(%d)\n", argc);
On 2016/04/29 20:57:38, stichnot wrote:
> remove?

Done.

https://codereview.chromium.org/1918213003/diff/80001/runtime/wasm-runtime.cp...
runtime/wasm-runtime.cpp:230: WasmPtr<WasmPtr<char> /**/> WasmArgV = HeapBreak;
On 2016/04/29 20:57:38, stichnot wrote:
> You could also consider making WasmPtr<char> into a typedef.

Good idea. Done.

https://codereview.chromium.org/1918213003/diff/80001/runtime/wasm-runtime.cp...
runtime/wasm-runtime.cpp:281: (void)_;
On 2016/04/29 20:57:38, stichnot wrote:
> Can you just omit the argument name in the declaration above, and then remove
> this void cast?

Ah, that seems to work. I seem to remember that not working the last time I
tried, so I'm not sure what happened.

Done.

Powered by Google App Engine
This is Rietveld 408576698