| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011, 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 | 152 |
| 153 /* NO_SANITIZE_UNRELATED_CAST - Disable runtime checks related to casts between | 153 /* NO_SANITIZE_UNRELATED_CAST - Disable runtime checks related to casts between |
| 154 * unrelated objects (-fsanitize=cfi-unrelated-cast or -fsanitize=vptr). */ | 154 * unrelated objects (-fsanitize=cfi-unrelated-cast or -fsanitize=vptr). */ |
| 155 | 155 |
| 156 #if COMPILER(CLANG) | 156 #if COMPILER(CLANG) |
| 157 #define NO_SANITIZE_UNRELATED_CAST __attribute__((no_sanitize("cfi-unrelated-cas
t", "vptr"))) | 157 #define NO_SANITIZE_UNRELATED_CAST __attribute__((no_sanitize("cfi-unrelated-cas
t", "vptr"))) |
| 158 #else | 158 #else |
| 159 #define NO_SANITIZE_UNRELATED_CAST | 159 #define NO_SANITIZE_UNRELATED_CAST |
| 160 #endif | 160 #endif |
| 161 | 161 |
| 162 /* WTF_NON_EXPORTED_BASE; similar NON_EXPORTED_BASE in base/compiler_specific.h
*/ |
| 163 |
| 164 #if COMPILER(MSVC) |
| 165 #define WTF_NON_EXPORTED_BASE(code) __pragma(warning(suppress:4275)) code |
| 166 #else |
| 167 #define WTF_NON_EXPORTED_BASE(code) code |
| 168 #endif |
| 169 |
| 162 #endif /* WTF_Compiler_h */ | 170 #endif /* WTF_Compiler_h */ |
| OLD | NEW |