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

Issue 23248006: Move OS/compiler/feature detection to public v8config.h header. (Closed)

Created:
7 years, 4 months ago by Benedikt Meurer
Modified:
6 years ago
CC:
v8-dev
Visibility:
Public.

Description

Move OS/compiler/feature detection to public v8config.h header. From now on the v8config.h header should be the one and only file where we do (freaky) checks to detect OS, C++ compiler or certain compiler features. Since we need that both internally and for the public API, the new v8config.h is the proper place to add (everything is prefixed with V8_ so we are safe). R=svenpanne@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=16281

Patch Set 1 #

Patch Set 2 : REBASE #

Patch Set 3 : Also add V8_ALIGNAS() there, required for the CPU profiler queue. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+313 lines, -162 lines) Patch
M include/v8.h View 2 chunks +13 lines, -38 lines 0 comments Download
A include/v8config.h View 1 2 1 chunk +287 lines, -0 lines 4 comments Download
M include/v8stdint.h View 2 chunks +4 lines, -2 lines 0 comments Download
M src/checks.h View 2 chunks +2 lines, -2 lines 0 comments Download
M src/globals.h View 2 chunks +7 lines, -120 lines 0 comments Download

Messages

Total messages: 8 (1 generated)
Benedikt Meurer
As discussed offline, here's the v8config.h approach, which does not depend on GYP. The V8_OS_ ...
7 years, 4 months ago (2013-08-22 09:35:59 UTC) #1
Sven Panne
lgtm
7 years, 4 months ago (2013-08-23 07:29:08 UTC) #2
Benedikt Meurer
Committed patchset #3 manually as r16281.
7 years, 4 months ago (2013-08-23 07:32:38 UTC) #3
Nico
https://codereview.chromium.org/23248006/diff/11001/include/v8config.h File include/v8config.h (right): https://codereview.chromium.org/23248006/diff/11001/include/v8config.h#newcode118 include/v8config.h:118: #if defined(__clang__) This doesn't look like a good approach ...
6 years ago (2014-11-26 21:43:20 UTC) #5
Benedikt Meurer
https://codereview.chromium.org/23248006/diff/11001/include/v8config.h File include/v8config.h (right): https://codereview.chromium.org/23248006/diff/11001/include/v8config.h#newcode118 include/v8config.h:118: #if defined(__clang__) So you're talking about either setting both ...
6 years ago (2014-12-01 18:02:01 UTC) #6
Nico
https://codereview.chromium.org/23248006/diff/11001/include/v8config.h File include/v8config.h (right): https://codereview.chromium.org/23248006/diff/11001/include/v8config.h#newcode118 include/v8config.h:118: #if defined(__clang__) On 2014/12/01 18:02:00, Benedikt Meurer wrote: > ...
6 years ago (2014-12-01 18:03:48 UTC) #7
Nico
6 years ago (2014-12-01 20:10:08 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/23248006/diff/11001/include/v8config.h
File include/v8config.h (right):

https://codereview.chromium.org/23248006/diff/11001/include/v8config.h#newcod...
include/v8config.h:118: #if defined(__clang__)
On 2014/12/01 18:02:00, Benedikt Meurer wrote:
> So you're talking about either setting both V8_CC_CLANG and V8_CC_GNU or
setting
> both V8_CC_CLANG and V8_CC_MSVC? That'll require some careful changes to
several
> files.

It looks like it Just Works: https://codereview.chromium.org/757553004/

Maybe I didn't look for the right files? Were you thinking of anything in
particular?

Powered by Google App Engine
This is Rietveld 408576698