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

Issue 444443002: Subzero: Align the stack at the point of function calls. (Closed)

Created:
6 years, 4 months ago by wala
Modified:
6 years, 4 months ago
CC:
native-client-reviews_googlegroups.com
Base URL:
https://gerrit.chromium.org/gerrit/p/native_client/pnacl-subzero.git@master
Visibility:
Public.

Description

Subzero: Align the stack at the point of function calls. Be compatible with the x86-32 calling convention by ensuring that the stack is aligned to 16 bytes at the point of the call instruction. Also ensure that vector arguments passed on the stack are 16 byte aligned. Also, make alloca instructions respect alignment. BUG=none R=jvoung@chromium.org, stichnot@chromium.org Committed: https://gerrit.chromium.org/gerrit/gitweb?p=native_client/pnacl-subzero.git;a=commit;h=105b704

Patch Set 1 #

Patch Set 2 : Improve wording of a comment and reorder function in crosstest #

Total comments: 22

Patch Set 3 : First round of comments. #

Total comments: 1

Patch Set 4 : Use fewer instructions to implement aligned alloca #

Patch Set 5 : Fix comments and style in the crosstest #

Total comments: 10

Patch Set 6 : Comments round 2 #

Total comments: 4

Patch Set 7 : Comments round 3 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+791 lines, -192 lines) Patch
M crosstest/crosstest.py View 1 chunk +2 lines, -3 lines 0 comments Download
M crosstest/runtests.sh View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
A crosstest/test_calling_conv.h View 1 2 3 4 5 6 1 chunk +36 lines, -0 lines 0 comments Download
A crosstest/test_calling_conv.cpp View 1 2 3 4 5 6 1 chunk +95 lines, -0 lines 0 comments Download
A crosstest/test_calling_conv.def View 1 2 3 4 5 6 1 chunk +26 lines, -0 lines 0 comments Download
A crosstest/test_calling_conv_main.cpp View 1 2 3 4 1 chunk +177 lines, -0 lines 0 comments Download
M src/IceInstX8632.h View 1 2 3 4 5 6 4 chunks +39 lines, -0 lines 0 comments Download
M src/IceInstX8632.cpp View 1 2 3 4 5 6 4 chunks +38 lines, -0 lines 0 comments Download
M src/IceTargetLoweringX8632.h View 1 2 3 4 5 6 3 chunks +7 lines, -0 lines 0 comments Download
M src/IceTargetLoweringX8632.cpp View 1 2 3 4 5 6 17 chunks +144 lines, -61 lines 0 comments Download
M tests_lit/llvm2ice_tests/64bit.pnacl.ll View 3 chunks +58 lines, -46 lines 0 comments Download
M tests_lit/llvm2ice_tests/alloc.ll View 1 2 3 2 chunks +76 lines, -27 lines 0 comments Download
M tests_lit/llvm2ice_tests/ebp_args.ll View 1 chunk +20 lines, -15 lines 0 comments Download
M tests_lit/llvm2ice_tests/fp.pnacl.ll View 4 chunks +8 lines, -8 lines 0 comments Download
M tests_lit/llvm2ice_tests/undef.ll View 1 chunk +1 line, -2 lines 0 comments Download
M tests_lit/llvm2ice_tests/vector-arg.ll View 4 chunks +55 lines, -30 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
wala
6 years, 4 months ago (2014-08-04 22:07:28 UTC) #1
Jim Stichnoth
https://codereview.chromium.org/444443002/diff/20001/crosstest/test_calling_conv.h File crosstest/test_calling_conv.h (right): https://codereview.chromium.org/444443002/diff/20001/crosstest/test_calling_conv.h#newcode11 crosstest/test_calling_conv.h:11: // convention Period at the end of the sentence? ...
6 years, 4 months ago (2014-08-05 18:09:27 UTC) #2
wala
https://codereview.chromium.org/444443002/diff/20001/crosstest/test_calling_conv.h File crosstest/test_calling_conv.h (right): https://codereview.chromium.org/444443002/diff/20001/crosstest/test_calling_conv.h#newcode11 crosstest/test_calling_conv.h:11: // convention On 2014/08/05 18:09:26, stichnot wrote: > Period ...
6 years, 4 months ago (2014-08-05 23:57:04 UTC) #3
wala
https://codereview.chromium.org/444443002/diff/40001/src/IceTargetLoweringX8632.cpp File src/IceTargetLoweringX8632.cpp (right): https://codereview.chromium.org/444443002/diff/40001/src/IceTargetLoweringX8632.cpp#newcode1021 src/IceTargetLoweringX8632.cpp:1021: if (AdjustAlignment) { 1018 - 1019 is better expressed ...
6 years, 4 months ago (2014-08-06 03:07:30 UTC) #4
wala
6 years, 4 months ago (2014-08-06 03:07:32 UTC) #5
Jim Stichnoth
lgtm https://codereview.chromium.org/444443002/diff/120001/crosstest/test_calling_conv.cpp File crosstest/test_calling_conv.cpp (right): https://codereview.chromium.org/444443002/diff/120001/crosstest/test_calling_conv.cpp#newcode21 crosstest/test_calling_conv.cpp:21: #define CALL_AS_TYPE(Ty) (reinterpret_cast<Ty *>(Callee)) Here and below, it ...
6 years, 4 months ago (2014-08-06 18:26:16 UTC) #6
wala
https://codereview.chromium.org/444443002/diff/120001/crosstest/test_calling_conv.cpp File crosstest/test_calling_conv.cpp (right): https://codereview.chromium.org/444443002/diff/120001/crosstest/test_calling_conv.cpp#newcode21 crosstest/test_calling_conv.cpp:21: #define CALL_AS_TYPE(Ty) (reinterpret_cast<Ty *>(Callee)) On 2014/08/06 18:26:15, stichnot wrote: ...
6 years, 4 months ago (2014-08-07 18:09:21 UTC) #7
jvoung (off chromium)
LGTM https://codereview.chromium.org/444443002/diff/140001/crosstest/test_calling_conv.h File crosstest/test_calling_conv.h (right): https://codereview.chromium.org/444443002/diff/140001/crosstest/test_calling_conv.h#newcode36 crosstest/test_calling_conv.h:36: callee_vlvlvfvdviv_Ty callee_vlvlvfvdviv, Subzero_callee_vlvlvfvdviv; wow =) Well, my only ...
6 years, 4 months ago (2014-08-12 01:36:23 UTC) #8
wala
https://codereview.chromium.org/444443002/diff/140001/crosstest/test_calling_conv.h File crosstest/test_calling_conv.h (right): https://codereview.chromium.org/444443002/diff/140001/crosstest/test_calling_conv.h#newcode36 crosstest/test_calling_conv.h:36: callee_vlvlvfvdviv_Ty callee_vlvlvfvdviv, Subzero_callee_vlvlvfvdviv; On 2014/08/12 01:36:23, jvoung wrote: > ...
6 years, 4 months ago (2014-08-12 02:56:09 UTC) #9
wala
6 years, 4 months ago (2014-08-12 02:56:24 UTC) #10
Message was sent while issue was closed.
Committed patchset #7 manually as 105b704 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698