v8/include
thakis 643c24eb95 Set V8_CC_GNU or V8_CC_MSVC for clang in gcc / cl mode.
Also, remove V8_CC_CLANG since it's not read anywhere (and ideally shouldn't
be).

Clang tries to be compatible with gcc in clang mode, and with msvc in clang-cl
mode. It wants to go down the same code paths that these compilers want to go
down in most cases.

For example, V8PRIxPTR was set incorrectly on Windows 64-bit before this change
since macros.h assumed that checking for V8_CC_MSVC is enough to find LLP64
systems, but V8_CC_MSVC wasn't set for clang.  Most other existing checks for
V8_CC_MSVC should be taken for clang-cl too (and for the remaining ones,
clang-cl is happy with either code path).

Likewise, V8_IMMEDIATE_CRASH is currently set to a suboptimal value with clang
since __builtin_trap() is only used if V8_CC_GNU is set.

Including clang in the gcc and cl macros is also what chromium does.

BUG=chromium:82385
LOG=y

Review URL: https://codereview.chromium.org/757553004

Cr-Commit-Position: refs/heads/master@{#25592}
2014-12-02 05:23:21 +00:00
..
libplatform Revert "Forward declaration for Isolate / Platform in libplatform.h." and "Fixes d8 on windows following.". 2014-11-19 07:28:07 +00:00
v8-debug.h Expose function CheckDebugBreak in the debugger api 2014-08-20 11:04:05 +00:00
v8-platform.h Remove default NOP implementation of MonotonicallyIncreasingTime. 2014-10-09 10:44:30 +00:00
v8-profiler.h The idea behind of this solution is to use the existing "relocation info" instead of consumption the CodeLinePosition events emitted by the V8 compilers. 2014-11-06 09:17:14 +00:00
v8-testing.h Bulk update of Google copyright headers in source files. 2014-04-29 06:42:26 +00:00
v8-util.h Make presubmit script happy again. 2014-06-10 09:24:00 +00:00
v8.h Use deadline in IdleNotification. 2014-11-28 10:59:24 +00:00
v8config.h Set V8_CC_GNU or V8_CC_MSVC for clang in gcc / cl mode. 2014-12-02 05:23:21 +00:00