Chromium Code Reviews

Issue 2095763002: Instrumented local variables and implemented runtime. (Closed)

Created:
4 years, 6 months ago by tlively
Modified:
4 years, 5 months ago
Reviewers:
Karl, Jim Stichnoth, Roland McGrath
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

Instrumented local variables and implemented runtime. BUG=https://bugs.chromium.org/p/nativeclient/issues/detail?id=4374 R=kschimpf@google.com Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=1fd80c722c1a2d4c31d43a0df35ccbd49d9c2b5a

Patch Set 1 #

Total comments: 16

Patch Set 2 : Cleaned up runtime code. #

Patch Set 3 : Fixed alloca ordering and added the alignment test #

Total comments: 13

Patch Set 4 : Organizational Fixes #

Total comments: 2

Patch Set 5 : Fixed alloca sort and cleaned test #

Total comments: 2

Patch Set 6 : Made sort safe and fixed test to run #

Unified diffs Side-by-side diffs Stats (+332 lines, -114 lines)
M runtime/szrt_asan.c View 1 chunk +111 lines, -26 lines 0 comments
M src/IceASanInstrumentation.h View 2 chunks +6 lines, -4 lines 0 comments
M src/IceASanInstrumentation.cpp View 5 chunks +105 lines, -28 lines 0 comments
M src/IceCfg.h View 1 chunk +1 line, -1 line 0 comments
M src/IceCfg.cpp View 4 chunks +16 lines, -7 lines 0 comments
M src/IceInstrumentation.h View 2 chunks +4 lines, -1 line 0 comments
M src/IceInstrumentation.cpp View 1 chunk +2 lines, -0 lines 0 comments
M src/IceTargetLoweringX86BaseImpl.h View 1 chunk +1 line, -1 line 0 comments
A tests_lit/asan_tests/alignment.ll View 1 chunk +43 lines, -0 lines 0 comments
M tests_lit/asan_tests/instrumentload.ll View 2 chunks +3 lines, -3 lines 0 comments
M tests_lit/asan_tests/instrumentlocals.ll View 2 chunks +29 lines, -32 lines 0 comments
M tests_lit/asan_tests/instrumentstore.ll View 1 chunk +1 line, -1 line 0 comments
M tests_lit/llvm2ice_tests/fused-alloca.ll View 3 chunks +5 lines, -5 lines 0 comments
M tests_lit/llvm2ice_tests/fused-alloca-arg.ll View 1 chunk +5 lines, -5 lines 0 comments

Messages

Total messages: 14 (2 generated)
tlively
4 years, 6 months ago (2016-06-23 21:23:53 UTC) #2
Karl
Some initial comments. The C code should be cleaned up to make it more readable. ...
4 years, 6 months ago (2016-06-23 21:55:52 UTC) #3
tlively
Cleaned up the C runtime. Still need to fix redzones to be on the left ...
4 years, 6 months ago (2016-06-24 05:39:22 UTC) #4
tlively
https://codereview.chromium.org/2095763002/diff/40001/src/IceCfg.cpp File src/IceCfg.cpp (right): https://codereview.chromium.org/2095763002/diff/40001/src/IceCfg.cpp#newcode657 src/IceCfg.cpp:657: return A1->getAlignInBytes() >= A2->getAlignInBytes(); This fixes the problem of ...
4 years, 6 months ago (2016-06-25 02:09:38 UTC) #5
Jim Stichnoth
https://codereview.chromium.org/2095763002/diff/40001/runtime/szrt_asan.c File runtime/szrt_asan.c (right): https://codereview.chromium.org/2095763002/diff/40001/runtime/szrt_asan.c#newcode30 runtime/szrt_asan.c:30: #define SHADOW_SCALE ((size_t)1 << SHADOW_SCALE_LOG2) Are you sure about ...
4 years, 6 months ago (2016-06-25 17:14:13 UTC) #6
tlively
https://codereview.chromium.org/2095763002/diff/40001/runtime/szrt_asan.c File runtime/szrt_asan.c (right): https://codereview.chromium.org/2095763002/diff/40001/runtime/szrt_asan.c#newcode30 runtime/szrt_asan.c:30: #define SHADOW_SCALE ((size_t)1 << SHADOW_SCALE_LOG2) On 2016/06/25 17:14:13, stichnot ...
4 years, 5 months ago (2016-06-27 17:03:58 UTC) #7
Karl
https://codereview.chromium.org/2095763002/diff/60001/tests_lit/asan_tests/alignment.ll File tests_lit/asan_tests/alignment.ll (right): https://codereview.chromium.org/2095763002/diff/60001/tests_lit/asan_tests/alignment.ll#newcode1 tests_lit/asan_tests/alignment.ll:1: ; Translate with -fsanitize-address -O2 to test alignment If ...
4 years, 5 months ago (2016-06-27 17:31:07 UTC) #8
tlively
https://codereview.chromium.org/2095763002/diff/60001/tests_lit/asan_tests/alignment.ll File tests_lit/asan_tests/alignment.ll (right): https://codereview.chromium.org/2095763002/diff/60001/tests_lit/asan_tests/alignment.ll#newcode1 tests_lit/asan_tests/alignment.ll:1: ; Translate with -fsanitize-address -O2 to test alignment On ...
4 years, 5 months ago (2016-06-27 20:10:29 UTC) #9
tlively
4 years, 5 months ago (2016-06-27 21:30:48 UTC) #10
Karl
lgtm https://codereview.chromium.org/2095763002/diff/80001/src/IceCfg.cpp File src/IceCfg.cpp (right): https://codereview.chromium.org/2095763002/diff/80001/src/IceCfg.cpp#newcode656 src/IceCfg.cpp:656: return A1->getAlignInBytes() >= A2->getAlignInBytes(); For stable sort, shouldn't ...
4 years, 5 months ago (2016-06-27 21:38:10 UTC) #11
tlively
Committed patchset #6 (id:100001) manually as 1fd80c722c1a2d4c31d43a0df35ccbd49d9c2b5a (presubmit successful).
4 years, 5 months ago (2016-06-27 21:47:25 UTC) #13
tlively
4 years, 5 months ago (2016-06-27 22:13:24 UTC) #14
Message was sent while issue was closed.
https://codereview.chromium.org/2095763002/diff/80001/src/IceCfg.cpp
File src/IceCfg.cpp (right):

https://codereview.chromium.org/2095763002/diff/80001/src/IceCfg.cpp#newcode656
src/IceCfg.cpp:656: return A1->getAlignInBytes() >= A2->getAlignInBytes();
On 2016/06/27 21:38:10, Karl wrote:
> For stable sort, shouldn't this be >?

Done.

Powered by Google App Engine