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

Issue 1876413002: Subzero. WASM. Additional progress. (Closed)

Created:
4 years, 8 months ago by Eric Holk
Modified:
4 years, 8 months ago
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. Additional progress. This change includes a number of improvements since the last WASM CL. It compiles against a newer version of V8 that matches the current WASM binary format. Many more WASM instructions are supported, as well as global variable initializers. There is also the beginning of a runtime library that implements some system calls required by the WASM C library. The c2wasm-exe.sh script can be used to compile a C program to a .wasm module, which is then compiled by Subzero into a native executable. This change includes a new Breakpoint instruction, which inserts an unconditional breakpoint into the executable. This has been helpful in debugging code generation for some WASM instructions. The Breakpoint instruction is only completely implemented on X86. BUG= https://bugs.chromium.org/p/nativeclient/issues/detail?id=4369 R=stichnot@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=67c7c4161ad5bcf234357348a421e313932a8ee3

Patch Set 1 #

Patch Set 2 : Cleanup #

Patch Set 3 : Merging with master #

Total comments: 64

Patch Set 4 : Inforporating review feedback #

Patch Set 5 : Merging with master #

Total comments: 6

Patch Set 6 : Code review feedback and merging with master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+915 lines, -132 lines) Patch
M .gitignore View 1 chunk +4 lines, -0 lines 0 comments Download
M Makefile.standalone View 1 chunk +2 lines, -4 lines 0 comments Download
M README-wasm.md View 1 chunk +21 lines, -3 lines 0 comments Download
A c2wasm-exe.sh View 1 2 3 1 chunk +10 lines, -0 lines 0 comments Download
A fetch-torture-tests.sh View 1 2 3 4 5 1 chunk +13 lines, -0 lines 0 comments Download
M pydir/wasm-run-torture-tests.py View 2 chunks +3 lines, -3 lines 0 comments Download
A runtime/wasm-runtime.c View 1 2 3 4 5 1 chunk +106 lines, -0 lines 0 comments Download
M src/IceCfg.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/IceInst.h View 1 2 3 2 chunks +24 lines, -0 lines 0 comments Download
M src/IceInst.cpp View 1 2 3 3 chunks +6 lines, -0 lines 0 comments Download
M src/IceInstX86Base.h View 3 chunks +23 lines, -0 lines 0 comments Download
M src/IceInstX86BaseImpl.h View 2 chunks +28 lines, -0 lines 0 comments Download
M src/IceTargetLowering.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M src/IceTargetLowering.cpp View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M src/IceTargetLoweringARM32.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M src/IceTargetLoweringARM32.cpp View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M src/IceTargetLoweringMIPS32.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M src/IceTargetLoweringMIPS32.cpp View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M src/IceTargetLoweringX86Base.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M src/IceTargetLoweringX86BaseImpl.h View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M src/WasmTranslator.h View 1 2 3 2 chunks +16 lines, -10 lines 0 comments Download
M src/WasmTranslator.cpp View 1 2 3 30 chunks +544 lines, -112 lines 0 comments Download
A wasm-tests/hello-printf.c View 1 chunk +6 lines, -0 lines 0 comments Download
A wasm-tests/hello-putchar.c View 1 2 3 1 chunk +39 lines, -0 lines 0 comments Download
A wasm-tests/hello-puts.c View 1 chunk +10 lines, -0 lines 0 comments Download
A wasm-tests/hello-write.c View 1 chunk +10 lines, -0 lines 0 comments Download
A wasm-tests/indirect.c View 1 chunk +13 lines, -0 lines 0 comments Download
A wasm-tests/write_loop.c View 1 chunk +14 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
Eric Holk
4 years, 8 months ago (2016-04-12 02:12:57 UTC) #2
John
https://codereview.chromium.org/1876413002/diff/40001/src/IceInst.h File src/IceInst.h (right): https://codereview.chromium.org/1876413002/diff/40001/src/IceInst.h#newcode981 src/IceInst.h:981: /// What's the use case for this? I would ...
4 years, 8 months ago (2016-04-12 20:34:28 UTC) #3
Eric Holk
https://codereview.chromium.org/1876413002/diff/40001/src/IceInst.h File src/IceInst.h (right): https://codereview.chromium.org/1876413002/diff/40001/src/IceInst.h#newcode981 src/IceInst.h:981: /// On 2016/04/12 20:34:27, John wrote: > What's the ...
4 years, 8 months ago (2016-04-12 21:30:10 UTC) #4
Jim Stichnoth
https://codereview.chromium.org/1876413002/diff/40001/c2wasm-exe.sh File c2wasm-exe.sh (right): https://codereview.chromium.org/1876413002/diff/40001/c2wasm-exe.sh#newcode1 c2wasm-exe.sh:1: #!/bin/bash This is a pretty hacky script, I'd be ...
4 years, 8 months ago (2016-04-14 20:03:45 UTC) #5
Eric Holk
https://codereview.chromium.org/1876413002/diff/40001/c2wasm-exe.sh File c2wasm-exe.sh (right): https://codereview.chromium.org/1876413002/diff/40001/c2wasm-exe.sh#newcode1 c2wasm-exe.sh:1: #!/bin/bash On 2016/04/14 20:03:43, stichnot wrote: > This is ...
4 years, 8 months ago (2016-04-15 15:24:28 UTC) #6
Derek Schuff
https://codereview.chromium.org/1876413002/diff/80001/c2wasm-exe.sh File c2wasm-exe.sh (right): https://codereview.chromium.org/1876413002/diff/80001/c2wasm-exe.sh#newcode6 c2wasm-exe.sh:6: ./wasm-install/bin/emscripten/emcc "$1" -s BINARYEN=1 \ This invocation of emcc ...
4 years, 8 months ago (2016-04-15 16:13:23 UTC) #9
Eric Holk
https://codereview.chromium.org/1876413002/diff/80001/c2wasm-exe.sh File c2wasm-exe.sh (right): https://codereview.chromium.org/1876413002/diff/80001/c2wasm-exe.sh#newcode6 c2wasm-exe.sh:6: ./wasm-install/bin/emscripten/emcc "$1" -s BINARYEN=1 \ On 2016/04/15 16:13:23, Derek ...
4 years, 8 months ago (2016-04-15 16:16:59 UTC) #10
Jim Stichnoth
lgtm https://codereview.chromium.org/1876413002/diff/40001/fetch-torture-tests.sh File fetch-torture-tests.sh (right): https://codereview.chromium.org/1876413002/diff/40001/fetch-torture-tests.sh#newcode7 fetch-torture-tests.sh:7: rm wasm-torture-s-$BUILDID.tbz2 On 2016/04/15 15:24:26, Eric Holk wrote: ...
4 years, 8 months ago (2016-04-15 19:47:26 UTC) #11
Eric Holk
https://codereview.chromium.org/1876413002/diff/40001/fetch-torture-tests.sh File fetch-torture-tests.sh (right): https://codereview.chromium.org/1876413002/diff/40001/fetch-torture-tests.sh#newcode7 fetch-torture-tests.sh:7: rm wasm-torture-s-$BUILDID.tbz2 On 2016/04/15 19:47:25, stichnot wrote: > On ...
4 years, 8 months ago (2016-04-15 20:05:16 UTC) #12
Eric Holk
4 years, 8 months ago (2016-04-15 20:05:41 UTC) #14
Message was sent while issue was closed.
Committed patchset #6 (id:100001) manually as
67c7c4161ad5bcf234357348a421e313932a8ee3 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698