Changeset 187819 in webkit for trunk/Source/JavaScriptCore
- Timestamp:
- Aug 3, 2015, 11:51:29 PM (10 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r187794 r187819 1 2015-08-03 Csaba Osztrogonác <[email protected]> 2 3 Introduce COMPILER(GCC_OR_CLANG) guard and make COMPILER(GCC) true only for GCC 4 https://bugs.webkit.org/show_bug.cgi?id=146833 5 6 Reviewed by Alexey Proskuryakov. 7 8 * assembler/ARM64Assembler.h: 9 * assembler/ARMAssembler.h: 10 (JSC::ARMAssembler::cacheFlush): 11 * assembler/MacroAssemblerARM.cpp: 12 (JSC::isVFPPresent): 13 * assembler/MacroAssemblerX86Common.h: 14 (JSC::MacroAssemblerX86Common::isSSE2Present): 15 * heap/MachineStackMarker.h: 16 * interpreter/StackVisitor.cpp: Removed redundant COMPILER(CLANG) guards. 17 (JSC::logF): 18 * jit/HostCallReturnValue.h: 19 * jit/JIT.h: 20 * jit/JITOperations.cpp: 21 * jit/JITStubsARM.h: 22 * jit/JITStubsARMv7.h: 23 * jit/JITStubsX86.h: 24 * jit/JITStubsX86Common.h: 25 * jit/JITStubsX86_64.h: 26 * jit/ThunkGenerators.cpp: 27 * runtime/JSExportMacros.h: 28 * runtime/MathCommon.h: Removed redundant COMPILER(CLANG) guard. 29 (JSC::clz32): 30 1 31 2015-08-03 Filip Pizlo <[email protected]> 2 32 -
trunk/Source/JavaScriptCore/assembler/ARM64Assembler.h
r184170 r187819 2852 2852 unsigned debugOffset() { return m_buffer.debugOffset(); } 2853 2853 2854 #if OS(LINUX) && COMPILER(GCC )2854 #if OS(LINUX) && COMPILER(GCC_OR_CLANG) 2855 2855 static inline void linuxPageFlush(uintptr_t begin, uintptr_t end) 2856 2856 { -
trunk/Source/JavaScriptCore/assembler/ARMAssembler.h
r181570 r187819 1092 1092 } 1093 1093 1094 #if OS(LINUX) && COMPILER(GCC )1094 #if OS(LINUX) && COMPILER(GCC_OR_CLANG) 1095 1095 static inline void linuxPageFlush(uintptr_t begin, uintptr_t end) 1096 1096 { … … 1112 1112 static void cacheFlush(void* code, size_t size) 1113 1113 { 1114 #if OS(LINUX) && COMPILER(GCC )1114 #if OS(LINUX) && COMPILER(GCC_OR_CLANG) 1115 1115 size_t page = pageSize(); 1116 1116 uintptr_t current = reinterpret_cast<uintptr_t>(code); -
trunk/Source/JavaScriptCore/assembler/MacroAssemblerARM.cpp
r176233 r187819 59 59 #endif // OS(LINUX) 60 60 61 #if (COMPILER(GCC ) && defined(__VFP_FP__))61 #if (COMPILER(GCC_OR_CLANG) && defined(__VFP_FP__)) 62 62 return true; 63 63 #else -
trunk/Source/JavaScriptCore/assembler/MacroAssemblerX86Common.h
r183963 r187819 1578 1578 mov flags, edx; 1579 1579 } 1580 #elif COMPILER(GCC )1580 #elif COMPILER(GCC_OR_CLANG) 1581 1581 asm ( 1582 1582 "movl $0x1, %%eax;" -
trunk/Source/JavaScriptCore/heap/MachineStackMarker.h
r181060 r187819 70 70 } // namespace JSC 71 71 72 #if COMPILER(GCC )72 #if COMPILER(GCC_OR_CLANG) 73 73 #define REGISTER_BUFFER_ALIGNMENT __attribute__ ((aligned (sizeof(void*)))) 74 74 #else -
trunk/Source/JavaScriptCore/interpreter/StackVisitor.cpp
r182934 r187819 332 332 printIndents(indent); 333 333 334 #if COMPILER( CLANG) || COMPILER(GCC)334 #if COMPILER(GCC_OR_CLANG) 335 335 #pragma GCC diagnostic push 336 336 #pragma GCC diagnostic ignored "-Wformat-nonliteral" … … 340 340 dataLogF(format, values...); 341 341 342 #if COMPILER( CLANG) || COMPILER(GCC)342 #if COMPILER(GCC_OR_CLANG) 343 343 #pragma GCC diagnostic pop 344 344 #endif -
trunk/Source/JavaScriptCore/jit/HostCallReturnValue.h
r164424 r187819 42 42 extern "C" EncodedJSValue HOST_CALL_RETURN_VALUE_OPTION getHostCallReturnValue() REFERENCED_FROM_ASM WTF_INTERNAL; 43 43 44 #if COMPILER(GCC )44 #if COMPILER(GCC_OR_CLANG) 45 45 46 46 // This is a public declaration only to convince CLANG not to elide it. … … 52 52 } 53 53 54 #else // COMPILER(GCC )54 #else // COMPILER(GCC_OR_CLANG) 55 55 56 56 inline void initializeHostCallReturnValue() { } 57 57 58 #endif // COMPILER(GCC )58 #endif // COMPILER(GCC_OR_CLANG) 59 59 60 60 } // namespace JSC -
trunk/Source/JavaScriptCore/jit/JIT.h
r187012 r187819 31 31 // We've run into some problems where changing the size of the class JIT leads to 32 32 // performance fluctuations. Try forcing alignment in an attempt to stabalize this. 33 #if COMPILER(GCC )33 #if COMPILER(GCC_OR_CLANG) 34 34 #define JIT_CLASS_ALIGNMENT __attribute__ ((aligned (32))) 35 35 #else -
trunk/Source/JavaScriptCore/jit/JITOperations.cpp
r187750 r187819 1923 1923 void JIT_OPERATION operationExceptionFuzz() 1924 1924 { 1925 #if COMPILER(GCC )1925 #if COMPILER(GCC_OR_CLANG) 1926 1926 ExecState* exec = static_cast<ExecState*>(__builtin_frame_address(1)); 1927 1927 void* returnPC = __builtin_return_address(0); 1928 1928 doExceptionFuzzing(exec, "JITOperations", returnPC); 1929 #endif // COMPILER(GCC )1929 #endif // COMPILER(GCC_OR_CLANG) 1930 1930 } 1931 1931 … … 1993 1993 } 1994 1994 1995 #if COMPILER(GCC ) && CPU(X86_64)1995 #if COMPILER(GCC_OR_CLANG) && CPU(X86_64) 1996 1996 asm ( 1997 1997 ".globl " SYMBOL_STRING(getHostCallReturnValue) "\n" … … 2002 2002 ); 2003 2003 2004 #elif COMPILER(GCC ) && CPU(X86)2004 #elif COMPILER(GCC_OR_CLANG) && CPU(X86) 2005 2005 asm ( 2006 2006 ".text" "\n" \ … … 2017 2017 ); 2018 2018 2019 #elif COMPILER(GCC ) && CPU(ARM_THUMB2)2019 #elif COMPILER(GCC_OR_CLANG) && CPU(ARM_THUMB2) 2020 2020 asm ( 2021 2021 ".text" "\n" … … 2030 2030 ); 2031 2031 2032 #elif COMPILER(GCC ) && CPU(ARM_TRADITIONAL)2032 #elif COMPILER(GCC_OR_CLANG) && CPU(ARM_TRADITIONAL) 2033 2033 asm ( 2034 2034 ".text" "\n" … … 2052 2052 ); 2053 2053 2054 #elif COMPILER(GCC ) && CPU(MIPS)2054 #elif COMPILER(GCC_OR_CLANG) && CPU(MIPS) 2055 2055 2056 2056 #if WTF_MIPS_PIC … … 2074 2074 ); 2075 2075 2076 #elif COMPILER(GCC ) && CPU(SH4)2076 #elif COMPILER(GCC_OR_CLANG) && CPU(SH4) 2077 2077 2078 2078 #define SH4_SCRATCH_REGISTER "r11" -
trunk/Source/JavaScriptCore/jit/JITStubsARM.h
r176031 r187819 42 42 namespace JSC { 43 43 44 #if COMPILER(GCC )44 #if COMPILER(GCC_OR_CLANG) 45 45 46 46 #if ENABLE(MASM_PROBE) … … 296 296 297 297 298 #endif // COMPILER(GCC )298 #endif // COMPILER(GCC_OR_CLANG) 299 299 300 300 } // namespace JSC -
trunk/Source/JavaScriptCore/jit/JITStubsARMv7.h
r176134 r187819 42 42 namespace JSC { 43 43 44 #if COMPILER(GCC )44 #if COMPILER(GCC_OR_CLANG) 45 45 46 46 #if ENABLE(MASM_PROBE) … … 328 328 #endif // ENABLE(MASM_PROBE) 329 329 330 #endif // COMPILER(GCC )330 #endif // COMPILER(GCC_OR_CLANG) 331 331 332 332 } // namespace JSC -
trunk/Source/JavaScriptCore/jit/JITStubsX86.h
r176095 r187819 44 44 namespace JSC { 45 45 46 #if COMPILER(GCC )46 #if COMPILER(GCC_OR_CLANG) 47 47 48 48 #if ENABLE(MASM_PROBE) … … 199 199 #endif // ENABLE(MASM_PROBE) 200 200 201 #endif // COMPILER(GCC )201 #endif // COMPILER(GCC_OR_CLANG) 202 202 203 203 } // namespace JSC -
trunk/Source/JavaScriptCore/jit/JITStubsX86Common.h
r176095 r187819 35 35 namespace JSC { 36 36 37 #if COMPILER(GCC )37 #if COMPILER(GCC_OR_CLANG) 38 38 39 39 #if ENABLE(MASM_PROBE) … … 158 158 #endif // ENABLE(MASM_PROBE) 159 159 160 #endif // COMPILER(GCC )160 #endif // COMPILER(GCC_OR_CLANG) 161 161 162 162 } // namespace JSC -
trunk/Source/JavaScriptCore/jit/JITStubsX86_64.h
r176095 r187819 44 44 namespace JSC { 45 45 46 #if COMPILER(GCC )46 #if COMPILER(GCC_OR_CLANG) 47 47 48 48 #if ENABLE(MASM_PROBE) … … 228 228 #endif // ENABLE(MASM_PROBE) 229 229 230 #endif // COMPILER(GCC )230 #endif // COMPILER(GCC_OR_CLANG) 231 231 232 232 } // namespace JSC -
trunk/Source/JavaScriptCore/jit/ThunkGenerators.cpp
r187505 r187819 635 635 typedef MathThunkCallingConvention(*MathThunk)(MathThunkCallingConvention); 636 636 637 #if CPU(X86_64) && COMPILER(GCC ) && (OS(DARWIN) || OS(LINUX))637 #if CPU(X86_64) && COMPILER(GCC_OR_CLANG) && (OS(DARWIN) || OS(LINUX)) 638 638 639 639 #define defineUnaryDoubleOpWrapper(function) \ … … 653 653 static MathThunk UnaryDoubleOpWrapper(function) = &function##Thunk; 654 654 655 #elif CPU(X86) && COMPILER(GCC ) && OS(LINUX) && defined(__PIC__)655 #elif CPU(X86) && COMPILER(GCC_OR_CLANG) && OS(LINUX) && defined(__PIC__) 656 656 #define defineUnaryDoubleOpWrapper(function) \ 657 657 asm( \ … … 677 677 static MathThunk UnaryDoubleOpWrapper(function) = &function##Thunk; 678 678 679 #elif CPU(X86) && COMPILER(GCC ) && (OS(DARWIN) || OS(LINUX))679 #elif CPU(X86) && COMPILER(GCC_OR_CLANG) && (OS(DARWIN) || OS(LINUX)) 680 680 #define defineUnaryDoubleOpWrapper(function) \ 681 681 asm( \ … … 697 697 static MathThunk UnaryDoubleOpWrapper(function) = &function##Thunk; 698 698 699 #elif CPU(ARM_THUMB2) && COMPILER(GCC ) && PLATFORM(IOS)699 #elif CPU(ARM_THUMB2) && COMPILER(GCC_OR_CLANG) && PLATFORM(IOS) 700 700 701 701 #define defineUnaryDoubleOpWrapper(function) \ -
trunk/Source/JavaScriptCore/runtime/JSExportMacros.h
r165676 r187819 48 48 #else // !USE(EXPORT_MACROS) 49 49 50 #if OS(WINDOWS) && !COMPILER(GCC )50 #if OS(WINDOWS) && !COMPILER(GCC_OR_CLANG) 51 51 52 52 #if defined(BUILDING_JavaScriptCore) || defined(STATICALLY_LINKED_WITH_JavaScriptCore) -
trunk/Source/JavaScriptCore/runtime/MathCommon.h
r183963 r187819 38 38 inline int clz32(uint32_t number) 39 39 { 40 #if COMPILER(GCC ) || COMPILER(CLANG)40 #if COMPILER(GCC_OR_CLANG) 41 41 int zeroCount = 32; 42 42 if (number)
Note:
See TracChangeset
for help on using the changeset viewer.