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

Issue 1851163002: Correct error reporting bit for parallel PNaCl bitcode parses. (Closed)

Created:
4 years, 8 months ago by Karl
Modified:
4 years, 8 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

Correct error reporting bit for parallel PNaCl bitcode parses. This CL adds a way to deal with the fact that parallel parses of function blocks (in PNaCl bitcode parsers) parse an extract buffer of bits surrounding the function block. It does this by adding the field ErrorOffset to a bitstream reader, and the bitstream cursor function getErrorBitNo() to convert bit positions in the bitstream reader by adding the number of bytes specified by field ErrorOffset. BUG= https://bugs.chromium.org/p/nativeclient/issues/detail?id=4363 R=stichnot@chromium.org Committed: https://chromium.googlesource.com/native_client/pnacl-llvm/+/34cb8ae903666b450f96df1b57ec31ae413216b7

Patch Set 1 #

Patch Set 2 : Clean up code. #

Patch Set 3 : Fix nit. #

Total comments: 2

Patch Set 4 : Fix nit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -9 lines) Patch
M include/llvm/Bitcode/NaCl/NaClBitstreamReader.h View 1 2 3 4 chunks +24 lines, -8 lines 0 comments Download
M lib/Bitcode/NaCl/Reader/NaClBitstreamReader.cpp View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 8 (3 generated)
Karl
4 years, 8 months ago (2016-04-01 20:47:29 UTC) #2
Karl
4 years, 8 months ago (2016-04-01 20:47:57 UTC) #4
Jim Stichnoth
lgtm https://codereview.chromium.org/1851163002/diff/40001/include/llvm/Bitcode/NaCl/NaClBitstreamReader.h File include/llvm/Bitcode/NaCl/NaClBitstreamReader.h (right): https://codereview.chromium.org/1851163002/diff/40001/include/llvm/Bitcode/NaCl/NaClBitstreamReader.h#newcode235 include/llvm/Bitcode/NaCl/NaClBitstreamReader.h:235: size_t ErrorOffset; Consider "size_t ErrorOffset = 0;" and ...
4 years, 8 months ago (2016-04-01 23:52:30 UTC) #5
Karl
Committed patchset #4 (id:60001) manually as 34cb8ae903666b450f96df1b57ec31ae413216b7 (presubmit successful).
4 years, 8 months ago (2016-04-02 17:06:28 UTC) #7
Karl
4 years, 8 months ago (2016-04-02 17:16:50 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/1851163002/diff/40001/include/llvm/Bitcode/Na...
File include/llvm/Bitcode/NaCl/NaClBitstreamReader.h (right):

https://codereview.chromium.org/1851163002/diff/40001/include/llvm/Bitcode/Na...
include/llvm/Bitcode/NaCl/NaClBitstreamReader.h:235: size_t ErrorOffset;
On 2016/04/01 23:52:30, stichnot wrote:
> Consider "size_t ErrorOffset = 0;" and then you can remove ErrorOffset(0) from
3
> of the ctors.
> 
> Also, reflow comment.

Done.

Powered by Google App Engine
This is Rietveld 408576698