Changeset 177995 in webkit
- Timestamp:
- Jan 6, 2015 2:24:15 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r177994 r177995 1 2015-01-06 Alexey Proskuryakov <ap@apple.com> 2 3 ADDRESS_SANITIZER macro is overloaded 4 https://bugs.webkit.org/show_bug.cgi?id=140130 5 6 Reviewed by Anders Carlsson. 7 8 * interpreter/JSStack.cpp: (JSC::JSStack::sanitizeStack): Use the new macro. 9 This code is nearly unused (only compiled in when JIT is disabled at build time), 10 however I've been told that it's best to keep it. 11 1 12 2015-01-06 Mark Lam <mark.lam@apple.com> 2 13 -
trunk/Source/JavaScriptCore/interpreter/JSStack.cpp
r170147 r177995 119 119 void JSStack::sanitizeStack() 120 120 { 121 #if ! defined(ADDRESS_SANITIZER)121 #if !ASAN_ENABLED 122 122 ASSERT(topOfStack() <= baseOfStack()); 123 123 -
trunk/Source/WTF/ChangeLog
r177929 r177995 1 2015-01-06 Alexey Proskuryakov <ap@apple.com> 2 3 ADDRESS_SANITIZER macro is overloaded 4 https://bugs.webkit.org/show_bug.cgi?id=140130 5 6 Reviewed by Anders Carlsson. 7 8 * wtf/Compiler.h: Added an ASAN_ENABLED macro. The abbreviation should become well 9 known - we already use it in tools. 10 11 * wtf/Assertions.h: 12 * wtf/RefCounted.h: 13 * wtf/SizeLimits.cpp: 14 Change the conditional to ENABLE(SECURITY_ASSERTIONS). These checks will be used 15 in debug builds, and also when one explicitly passes -DENABLE_SECURITY_ASSERTIONS. 16 1 17 2015-01-05 Andreas Kling <akling@apple.com> 2 18 -
trunk/Source/WTF/wtf/Assertions.h
r174898 r177995 214 214 #define ASSERT_UNUSED(variable, assertion) ((void)variable) 215 215 216 #if def ADDRESS_SANITIZER216 #if ENABLE(SECURITY_ASSERTIONS) 217 217 #define ASSERT_WITH_SECURITY_IMPLICATION(assertion) \ 218 218 (!(assertion) ? \ -
trunk/Source/WTF/wtf/Compiler.h
r177729 r177995 137 137 #endif 138 138 139 #if defined(__has_feature) 140 #define ASAN_ENABLED __has_feature(address_sanitizer) 141 #else 142 #define ASAN_ENABLED false 143 #endif 144 139 145 /* ==== Compiler-independent macros for various compiler features, in alphabetical order ==== */ 140 146 -
trunk/Source/WTF/wtf/RefCounted.h
r175382 r177995 28 28 namespace WTF { 29 29 30 #if defined(NDEBUG) && ! defined(ADDRESS_SANITIZER)30 #if defined(NDEBUG) && !ENABLE(SECURITY_ASSERTIONS) 31 31 #define CHECK_REF_COUNTED_LIFECYCLE 0 32 32 #else -
trunk/Source/WTF/wtf/SizeLimits.cpp
r175424 r177995 42 42 namespace WTF { 43 43 44 #if !defined(NDEBUG) || defined(ADDRESS_SANITIZER)44 #if !defined(NDEBUG) || ENABLE(SECURITY_ASSERTIONS) 45 45 struct SameSizeAsRefCounted { 46 46 int a; -
trunk/Source/WebCore/ChangeLog
r177993 r177995 1 2015-01-06 Alexey Proskuryakov <ap@apple.com> 2 3 ADDRESS_SANITIZER macro is overloaded 4 https://bugs.webkit.org/show_bug.cgi?id=140130 5 6 Reviewed by Anders Carlsson. 7 8 * platform/RefCountedSupplement.h: 9 * platform/Supplementable.h: 10 Change the conditional to ENABLE(SECURITY_ASSERTIONS). These checks will be used 11 in debug builds, and also when one explicitly passes -DENABLE_SECURITY_ASSERTIONS. 12 1 13 2015-01-06 Brian J. Burg <burg@cs.washington.edu> 2 14 -
trunk/Source/WebCore/platform/RefCountedSupplement.h
r162139 r177995 45 45 explicit Wrapper(PassRefPtr<ThisType> wrapped) : m_wrapped(wrapped) { } 46 46 virtual ~Wrapper() { m_wrapped->hostDestroyed(); } 47 #if !ASSERT_DISABLED || defined(ADDRESS_SANITIZER)47 #if !ASSERT_DISABLED || ENABLE(SECURITY_ASSERTIONS) 48 48 virtual bool isRefCountedWrapper() const override { return true; } 49 49 #endif -
trunk/Source/WebCore/platform/Supplementable.h
r174723 r177995 80 80 public: 81 81 virtual ~Supplement() { } 82 #if !ASSERT_DISABLED || defined(ADDRESS_SANITIZER)82 #if !ASSERT_DISABLED || ENABLE(SECURITY_ASSERTIONS) 83 83 virtual bool isRefCountedWrapper() const { return false; } 84 84 #endif -
trunk/Tools/ChangeLog
r177949 r177995 1 2015-01-06 Alexey Proskuryakov <ap@apple.com> 2 3 ADDRESS_SANITIZER macro is overloaded 4 https://bugs.webkit.org/show_bug.cgi?id=140130 5 6 Reviewed by Anders Carlsson. 7 8 * WebKitTestRunner/TestController.cpp: Use the new macro. 9 1 10 2015-01-05 Joseph Pecoraro <pecoraro@apple.com> 2 11 -
trunk/Tools/WebKitTestRunner/TestController.cpp
r177930 r177995 71 71 const unsigned TestController::w3cSVGViewHeight = 360; 72 72 73 #if defined(__has_feature) 74 #if __has_feature(address_sanitizer) 73 #if ASAN_ENABLED 75 74 const double TestController::shortTimeout = 10.0; 76 #else77 const double TestController::shortTimeout = 5.0;78 #endif79 75 #else 80 76 const double TestController::shortTimeout = 5.0;
Note: See TracChangeset
for help on using the changeset viewer.