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

Issue 2262373002: Create one-off tool pnacl-hack-memset (Closed)

Created:
4 years, 4 months ago by Karl
Modified:
4 years, 4 months ago
CC:
native-client-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/native_client/pnacl-llvm.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Create one-off tool pnacl-hack-memset This tool takes a pexe, looks for calls to memset that (were) broken in subzero, and does a patch to such calls. That is, if the 2nd argument is a negative i8 (i.e. 0x80 through 0xff), and the third argument is a constant, the code adds zero to the third argument. This fix disables the (formerly) broken subzero optimization. This hack is only necessary until about 10/31/16, when M54 gets released for chromeos. Note: Has command-line option --show-fixes if you want to see the calls that were fixed. BUG=None R=stichnot@chromium.org Committed: https://chromium.googlesource.com/native_client/pnacl-llvm/+/5a8750930b705846f477de8c51a837e467ad875d

Patch Set 1 #

Total comments: 12

Patch Set 2 : Fix issues raised in patch set 1. #

Total comments: 4

Patch Set 3 : Fix comments as suggested in patch set 2. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+217 lines, -8 lines) Patch
M tools/CMakeLists.txt View 1 chunk +1 line, -0 lines 0 comments Download
M tools/LLVMBuild.txt View 1 chunk +1 line, -1 line 0 comments Download
M tools/Makefile View 1 1 chunk +2 lines, -1 line 0 comments Download
A + tools/pnacl-hack-memset/CMakeLists.txt View 1 chunk +2 lines, -2 lines 0 comments Download
A + tools/pnacl-hack-memset/LLVMBuild.txt View 2 chunks +2 lines, -2 lines 0 comments Download
A + tools/pnacl-hack-memset/Makefile View 2 chunks +2 lines, -2 lines 0 comments Download
A tools/pnacl-hack-memset/pnacl-hack-memset.cpp View 1 2 1 chunk +207 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
Karl
4 years, 4 months ago (2016-08-22 21:19:30 UTC) #3
Jim Stichnoth
https://codereview.chromium.org/2262373002/diff/1/tools/pnacl-hack-memset/pnacl-hack-memset.cpp File tools/pnacl-hack-memset/pnacl-hack-memset.cpp (right): https://codereview.chromium.org/2262373002/diff/1/tools/pnacl-hack-memset/pnacl-hack-memset.cpp#newcode6 tools/pnacl-hack-memset/pnacl-hack-memset.cpp:6: //===-- pnacl-thaw.cpp - The low-level NaCl bitcode thawer ----------------===// ...
4 years, 4 months ago (2016-08-22 21:55:44 UTC) #4
Karl
https://codereview.chromium.org/2262373002/diff/1/tools/pnacl-hack-memset/pnacl-hack-memset.cpp File tools/pnacl-hack-memset/pnacl-hack-memset.cpp (right): https://codereview.chromium.org/2262373002/diff/1/tools/pnacl-hack-memset/pnacl-hack-memset.cpp#newcode6 tools/pnacl-hack-memset/pnacl-hack-memset.cpp:6: //===-- pnacl-thaw.cpp - The low-level NaCl bitcode thawer ----------------===// ...
4 years, 4 months ago (2016-08-23 15:17:31 UTC) #5
Jim Stichnoth
If this were a permanent tool, I would ask for tests. :) Otherwise lgtm. https://codereview.chromium.org/2262373002/diff/20001/tools/pnacl-hack-memset/pnacl-hack-memset.cpp ...
4 years, 4 months ago (2016-08-23 17:20:36 UTC) #6
Karl
Committed patchset #3 (id:40001) manually as 5a8750930b705846f477de8c51a837e467ad875d (presubmit successful).
4 years, 4 months ago (2016-08-23 17:44:02 UTC) #8
Karl
4 years, 4 months ago (2016-08-23 17:44:14 UTC) #9
Message was sent while issue was closed.
https://codereview.chromium.org/2262373002/diff/20001/tools/pnacl-hack-memset...
File tools/pnacl-hack-memset/pnacl-hack-memset.cpp (right):

https://codereview.chromium.org/2262373002/diff/20001/tools/pnacl-hack-memset...
tools/pnacl-hack-memset/pnacl-hack-memset.cpp:6: //===-- pnacl-hack-memset.cpp -
Fix (interim) subzero bug -----------------===//
On 2016/08/23 17:20:36, stichnot wrote:
> I would prefer capitalized Subzero... here and below

Done.

https://codereview.chromium.org/2262373002/diff/20001/tools/pnacl-hack-memset...
tools/pnacl-hack-memset/pnacl-hack-memset.cpp:10: // Fixes generated pexe's so
that a fixed fixed subzero bug (but not
On 2016/08/23 17:20:36, stichnot wrote:
> Reflow to 80-col.  :)
> 
> "fixed fixed"
> 
> This first sentence doesn't actually parse.
> 
> s/an zero/a zero/

Done.

Powered by Google App Engine
This is Rietveld 408576698