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

Issue 2473153003: Move some compiler intrinsic #defines to base/. (Closed)

Created:
4 years, 1 month ago by palmer
Modified:
4 years, 1 month ago
CC:
blink-reviews, blink-reviews-wtf_chromium.org, chromium-reviews, Mikhail
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move some compiler intrinsic #defines to base/. PartitionAlloc uses these, and we are moving PA to base/. BUG=632441 Committed: https://crrev.com/58184a8289cf6ae9cbe623b0c50f7e226e8bb35b Cr-Commit-Position: refs/heads/master@{#430681}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Move NEVER_INLINE to Blink, add a TODO. #

Patch Set 3 : Don't redefine ALWAYS_INLINE in ios/... . #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -46 lines) Patch
M base/compiler_specific.h View 1 2 chunks +16 lines, -0 lines 2 comments Download
M ios/third_party/blink/src/html_tokenizer_adapter.h View 1 2 1 chunk +1 line, -2 lines 3 comments Download
M third_party/WebKit/Source/wtf/Compiler.h View 1 3 chunks +10 lines, -44 lines 0 comments Download
M third_party/WebKit/Source/wtf/DEPS View 1 1 chunk +1 line, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 30 (13 generated)
palmer
thakis: You are the OWNER of both areas, so I picked you. It should be ...
4 years, 1 month ago (2016-11-03 22:34:46 UTC) #2
palmer
thakis: You are the OWNER of both areas, so I picked you. It should be ...
4 years, 1 month ago (2016-11-03 22:34:47 UTC) #3
palmer
Adding dcheng and esprehn for Pacific-time felicity.
4 years, 1 month ago (2016-11-07 20:30:02 UTC) #5
esprehn
lgtm
4 years, 1 month ago (2016-11-07 20:36:18 UTC) #6
dcheng
LGTM
4 years, 1 month ago (2016-11-07 20:41:47 UTC) #7
dcheng
https://codereview.chromium.org/2473153003/diff/1/base/compiler_specific.h File base/compiler_specific.h (right): https://codereview.chromium.org/2473153003/diff/1/base/compiler_specific.h#newcode104 base/compiler_specific.h:104: #define NEVER_INLINE NOINLINE Btw, maybe a TODO here for ...
4 years, 1 month ago (2016-11-07 20:43:10 UTC) #8
palmer
https://codereview.chromium.org/2473153003/diff/1/base/compiler_specific.h File base/compiler_specific.h (right): https://codereview.chromium.org/2473153003/diff/1/base/compiler_specific.h#newcode104 base/compiler_specific.h:104: #define NEVER_INLINE NOINLINE > Btw, maybe a TODO here ...
4 years, 1 month ago (2016-11-07 21:54:14 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2473153003/20001
4 years, 1 month ago (2016-11-07 21:55:42 UTC) #12
palmer
+rohitrao for ios/.
4 years, 1 month ago (2016-11-07 22:21:22 UTC) #14
rohitrao (ping after 24h)
+sdefresne to confirm that the switch to just "inline" will be ok for iOS. I'd ...
4 years, 1 month ago (2016-11-07 23:16:13 UTC) #18
palmer
https://codereview.chromium.org/2473153003/diff/40001/ios/third_party/blink/src/html_tokenizer_adapter.h File ios/third_party/blink/src/html_tokenizer_adapter.h (left): https://codereview.chromium.org/2473153003/diff/40001/ios/third_party/blink/src/html_tokenizer_adapter.h#oldcode14 ios/third_party/blink/src/html_tokenizer_adapter.h:14: #define ALWAYS_INLINE inline __attribute__((always_inline)) > Is this being changed ...
4 years, 1 month ago (2016-11-07 23:29:51 UTC) #19
sdefresne
Looks fine for ios/. lgtm https://codereview.chromium.org/2473153003/diff/40001/base/compiler_specific.h File base/compiler_specific.h (right): https://codereview.chromium.org/2473153003/diff/40001/base/compiler_specific.h#newcode209 base/compiler_specific.h:209: #define LIKELY(x) __builtin_expect((x), 1) ...
4 years, 1 month ago (2016-11-08 08:40:20 UTC) #22
rohitrao (ping after 24h)
lgtm
4 years, 1 month ago (2016-11-08 12:40:27 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2473153003/40001
4 years, 1 month ago (2016-11-08 19:11:05 UTC) #26
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 1 month ago (2016-11-08 19:18:31 UTC) #27
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/58184a8289cf6ae9cbe623b0c50f7e226e8bb35b Cr-Commit-Position: refs/heads/master@{#430681}
4 years, 1 month ago (2016-11-08 19:39:45 UTC) #29
palmer
4 years, 1 month ago (2016-11-16 23:45:22 UTC) #30
Message was sent while issue was closed.
https://codereview.chromium.org/2473153003/diff/40001/base/compiler_specific.h
File base/compiler_specific.h (right):

https://codereview.chromium.org/2473153003/diff/40001/base/compiler_specific....
base/compiler_specific.h:209: #define LIKELY(x) __builtin_expect((x), 1)
> Shouldn't this be __builtin_expect(!!(x), 1)? Otherwise, the following will be
fails the LIKELY:
> 
> Foo* ptr = new Foo;
> if (LIKELY(ptr)) {
>   ...
> }

Somehow, I missed this comment. Fix coming right up. Thanks!

Powered by Google App Engine
This is Rietveld 408576698