Changeset 236450 in webkit
- Timestamp:
- Sep 24, 2018, 8:05:13 PM (7 years ago)
- Location:
- trunk/Source
- Files:
-
- 36 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r236437 r236450 1 2018-09-24 Fujii Hironori <Hironori.Fujii@sony.com> 2 3 Rename WTF_COMPILER_GCC_OR_CLANG to WTF_COMPILER_GCC_COMPATIBLE 4 https://bugs.webkit.org/show_bug.cgi?id=189733 5 6 Reviewed by Michael Catanzaro. 7 8 * assembler/ARM64Assembler.h: 9 * assembler/ARMAssembler.h: 10 (JSC::ARMAssembler::cacheFlush): 11 * assembler/MacroAssemblerARM.cpp: 12 (JSC::isVFPPresent): 13 * assembler/MacroAssemblerARM64.cpp: 14 * assembler/MacroAssemblerARMv7.cpp: 15 * assembler/MacroAssemblerMIPS.cpp: 16 * assembler/MacroAssemblerX86Common.cpp: 17 * heap/HeapCell.cpp: 18 * heap/HeapCell.h: 19 * jit/HostCallReturnValue.h: 20 * jit/JIT.h: 21 * jit/JITOperations.cpp: 22 * jit/ThunkGenerators.cpp: 23 * runtime/ArrayConventions.cpp: 24 (JSC::clearArrayMemset): 25 * runtime/JSBigInt.cpp: 26 (JSC::JSBigInt::digitDiv): 27 1 28 2018-09-24 Saam Barati <sbarati@apple.com> 2 29 -
trunk/Source/JavaScriptCore/assembler/ARM64Assembler.h
r234984 r236450 2853 2853 unsigned debugOffset() { return m_buffer.debugOffset(); } 2854 2854 2855 #if OS(LINUX) && COMPILER(GCC_ OR_CLANG)2855 #if OS(LINUX) && COMPILER(GCC_COMPATIBLE) 2856 2856 static inline void linuxPageFlush(uintptr_t begin, uintptr_t end) 2857 2857 { -
trunk/Source/JavaScriptCore/assembler/ARMAssembler.h
r234984 r236450 1165 1165 } 1166 1166 1167 #if OS(LINUX) && COMPILER(GCC_ OR_CLANG)1167 #if OS(LINUX) && COMPILER(GCC_COMPATIBLE) 1168 1168 static inline void linuxPageFlush(uintptr_t begin, uintptr_t end) 1169 1169 { … … 1185 1185 static void cacheFlush(void* code, size_t size) 1186 1186 { 1187 #if OS(LINUX) && COMPILER(GCC_ OR_CLANG)1187 #if OS(LINUX) && COMPILER(GCC_COMPATIBLE) 1188 1188 size_t page = pageSize(); 1189 1189 uintptr_t current = reinterpret_cast<uintptr_t>(code); -
trunk/Source/JavaScriptCore/assembler/MacroAssemblerARM.cpp
r221002 r236450 61 61 #endif // OS(LINUX) 62 62 63 #if (COMPILER(GCC_ OR_CLANG) && defined(__VFP_FP__))63 #if (COMPILER(GCC_COMPATIBLE) && defined(__VFP_FP__)) 64 64 return true; 65 65 #else … … 104 104 using namespace ARMRegisters; 105 105 106 #if COMPILER(GCC_ OR_CLANG)106 #if COMPILER(GCC_COMPATIBLE) 107 107 108 108 // The following are offsets for Probe::State fields accessed … … 428 428 "pop { pc }" "\n" 429 429 ); 430 #endif // COMPILER(GCC_ OR_CLANG)430 #endif // COMPILER(GCC_COMPATIBLE) 431 431 432 432 void MacroAssembler::probe(Probe::Function function, void* arg) -
trunk/Source/JavaScriptCore/assembler/MacroAssemblerARM64.cpp
r231118 r236450 45 45 using namespace ARM64Registers; 46 46 47 #if COMPILER(GCC_ OR_CLANG)47 #if COMPILER(GCC_COMPATIBLE) 48 48 49 49 // The following are offsets for Probe::State fields accessed … … 510 510 "ret" "\n" 511 511 ); 512 #endif // COMPILER(GCC_ OR_CLANG)512 #endif // COMPILER(GCC_COMPATIBLE) 513 513 514 514 void MacroAssembler::probe(Probe::Function function, void* arg) -
trunk/Source/JavaScriptCore/assembler/MacroAssemblerARMv7.cpp
r221002 r236450 40 40 using namespace ARMRegisters; 41 41 42 #if COMPILER(GCC_ OR_CLANG)42 #if COMPILER(GCC_COMPATIBLE) 43 43 44 44 // The following are offsets for Probe::State fields accessed … … 366 366 "pop { pc }" "\n" 367 367 ); 368 #endif // COMPILER(GCC_ OR_CLANG)368 #endif // COMPILER(GCC_COMPATIBLE) 369 369 370 370 void MacroAssembler::probe(Probe::Function function, void* arg) -
trunk/Source/JavaScriptCore/assembler/MacroAssemblerMIPS.cpp
r231554 r236450 41 41 using namespace MIPSRegisters; 42 42 43 #if COMPILER(GCC_ OR_CLANG)43 #if COMPILER(GCC_COMPATIBLE) 44 44 45 45 // The following are offsets for Probe::State fields accessed … … 551 551 ".set pop" "\n" 552 552 ); 553 #endif // COMPILER(GCC_ OR_CLANG)553 #endif // COMPILER(GCC_COMPATIBLE) 554 554 555 555 void MacroAssembler::probe(Probe::Function function, void* arg) -
trunk/Source/JavaScriptCore/assembler/MacroAssemblerX86Common.cpp
r229988 r236450 172 172 173 173 #if CPU(X86) 174 #if COMPILER(GCC_ OR_CLANG)174 #if COMPILER(GCC_COMPATIBLE) 175 175 asm ( 176 176 ".globl " SYMBOL_STRING(ctiMasmProbeTrampoline) "\n" … … 512 512 513 513 #if CPU(X86_64) 514 #if COMPILER(GCC_ OR_CLANG)514 #if COMPILER(GCC_COMPATIBLE) 515 515 asm ( 516 516 ".globl " SYMBOL_STRING(ctiMasmProbeTrampoline) "\n" … … 706 706 "ret" "\n" 707 707 ); 708 #endif // COMPILER(GCC_ OR_CLANG)708 #endif // COMPILER(GCC_COMPATIBLE) 709 709 #endif // CPU(X86_64) 710 710 -
trunk/Source/JavaScriptCore/heap/HeapCell.cpp
r233236 r236450 43 43 } 44 44 45 #if !COMPILER(GCC_ OR_CLANG)45 #if !COMPILER(GCC_COMPATIBLE) 46 46 void HeapCell::use() const 47 47 { -
trunk/Source/JavaScriptCore/heap/HeapCell.h
r233236 r236450 78 78 // need to use this, but it might be necessary if you're otherwise referring to an object's innards 79 79 // but not the object itself. 80 #if COMPILER(GCC_ OR_CLANG)80 #if COMPILER(GCC_COMPATIBLE) 81 81 void use() const 82 82 { -
trunk/Source/JavaScriptCore/jit/HostCallReturnValue.cpp
r236381 r236450 48 48 } 49 49 50 #if COMPILER(GCC_ OR_CLANG) && CPU(X86_64)50 #if COMPILER(GCC_COMPATIBLE) && CPU(X86_64) 51 51 asm ( 52 52 ".globl " SYMBOL_STRING(getHostCallReturnValue) "\n" … … 57 57 ); 58 58 59 #elif COMPILER(GCC_ OR_CLANG) && CPU(X86)59 #elif COMPILER(GCC_COMPATIBLE) && CPU(X86) 60 60 asm ( 61 61 ".text" "\n" \ … … 73 73 ); 74 74 75 #elif COMPILER(GCC_ OR_CLANG) && CPU(ARM_THUMB2)75 #elif COMPILER(GCC_COMPATIBLE) && CPU(ARM_THUMB2) 76 76 asm ( 77 77 ".text" "\n" … … 86 86 ); 87 87 88 #elif COMPILER(GCC_ OR_CLANG) && CPU(ARM_TRADITIONAL)88 #elif COMPILER(GCC_COMPATIBLE) && CPU(ARM_TRADITIONAL) 89 89 asm ( 90 90 ".text" "\n" … … 108 108 ); 109 109 110 #elif COMPILER(GCC_ OR_CLANG) && CPU(MIPS)110 #elif COMPILER(GCC_COMPATIBLE) && CPU(MIPS) 111 111 112 112 #if WTF_MIPS_PIC -
trunk/Source/JavaScriptCore/jit/HostCallReturnValue.h
r236381 r236450 40 40 extern "C" EncodedJSValue HOST_CALL_RETURN_VALUE_OPTION getHostCallReturnValue() REFERENCED_FROM_ASM WTF_INTERNAL; 41 41 42 #if COMPILER(GCC_ OR_CLANG)42 #if COMPILER(GCC_COMPATIBLE) 43 43 44 44 // This is a public declaration only to convince CLANG not to elide it. … … 50 50 } 51 51 52 #else // COMPILER(GCC_ OR_CLANG)52 #else // COMPILER(GCC_COMPATIBLE) 53 53 54 54 inline void initializeHostCallReturnValue() { } 55 55 56 #endif // COMPILER(GCC_ OR_CLANG)56 #endif // COMPILER(GCC_COMPATIBLE) 57 57 58 58 } // namespace JSC -
trunk/Source/JavaScriptCore/jit/JIT.h
r232444 r236450 30 30 // We've run into some problems where changing the size of the class JIT leads to 31 31 // performance fluctuations. Try forcing alignment in an attempt to stabilize this. 32 #if COMPILER(GCC_ OR_CLANG)32 #if COMPILER(GCC_COMPATIBLE) 33 33 #define JIT_CLASS_ALIGNMENT alignas(32) 34 34 #else -
trunk/Source/JavaScriptCore/jit/JITOperations.cpp
r236381 r236450 2463 2463 auto scope = DECLARE_THROW_SCOPE(*vm); 2464 2464 UNUSED_PARAM(scope); 2465 #if COMPILER(GCC_ OR_CLANG)2465 #if COMPILER(GCC_COMPATIBLE) 2466 2466 void* returnPC = __builtin_return_address(0); 2467 2467 doExceptionFuzzing(exec, scope, "JITOperations", returnPC); 2468 #endif // COMPILER(GCC_ OR_CLANG)2468 #endif // COMPILER(GCC_COMPATIBLE) 2469 2469 } 2470 2470 -
trunk/Source/JavaScriptCore/jit/ThunkGenerators.cpp
r232568 r236450 773 773 typedef MathThunkCallingConvention(*MathThunk)(MathThunkCallingConvention); 774 774 775 #if CPU(X86_64) && COMPILER(GCC_ OR_CLANG) && (OS(DARWIN) || OS(LINUX))775 #if CPU(X86_64) && COMPILER(GCC_COMPATIBLE) && (OS(DARWIN) || OS(LINUX)) 776 776 777 777 #define defineUnaryDoubleOpWrapper(function) \ … … 791 791 static MathThunk UnaryDoubleOpWrapper(function) = &function##Thunk; 792 792 793 #elif CPU(X86) && COMPILER(GCC_ OR_CLANG) && OS(LINUX) && defined(__PIC__)793 #elif CPU(X86) && COMPILER(GCC_COMPATIBLE) && OS(LINUX) && defined(__PIC__) 794 794 #define defineUnaryDoubleOpWrapper(function) \ 795 795 asm( \ … … 815 815 static MathThunk UnaryDoubleOpWrapper(function) = &function##Thunk; 816 816 817 #elif CPU(X86) && COMPILER(GCC_ OR_CLANG) && (OS(DARWIN) || OS(LINUX))817 #elif CPU(X86) && COMPILER(GCC_COMPATIBLE) && (OS(DARWIN) || OS(LINUX)) 818 818 #define defineUnaryDoubleOpWrapper(function) \ 819 819 asm( \ … … 835 835 static MathThunk UnaryDoubleOpWrapper(function) = &function##Thunk; 836 836 837 #elif CPU(ARM_THUMB2) && COMPILER(GCC_ OR_CLANG) && PLATFORM(IOS)837 #elif CPU(ARM_THUMB2) && COMPILER(GCC_COMPATIBLE) && PLATFORM(IOS) 838 838 839 839 #define defineUnaryDoubleOpWrapper(function) \ -
trunk/Source/JavaScriptCore/runtime/ArrayConventions.cpp
r228576 r236450 34 34 void clearArrayMemset(WriteBarrier<Unknown>* base, unsigned count) 35 35 { 36 #if CPU(X86_64) && COMPILER(GCC_ OR_CLANG)36 #if CPU(X86_64) && COMPILER(GCC_COMPATIBLE) 37 37 uint64_t zero = 0; 38 38 asm volatile ( … … 49 49 void clearArrayMemset(double* base, unsigned count) 50 50 { 51 #if CPU(X86_64) && COMPILER(GCC_ OR_CLANG)51 #if CPU(X86_64) && COMPILER(GCC_COMPATIBLE) 52 52 uint64_t pnan = bitwise_cast<uint64_t>(PNaN); 53 53 asm volatile ( -
trunk/Source/JavaScriptCore/runtime/JSBigInt.cpp
r233765 r236450 469 469 { 470 470 ASSERT(high < divisor); 471 #if CPU(X86_64) && COMPILER(GCC_ OR_CLANG)471 #if CPU(X86_64) && COMPILER(GCC_COMPATIBLE) 472 472 Digit quotient; 473 473 Digit rem; … … 480 480 remainder = rem; 481 481 return quotient; 482 #elif CPU(X86) && COMPILER(GCC_ OR_CLANG)482 #elif CPU(X86) && COMPILER(GCC_COMPATIBLE) 483 483 Digit quotient; 484 484 Digit rem; -
trunk/Source/WTF/ChangeLog
r236381 r236450 1 2018-09-24 Fujii Hironori <Hironori.Fujii@sony.com> 2 3 Rename WTF_COMPILER_GCC_OR_CLANG to WTF_COMPILER_GCC_COMPATIBLE 4 https://bugs.webkit.org/show_bug.cgi?id=189733 5 6 Reviewed by Michael Catanzaro. 7 8 Clang for Windows build enables WTF_COMPILER_CLANG and 9 WTF_COMPILER_MSVC, but disables WTF_COMPILER_GCC_OR_CLANG. It is 10 strange WTF_COMPILER_GCC_OR_CLANG is not enabled even though 11 WTF_COMPILER_CLANG is enabled. However, Clang for Windows imitates 12 MSVC, and codes for COMPILER(GCC_OR_CLANG) are for non MSVC. At 13 least at the moment, it is not feasible to define 14 WTF_COMPILER_GCC_OR_CLANG for Clang for Windows. 15 16 To solve the issue, this change renames WTF_COMPILER_GCC_OR_CLANG 17 to WTF_COMPILER_GCC_COMPATIBLE. 18 19 As an exception, I'd like to use IGNORE_WARNINGS_* macros even in 20 Clang for Windows builds. 21 22 * wtf/Assertions.cpp: Replaced COMPILER(GCC_OR_CLANG) with COMPILER(GCC_COMPATIBLE). 23 * wtf/Assertions.h: Ditto. 24 * wtf/Atomics.h: Ditto. 25 * wtf/CheckedArithmetic.h: Ditto. 26 * wtf/FastMalloc.h: Ditto. 27 * wtf/MathExtras.h: Ditto. 28 * wtf/Platform.h: Ditto. 29 * wtf/StdLibExtras.h: Ditto. 30 * wtf/Vector.h: Ditto. 31 * wtf/text/ASCIIFastPath.h: Ditto. 32 * wtf/Compiler.h: Ditto. Replaced "COMPILER(GCC_OR_CLANG)" with "COMPILER(GCC) || COMPILER(CLANG)" of IGNORE_WARNINGS_* macros. 33 1 34 2018-09-21 Yusuke Suzuki <yusukesuzuki@slowstart.org> 2 35 -
trunk/Source/WTF/wtf/Assertions.cpp
r235935 r236450 255 255 *(int *)(uintptr_t)0xbbadbeef = 0; 256 256 // More reliable, but doesn't say BBADBEEF. 257 #if COMPILER(GCC_ OR_CLANG)257 #if COMPILER(GCC_COMPATIBLE) 258 258 __builtin_trap(); 259 259 #else 260 260 ((void(*)())0)(); 261 #endif // COMPILER(GCC_ OR_CLANG)261 #endif // COMPILER(GCC_COMPATIBLE) 262 262 #endif // ASAN_ENABLED 263 263 } -
trunk/Source/WTF/wtf/Assertions.h
r235935 r236450 56 56 57 57 #if OS(WINDOWS) 58 #if !COMPILER(GCC_ OR_CLANG)58 #if !COMPILER(GCC_COMPATIBLE) 59 59 extern "C" void _ReadWriteBarrier(void); 60 60 #pragma intrinsic(_ReadWriteBarrier) … … 103 103 #endif 104 104 105 #if COMPILER(GCC_ OR_CLANG)105 #if COMPILER(GCC_COMPATIBLE) 106 106 #define WTF_PRETTY_FUNCTION __PRETTY_FUNCTION__ 107 107 #else … … 112 112 /* By default MinGW emits warnings when C99 format attributes are used, even if __USE_MINGW_ANSI_STDIO is defined */ 113 113 #define WTF_ATTRIBUTE_PRINTF(formatStringArgument, extraArguments) __attribute__((__format__(gnu_printf, formatStringArgument, extraArguments))) 114 #elif COMPILER(GCC_ OR_CLANG) && !defined(__OBJC__)114 #elif COMPILER(GCC_COMPATIBLE) && !defined(__OBJC__) 115 115 /* WTF logging functions can process %@ in the format string to log a NSObject* but the printf format attribute 116 116 emits a warning when %@ is used in the format string. Until <rdar://problem/5195437> is resolved we can't include … … 142 142 Signals are ignored by the crash reporter on OS X so we must do better. 143 143 */ 144 #if COMPILER(GCC_ OR_CLANG) || COMPILER(MSVC)144 #if COMPILER(GCC_COMPATIBLE) || COMPILER(MSVC) 145 145 #define NO_RETURN_DUE_TO_CRASH NO_RETURN 146 146 #else … … 565 565 inline void compilerFenceForCrash() 566 566 { 567 #if OS(WINDOWS) && !COMPILER(GCC_ OR_CLANG)567 #if OS(WINDOWS) && !COMPILER(GCC_COMPATIBLE) 568 568 _ReadWriteBarrier(); 569 569 #else -
trunk/Source/WTF/wtf/Atomics.h
r234648 r236450 31 31 32 32 #if OS(WINDOWS) 33 #if !COMPILER(GCC_ OR_CLANG)33 #if !COMPILER(GCC_COMPATIBLE) 34 34 extern "C" void _ReadWriteBarrier(void); 35 35 #pragma intrinsic(_ReadWriteBarrier) … … 243 243 inline void compilerFence() 244 244 { 245 #if OS(WINDOWS) && !COMPILER(GCC_ OR_CLANG)245 #if OS(WINDOWS) && !COMPILER(GCC_COMPATIBLE) 246 246 _ReadWriteBarrier(); 247 247 #else -
trunk/Source/WTF/wtf/CheckedArithmetic.h
r234251 r236450 271 271 static inline bool add(LHS lhs, RHS rhs, ResultType& result) WARN_UNUSED_RETURN 272 272 { 273 #if COMPILER(GCC_ OR_CLANG)273 #if COMPILER(GCC_COMPATIBLE) 274 274 ResultType temp; 275 275 if (__builtin_add_overflow(lhs, rhs, &temp)) … … 295 295 static inline bool sub(LHS lhs, RHS rhs, ResultType& result) WARN_UNUSED_RETURN 296 296 { 297 #if COMPILER(GCC_ OR_CLANG)297 #if COMPILER(GCC_COMPATIBLE) 298 298 ResultType temp; 299 299 if (__builtin_sub_overflow(lhs, rhs, &temp)) … … 318 318 static inline bool multiply(LHS lhs, RHS rhs, ResultType& result) WARN_UNUSED_RETURN 319 319 { 320 #if COMPILER(GCC_ OR_CLANG)320 #if COMPILER(GCC_COMPATIBLE) 321 321 ResultType temp; 322 322 if (__builtin_mul_overflow(lhs, rhs, &temp)) … … 357 357 static inline bool add(LHS lhs, RHS rhs, ResultType& result) WARN_UNUSED_RETURN 358 358 { 359 #if COMPILER(GCC_ OR_CLANG)359 #if COMPILER(GCC_COMPATIBLE) 360 360 ResultType temp; 361 361 if (__builtin_add_overflow(lhs, rhs, &temp)) … … 374 374 static inline bool sub(LHS lhs, RHS rhs, ResultType& result) WARN_UNUSED_RETURN 375 375 { 376 #if COMPILER(GCC_ OR_CLANG)376 #if COMPILER(GCC_COMPATIBLE) 377 377 ResultType temp; 378 378 if (__builtin_sub_overflow(lhs, rhs, &temp)) … … 391 391 static inline bool multiply(LHS lhs, RHS rhs, ResultType& result) WARN_UNUSED_RETURN 392 392 { 393 #if COMPILER(GCC_ OR_CLANG)393 #if COMPILER(GCC_COMPATIBLE) 394 394 ResultType temp; 395 395 if (__builtin_mul_overflow(lhs, rhs, &temp)) … … 416 416 static inline bool add(int64_t lhs, int64_t rhs, ResultType& result) 417 417 { 418 #if COMPILER(GCC_ OR_CLANG)418 #if COMPILER(GCC_COMPATIBLE) 419 419 ResultType temp; 420 420 if (__builtin_add_overflow(lhs, rhs, &temp)) … … 435 435 static inline bool sub(int64_t lhs, int64_t rhs, ResultType& result) 436 436 { 437 #if COMPILER(GCC_ OR_CLANG)437 #if COMPILER(GCC_COMPATIBLE) 438 438 ResultType temp; 439 439 if (__builtin_sub_overflow(lhs, rhs, &temp)) … … 454 454 static inline bool multiply(int64_t lhs, int64_t rhs, ResultType& result) 455 455 { 456 #if COMPILER(GCC_ OR_CLANG)456 #if COMPILER(GCC_COMPATIBLE) 457 457 ResultType temp; 458 458 if (__builtin_mul_overflow(lhs, rhs, &temp)) -
trunk/Source/WTF/wtf/Compiler.h
r236302 r236450 82 82 #endif // defined(__clang__) 83 83 84 /* COMPILER(GCC_ OR_CLANG) - GNU Compiler Collection or Clang*/84 /* COMPILER(GCC_COMPATIBLE) - GNU Compiler Collection or compatibles */ 85 85 #if defined(__GNUC__) 86 #define WTF_COMPILER_GCC_ OR_CLANG186 #define WTF_COMPILER_GCC_COMPATIBLE 1 87 87 #endif 88 88 89 89 /* COMPILER(GCC) - GNU Compiler Collection */ 90 90 /* Note: This section must come after the Clang section since we check !COMPILER(CLANG) here. */ 91 #if COMPILER(GCC_ OR_CLANG) && !COMPILER(CLANG)91 #if COMPILER(GCC_COMPATIBLE) && !COMPILER(CLANG) 92 92 #define WTF_COMPILER_GCC 1 93 93 … … 101 101 #endif /* COMPILER(GCC) */ 102 102 103 #if COMPILER(GCC_ OR_CLANG) && defined(NDEBUG) && !defined(__OPTIMIZE__) && !defined(RELEASE_WITHOUT_OPTIMIZATIONS)103 #if COMPILER(GCC_COMPATIBLE) && defined(NDEBUG) && !defined(__OPTIMIZE__) && !defined(RELEASE_WITHOUT_OPTIMIZATIONS) 104 104 #error "Building release without compiler optimizations: WebKit will be slow. Set -DRELEASE_WITHOUT_OPTIMIZATIONS if this is intended." 105 105 #endif … … 164 164 /* In GCC functions marked with no_sanitize_address cannot call functions that are marked with always_inline and not marked with no_sanitize_address. 165 165 * Therefore we need to give up on the enforcement of ALWAYS_INLINE when bulding with ASAN. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67368 */ 166 #if !defined(ALWAYS_INLINE) && COMPILER(GCC_ OR_CLANG) && defined(NDEBUG) && !COMPILER(MINGW) && !(COMPILER(GCC) && ASAN_ENABLED)166 #if !defined(ALWAYS_INLINE) && COMPILER(GCC_COMPATIBLE) && defined(NDEBUG) && !COMPILER(MINGW) && !(COMPILER(GCC) && ASAN_ENABLED) 167 167 #define ALWAYS_INLINE inline __attribute__((__always_inline__)) 168 168 #endif … … 220 220 /* LIKELY */ 221 221 222 #if !defined(LIKELY) && COMPILER(GCC_ OR_CLANG)222 #if !defined(LIKELY) && COMPILER(GCC_COMPATIBLE) 223 223 #define LIKELY(x) __builtin_expect(!!(x), 1) 224 224 #endif … … 230 230 /* NEVER_INLINE */ 231 231 232 #if !defined(NEVER_INLINE) && COMPILER(GCC_ OR_CLANG)232 #if !defined(NEVER_INLINE) && COMPILER(GCC_COMPATIBLE) 233 233 #define NEVER_INLINE __attribute__((__noinline__)) 234 234 #endif … … 244 244 /* NO_RETURN */ 245 245 246 #if !defined(NO_RETURN) && COMPILER(GCC_ OR_CLANG)246 #if !defined(NO_RETURN) && COMPILER(GCC_COMPATIBLE) 247 247 #define NO_RETURN __attribute((__noreturn__)) 248 248 #endif … … 269 269 270 270 /* RETURNS_NONNULL */ 271 #if !defined(RETURNS_NONNULL) && COMPILER(GCC_ OR_CLANG)271 #if !defined(RETURNS_NONNULL) && COMPILER(GCC_COMPATIBLE) 272 272 #define RETURNS_NONNULL __attribute__((returns_nonnull)) 273 273 #endif … … 311 311 /* PURE_FUNCTION */ 312 312 313 #if !defined(PURE_FUNCTION) && COMPILER(GCC_ OR_CLANG)313 #if !defined(PURE_FUNCTION) && COMPILER(GCC_COMPATIBLE) 314 314 #define PURE_FUNCTION __attribute__((__pure__)) 315 315 #endif … … 321 321 /* UNUSED_FUNCTION */ 322 322 323 #if !defined(UNUSED_FUNCTION) && COMPILER(GCC_ OR_CLANG)323 #if !defined(UNUSED_FUNCTION) && COMPILER(GCC_COMPATIBLE) 324 324 #define UNUSED_FUNCTION __attribute__((unused)) 325 325 #endif … … 331 331 /* REFERENCED_FROM_ASM */ 332 332 333 #if !defined(REFERENCED_FROM_ASM) && COMPILER(GCC_ OR_CLANG)333 #if !defined(REFERENCED_FROM_ASM) && COMPILER(GCC_COMPATIBLE) 334 334 #define REFERENCED_FROM_ASM __attribute__((__used__)) 335 335 #endif … … 341 341 /* UNLIKELY */ 342 342 343 #if !defined(UNLIKELY) && COMPILER(GCC_ OR_CLANG)343 #if !defined(UNLIKELY) && COMPILER(GCC_COMPATIBLE) 344 344 #define UNLIKELY(x) __builtin_expect(!!(x), 0) 345 345 #endif … … 370 370 /* WARN_UNUSED_RETURN */ 371 371 372 #if !defined(WARN_UNUSED_RETURN) && COMPILER(GCC_ OR_CLANG)372 #if !defined(WARN_UNUSED_RETURN) && COMPILER(GCC_COMPATIBLE) 373 373 #define WARN_UNUSED_RETURN __attribute__((__warn_unused_result__)) 374 374 #endif … … 393 393 #define _COMPILER_WARNING_NAME(warning) "-W" warning 394 394 395 #if COMPILER(GCC _OR_CLANG)395 #if COMPILER(GCC) || COMPILER(CLANG) 396 396 #define IGNORE_WARNINGS_BEGIN_COND(cond, compiler, warning) \ 397 397 _Pragma(_COMPILER_STRINGIZE(compiler diagnostic push)) \ … … 416 416 _IGNORE_WARNINGS_BEGIN_IMPL(compiler, _COMPILER_WARNING_NAME(warning)) 417 417 418 #endif // COMPILER(GCC _OR_CLANG)418 #endif // COMPILER(GCC) || COMPILER(CLANG) 419 419 420 420 … … 435 435 #endif 436 436 437 #if COMPILER(GCC _OR_CLANG)437 #if COMPILER(GCC) || COMPILER(CLANG) 438 438 #define IGNORE_WARNINGS_BEGIN(warning) IGNORE_WARNINGS_BEGIN_IMPL(GCC, warning) 439 439 #define IGNORE_WARNINGS_END IGNORE_WARNINGS_END_IMPL(GCC) -
trunk/Source/WTF/wtf/FastMalloc.h
r232269 r236450 251 251 using WTF::fastAlignedFree; 252 252 253 #if COMPILER(GCC_ OR_CLANG) && OS(DARWIN)253 #if COMPILER(GCC_COMPATIBLE) && OS(DARWIN) 254 254 #define WTF_PRIVATE_INLINE __private_extern__ inline __attribute__((always_inline)) 255 #elif COMPILER(GCC_ OR_CLANG)255 #elif COMPILER(GCC_COMPATIBLE) 256 256 #define WTF_PRIVATE_INLINE inline __attribute__((always_inline)) 257 257 #elif COMPILER(MSVC) -
trunk/Source/WTF/wtf/MathExtras.h
r234768 r236450 527 527 inline unsigned clz32(uint32_t number) 528 528 { 529 #if COMPILER(GCC_ OR_CLANG)529 #if COMPILER(GCC_COMPATIBLE) 530 530 if (number) 531 531 return __builtin_clz(number); … … 552 552 inline unsigned clz64(uint64_t number) 553 553 { 554 #if COMPILER(GCC_ OR_CLANG)554 #if COMPILER(GCC_COMPATIBLE) 555 555 if (number) 556 556 return __builtin_clzll(number); -
trunk/Source/WTF/wtf/Platform.h
r236381 r236450 328 328 #endif 329 329 330 #if COMPILER(GCC_ OR_CLANG)330 #if COMPILER(GCC_COMPATIBLE) 331 331 /* __LP64__ is not defined on 64bit Windows since it uses LLP64. Using __SIZEOF_POINTER__ is simpler. */ 332 332 #if __SIZEOF_POINTER__ == 8 … … 438 438 /* CPU(BIG_ENDIAN) or CPU(MIDDLE_ENDIAN) or neither, as appropriate. */ 439 439 440 #if COMPILER(GCC_ OR_CLANG)440 #if COMPILER(GCC_COMPATIBLE) 441 441 #if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ 442 442 #define WTF_CPU_BIG_ENDIAN 1 … … 913 913 #if CPU(X86) && COMPILER(MSVC) 914 914 #define JSC_HOST_CALL __fastcall 915 #elif CPU(X86) && COMPILER(GCC_ OR_CLANG)915 #elif CPU(X86) && COMPILER(GCC_COMPATIBLE) 916 916 #define JSC_HOST_CALL __attribute__ ((fastcall)) 917 917 #else … … 952 952 953 953 /* Configure the interpreter */ 954 #if COMPILER(GCC_ OR_CLANG)954 #if COMPILER(GCC_COMPATIBLE) 955 955 #define HAVE_COMPUTED_GOTO 1 956 956 #endif -
trunk/Source/WTF/wtf/StdLibExtras.h
r232932 r236450 82 82 * - http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43976 83 83 */ 84 #if (CPU(ARM) || CPU(MIPS)) && COMPILER(GCC_ OR_CLANG)84 #if (CPU(ARM) || CPU(MIPS)) && COMPILER(GCC_COMPATIBLE) 85 85 template<typename Type> 86 86 inline bool isPointerTypeAlignmentOkay(Type* ptr) … … 169 169 template<typename T, size_t Size> char (&ArrayLengthHelperFunction(T (&)[Size]))[Size]; 170 170 // GCC needs some help to deduce a 0 length array. 171 #if COMPILER(GCC_ OR_CLANG)171 #if COMPILER(GCC_COMPATIBLE) 172 172 template<typename T> char (&ArrayLengthHelperFunction(T (&)[0]))[0]; 173 173 #endif -
trunk/Source/WTF/wtf/Vector.h
r235935 r236450 202 202 { 203 203 static_assert(sizeof(T) == 1, "Size of type T should be equal to one!"); 204 #if COMPILER(GCC_ OR_CLANG) && defined(_FORTIFY_SOURCE)204 #if COMPILER(GCC_COMPATIBLE) && defined(_FORTIFY_SOURCE) 205 205 if (!__builtin_constant_p(dstEnd - dst) || (!(dstEnd - dst))) 206 206 #endif -
trunk/Source/WTF/wtf/text/ASCIIFastPath.h
r228022 r236450 140 140 destination[i] = static_cast<LChar>(source[i]); 141 141 } 142 #elif COMPILER(GCC_ OR_CLANG) && CPU(ARM64) && !defined(__ILP32__) && defined(NDEBUG)142 #elif COMPILER(GCC_COMPATIBLE) && CPU(ARM64) && !defined(__ILP32__) && defined(NDEBUG) 143 143 const LChar* const end = destination + length; 144 144 const uintptr_t memoryAccessSize = 16; … … 161 161 while (destination != end) 162 162 *destination++ = static_cast<LChar>(*source++); 163 #elif COMPILER(GCC_ OR_CLANG) && CPU(ARM_NEON) && !(CPU(BIG_ENDIAN) || CPU(MIDDLE_ENDIAN)) && defined(NDEBUG)163 #elif COMPILER(GCC_COMPATIBLE) && CPU(ARM_NEON) && !(CPU(BIG_ENDIAN) || CPU(MIDDLE_ENDIAN)) && defined(NDEBUG) 164 164 const LChar* const end = destination + length; 165 165 const uintptr_t memoryAccessSize = 8; -
trunk/Source/WebCore/ChangeLog
r236448 r236450 1 2018-09-24 Fujii Hironori <Hironori.Fujii@sony.com> 2 3 Rename WTF_COMPILER_GCC_OR_CLANG to WTF_COMPILER_GCC_COMPATIBLE 4 https://bugs.webkit.org/show_bug.cgi?id=189733 5 6 Reviewed by Michael Catanzaro. 7 8 No new tests (No behavior change). 9 10 * platform/graphics/cpu/arm/filters/FELightingNEON.cpp: 11 * platform/graphics/cpu/arm/filters/FELightingNEON.h: 12 * platform/graphics/filters/FELighting.cpp: 13 (WebCore::FELighting::platformApply): 14 * platform/graphics/filters/FELighting.h: 15 1 16 2018-09-24 John Wilander <wilander@apple.com> 2 17 -
trunk/Source/WebCore/platform/graphics/cpu/arm/filters/FELightingNEON.cpp
r230380 r236450 28 28 #include "FELightingNEON.h" 29 29 30 #if CPU(ARM_NEON) && CPU(ARM_TRADITIONAL) && COMPILER(GCC_ OR_CLANG)30 #if CPU(ARM_NEON) && CPU(ARM_TRADITIONAL) && COMPILER(GCC_COMPATIBLE) 31 31 32 32 namespace WebCore { … … 501 501 } // namespace WebCore 502 502 503 #endif // CPU(ARM_NEON) && COMPILER(GCC_ OR_CLANG)503 #endif // CPU(ARM_NEON) && COMPILER(GCC_COMPATIBLE) -
trunk/Source/WebCore/platform/graphics/cpu/arm/filters/FELightingNEON.h
r236391 r236450 28 28 #define FELightingNEON_h 29 29 30 #if CPU(ARM_NEON) && CPU(ARM_TRADITIONAL) && COMPILER(GCC_ OR_CLANG)30 #if CPU(ARM_NEON) && CPU(ARM_TRADITIONAL) && COMPILER(GCC_COMPATIBLE) 31 31 32 32 #include "FELighting.h" … … 197 197 } // namespace WebCore 198 198 199 #endif // CPU(ARM_NEON) && COMPILER(GCC_ OR_CLANG)199 #endif // CPU(ARM_NEON) && COMPILER(GCC_COMPATIBLE) 200 200 201 201 #endif // FELightingNEON_h -
trunk/Source/WebCore/platform/graphics/filters/FELighting.cpp
r231559 r236450 381 381 { 382 382 // The selection here eventually should happen dynamically on some platforms. 383 #if CPU(ARM_NEON) && CPU(ARM_TRADITIONAL) && COMPILER(GCC_ OR_CLANG)383 #if CPU(ARM_NEON) && CPU(ARM_TRADITIONAL) && COMPILER(GCC_COMPATIBLE) 384 384 platformApplyNeon(data, paintingData); 385 385 #else -
trunk/Source/WebCore/platform/graphics/filters/FELighting.h
r228218 r236450 148 148 void platformApplyGeneric(const LightingData&, const LightSource::PaintingData&); 149 149 150 #if CPU(ARM_NEON) && CPU(ARM_TRADITIONAL) && COMPILER(GCC_ OR_CLANG)150 #if CPU(ARM_NEON) && CPU(ARM_TRADITIONAL) && COMPILER(GCC_COMPATIBLE) 151 151 static int getPowerCoefficients(float exponent); 152 152 inline void platformApplyNeon(const LightingData&, const LightSource::PaintingData&); -
trunk/Source/bmalloc/ChangeLog
r235412 r236450 1 2018-09-24 Fujii Hironori <Hironori.Fujii@sony.com> 2 3 Rename WTF_COMPILER_GCC_OR_CLANG to WTF_COMPILER_GCC_COMPATIBLE 4 https://bugs.webkit.org/show_bug.cgi?id=189733 5 6 Reviewed by Michael Catanzaro. 7 8 * bmalloc/BCompiler.h: 9 1 10 2018-08-27 Keith Rollin <krollin@apple.com> 2 11 -
trunk/Source/bmalloc/bmalloc/BCompiler.h
r232599 r236450 39 39 #define BASAN_ENABLED BCOMPILER_HAS_CLANG_FEATURE(address_sanitizer) 40 40 41 /* BCOMPILER(GCC_ OR_CLANG) - GNU Compiler Collection or Clang*/41 /* BCOMPILER(GCC_COMPATIBLE) - GNU Compiler Collection or compatibles */ 42 42 43 43 #if defined(__GNUC__) 44 #define BCOMPILER_GCC_ OR_CLANG144 #define BCOMPILER_GCC_COMPATIBLE 1 45 45 #endif 46 46 47 47 /* BNO_RETURN */ 48 48 49 #if !defined(BNO_RETURN) && BCOMPILER(GCC_ OR_CLANG)49 #if !defined(BNO_RETURN) && BCOMPILER(GCC_COMPATIBLE) 50 50 #define BNO_RETURN __attribute((__noreturn__)) 51 51 #endif
Note:
See TracChangeset
for help on using the changeset viewer.