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

Issue 312003002: Port net/tools/balsa to non-Linux platforms. (Closed)

Created:
6 years, 6 months ago by wtc
Modified:
6 years, 5 months ago
Reviewers:
Nico, Ryan Hamilton
CC:
chromium-reviews, cbentzel+watch_chromium.org, dmziegler
Visibility:
Public.

Description

Port net/tools/balsa to non-Linux platforms. R=rch@chromium.org BUG=none TEST=net_unittests --gtest_filter=*Balsa* Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276394

Patch Set 1 #

Patch Set 2 : Fix Android compilation error. #

Total comments: 3

Patch Set 3 : Rebase #

Patch Set 4 : Add a comment to explain why we undefine NO_ERROR. #

Patch Set 5 : Fix Windows compiler warnings #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -46 lines) Patch
M net/net.gyp View 1 2 4 chunks +27 lines, -27 lines 0 comments Download
M net/net.gypi View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M net/tools/balsa/balsa_enums.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M net/tools/balsa/balsa_frame.h View 1 chunk +0 lines, -2 lines 0 comments Download
M net/tools/balsa/balsa_frame.cc View 1 2 3 4 4 chunks +8 lines, -7 lines 2 comments Download
M net/tools/balsa/balsa_headers.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M net/tools/balsa/balsa_headers.cc View 1 4 chunks +18 lines, -7 lines 0 comments Download
M net/tools/balsa/string_piece_utils.h View 2 chunks +29 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
wtc
Ryan, I am submitting this CL for review so we have the option of continuing ...
6 years, 6 months ago (2014-06-04 00:56:12 UTC) #1
Ryan Hamilton
lgtm https://codereview.chromium.org/312003002/diff/20001/net/tools/balsa/balsa_enums.h File net/tools/balsa/balsa_enums.h (right): https://codereview.chromium.org/312003002/diff/20001/net/tools/balsa/balsa_enums.h#newcode27 net/tools/balsa/balsa_enums.h:27: #undef NO_ERROR On 2014/06/04 00:56:12, wtc wrote: > ...
6 years, 6 months ago (2014-06-06 18:20:56 UTC) #2
wtc
The CQ bit was checked by wtc@chromium.org
6 years, 6 months ago (2014-06-10 01:00:51 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wtc@chromium.org/312003002/60001
6 years, 6 months ago (2014-06-10 01:03:26 UTC) #4
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_clang_dbg on tryserver.chromium ...
6 years, 6 months ago (2014-06-10 14:55:27 UTC) #5
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-10 15:22:24 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_triggered_tests on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg_triggered_tests/builds/161125)
6 years, 6 months ago (2014-06-10 15:22:25 UTC) #7
wtc
https://codereview.chromium.org/312003002/diff/20001/net/tools/balsa/balsa_enums.h File net/tools/balsa/balsa_enums.h (right): https://codereview.chromium.org/312003002/diff/20001/net/tools/balsa/balsa_enums.h#newcode27 net/tools/balsa/balsa_enums.h:27: #undef NO_ERROR On 2014/06/06 18:20:56, Ryan Hamilton wrote: > ...
6 years, 6 months ago (2014-06-10 16:56:38 UTC) #8
wtc
The CQ bit was checked by wtc@chromium.org
6 years, 6 months ago (2014-06-10 16:56:43 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wtc@chromium.org/312003002/80001
6 years, 6 months ago (2014-06-10 17:02:18 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_clang_dbg on tryserver.chromium ...
6 years, 6 months ago (2014-06-11 01:04:28 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-11 07:06:59 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/win_chromium_x64_rel/builds/18803)
6 years, 6 months ago (2014-06-11 07:07:00 UTC) #13
wtc
The CQ bit was checked by wtc@chromium.org
6 years, 6 months ago (2014-06-11 14:39:58 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wtc@chromium.org/312003002/80001
6 years, 6 months ago (2014-06-11 14:42:20 UTC) #15
commit-bot: I haz the power
Change committed as 276394
6 years, 6 months ago (2014-06-11 14:44:27 UTC) #16
Nico
(If the answer to the question below is "no": There's a similar intrinsic to ffs() ...
6 years, 5 months ago (2014-07-04 00:27:31 UTC) #17
wtc
https://codereview.chromium.org/312003002/diff/80001/net/tools/balsa/balsa_frame.cc File net/tools/balsa/balsa_frame.cc (right): https://codereview.chromium.org/312003002/diff/80001/net/tools/balsa/balsa_frame.cc#newcode585 net/tools/balsa/balsa_frame.cc:585: current += (ffs(colon_msk) - 1); On 2014/07/04 00:27:31, Nico ...
6 years, 5 months ago (2014-07-07 16:50:16 UTC) #18
Nico
6 years, 5 months ago (2014-07-07 16:54:16 UTC) #19
On Mon, Jul 7, 2014 at 9:50 AM, <wtc@chromium.org> wrote:

>
> https://codereview.chromium.org/312003002/diff/80001/net/
> tools/balsa/balsa_frame.cc
> File net/tools/balsa/balsa_frame.cc (right):
>
> https://codereview.chromium.org/312003002/diff/80001/net/
> tools/balsa/balsa_frame.cc#newcode585
> net/tools/balsa/balsa_frame.cc:585: current += (ffs(colon_msk) - 1);
>
> On 2014/07/04 00:27:31, Nico (away) wrote:
>
>> I believe ffs() is only available if strings.h was included. clang/win
>>
> sets
>
>> __SSE2__ but there's no strings.h header on Windows, so it can't find
>>
> ffs().
>
>  Taking a step back, what is this tool for? Is it
>>
> performance-sensitive? If not,
>
>> could this block (and a similar one below) just go away?
>>
>
> Chromium uses the code in net/tools/balsa only in some (non-performance)
> tests. So it is not necessary for Chromium to compile this code with the
> best performance. Also, if everything goes well, we should be able to
> replace this code with something else within two or three weeks.
>
> However, if it's not hard to port this code to Windows, I can take a
> stab at it. So I'd be interested in learning about the Windows
> equivalent of ffs(). Is it the _BitScanForward() function?
>

Yes. But if you don't need the perf and this code is going away soon, maybe
the two SSE2 blocks could just be deleted?


>
> https://codereview.chromium.org/312003002/
>

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698