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

Issue 944333002: Subzero: Update tests and build scripts for sandboxing. (Closed)

Created:
5 years, 10 months ago by Jim Stichnoth
Modified:
5 years, 10 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: Update tests and build scripts for sandboxing. Spec2k now runs sandboxed, using all filetypes (asm, iasm, obj). The new build-runtime.py script builds the native and sandboxed runtimes in build/runtime/ . The various Subzero driver scripts are updated to use that. Fixes a stack frame bug in sandboxed mode when the integrated assembler is used. The stack adjustment for setting up a function call wasn't being rolled back for the second emitIAS() pass, so stack variables passed as arguments to the callee were being copied from the wrong stack slot. Notes: 1. The hybrid Subzero/llc bisection debugging builds probably do not work as intended for -filetype=obj since the ELF emitter doesn't yet support -ffunction-sections. (This was also true for non-sandboxed hybrid builds.) 2. The cross tests have not yet been adapted for testing sandboxing. I'd prefer to first make progress on https://code.google.com/p/nativeclient/issues/detail?id=4085 in order to avoid blindly doubling the number of tests. BUG= https://code.google.com/p/nativeclient/issues/detail?id=4079 R=jvoung@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=9738a9ea804be2aebc71bc0e5a58414e0774fe57

Patch Set 1 #

Patch Set 2 : Cleanup #

Patch Set 3 : Make PATH output less verbose #

Patch Set 4 : Simplify some path stuff. Fix a bug invoking llc. #

Patch Set 5 : Remove old assignment of llcbin and gold #

Total comments: 10

Patch Set 6 : Code review changes. Undo the lock-prefix sandboxing workaround. #

Total comments: 4

Patch Set 7 : More code review changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+270 lines, -87 lines) Patch
M Makefile.standalone View 4 chunks +17 lines, -6 lines 0 comments Download
A pydir/build-runtime.py View 1 2 3 4 5 6 1 chunk +91 lines, -0 lines 0 comments Download
M pydir/crosstest.py View 1 2 3 4 5 6 3 chunks +5 lines, -8 lines 0 comments Download
M pydir/szbuild.py View 1 2 3 4 5 6 6 chunks +57 lines, -30 lines 0 comments Download
M pydir/szbuild_spec2k.py View 3 chunks +6 lines, -2 lines 0 comments Download
M runtime/szrt.c View 1 1 chunk +24 lines, -4 lines 0 comments Download
D runtime/szrt.cpp View 1 chunk +0 lines, -17 lines 0 comments Download
D runtime/szrt_i686.ll View 1 chunk +0 lines, -13 lines 0 comments Download
A runtime/szrt_ll.ll View 1 1 chunk +27 lines, -0 lines 0 comments Download
M src/IceCfgNode.cpp View 4 chunks +7 lines, -3 lines 0 comments Download
M src/IceTargetLowering.h View 1 2 chunks +14 lines, -0 lines 0 comments Download
M src/IceTargetLowering.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/IceTargetLoweringX8632.cpp View 1 chunk +1 line, -3 lines 0 comments Download
M tests_lit/assembler/x86/sandboxing.ll View 1 chunk +20 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (1 generated)
Jim Stichnoth
5 years, 10 months ago (2015-02-22 19:21:22 UTC) #2
jvoung (off chromium)
https://codereview.chromium.org/944333002/diff/80001/pydir/build-runtime.py File pydir/build-runtime.py (right): https://codereview.chromium.org/944333002/diff/80001/pydir/build-runtime.py#newcode9 pydir/build-runtime.py:9: Usually nacl/chrome py files have 2 space indent, but ...
5 years, 10 months ago (2015-02-23 17:58:37 UTC) #3
Jim Stichnoth
https://codereview.chromium.org/944333002/diff/80001/pydir/build-runtime.py File pydir/build-runtime.py (right): https://codereview.chromium.org/944333002/diff/80001/pydir/build-runtime.py#newcode9 pydir/build-runtime.py:9: On 2015/02/23 17:58:36, jvoung wrote: > Usually nacl/chrome py ...
5 years, 10 months ago (2015-02-23 21:38:19 UTC) #4
jvoung (off chromium)
lgtm https://codereview.chromium.org/944333002/diff/80001/pydir/build-runtime.py File pydir/build-runtime.py (right): https://codereview.chromium.org/944333002/diff/80001/pydir/build-runtime.py#newcode52 pydir/build-runtime.py:52: shellcmd(['mkdir', On 2015/02/23 21:38:19, stichnot wrote: > On ...
5 years, 10 months ago (2015-02-23 23:58:38 UTC) #5
Jim Stichnoth
https://codereview.chromium.org/944333002/diff/80001/pydir/build-runtime.py File pydir/build-runtime.py (right): https://codereview.chromium.org/944333002/diff/80001/pydir/build-runtime.py#newcode52 pydir/build-runtime.py:52: shellcmd(['mkdir', On 2015/02/23 23:58:38, jvoung wrote: > On 2015/02/23 ...
5 years, 10 months ago (2015-02-24 00:37:57 UTC) #6
Jim Stichnoth
5 years, 10 months ago (2015-02-24 00:39:10 UTC) #7
Message was sent while issue was closed.
Committed patchset #7 (id:120001) manually as
9738a9ea804be2aebc71bc0e5a58414e0774fe57 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698