OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * Copyright (C) 2013 Samsung Electronics. All rights reserved. | 3 * Copyright (C) 2013 Samsung Electronics. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 public: | 124 public: |
125 static T* registerStatic(T* ptr) | 125 static T* registerStatic(T* ptr) |
126 { | 126 { |
127 return static_cast<T*>(ptr->registerAsStaticReference()); | 127 return static_cast<T*>(ptr->registerAsStaticReference()); |
128 } | 128 } |
129 }; | 129 }; |
130 | 130 |
131 #define LEAK_SANITIZER_REGISTER_STATIC_LOCAL(Type, Object) WTF::RegisterStaticLo
calReference<Type>::registerStatic(Object) | 131 #define LEAK_SANITIZER_REGISTER_STATIC_LOCAL(Type, Object) WTF::RegisterStaticLo
calReference<Type>::registerStatic(Object) |
132 #else | 132 #else |
133 #define WTF_INTERNAL_LEAK_SANITIZER_DISABLED_SCOPE | 133 #define WTF_INTERNAL_LEAK_SANITIZER_DISABLED_SCOPE |
134 #define LEAK_SANITIZER_IGNORE_OBJECT | 134 #define LEAK_SANITIZER_IGNORE_OBJECT(X) ((void)0) |
135 #define LEAK_SANITIZER_REGISTER_STATIC_LOCAL(Type, Object) Object | 135 #define LEAK_SANITIZER_REGISTER_STATIC_LOCAL(Type, Object) Object |
136 #endif // USE(LEAK_SANITIZER) | 136 #endif // USE(LEAK_SANITIZER) |
137 | 137 |
138 } // namespace WTF | 138 } // namespace WTF |
139 | 139 |
140 #endif // WTF_LeakAnnotations_h | 140 #endif // WTF_LeakAnnotations_h |
OLD | NEW |