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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 * GCC_VERSION_AT_LEAST(4, 1, 0). */ | 58 * GCC_VERSION_AT_LEAST(4, 1, 0). */ |
59 #define GCC_VERSION_AT_LEAST(major, minor, patch) 0 | 59 #define GCC_VERSION_AT_LEAST(major, minor, patch) 0 |
60 #endif | 60 #endif |
61 | 61 |
62 /* ==== Compiler features ==== */ | 62 /* ==== Compiler features ==== */ |
63 | 63 |
64 /* NEVER_INLINE */ | 64 /* NEVER_INLINE */ |
65 | 65 |
66 // TODO(palmer): Remove this and update callers to use NOINLINE from Chromium | 66 // TODO(palmer): Remove this and update callers to use NOINLINE from Chromium |
67 // base. https://bugs.chromium.org/p/chromium/issues/detail?id=632441 | 67 // base. https://bugs.chromium.org/p/chromium/issues/detail?id=632441 |
68 // | |
69 // For compatibility with callers in Blink: | |
70 #define NEVER_INLINE NOINLINE | 68 #define NEVER_INLINE NOINLINE |
71 | 69 |
72 /* OBJC_CLASS */ | 70 /* OBJC_CLASS */ |
73 | 71 |
74 #ifndef OBJC_CLASS | 72 #ifndef OBJC_CLASS |
75 #ifdef __OBJC__ | 73 #ifdef __OBJC__ |
76 #define OBJC_CLASS @class | 74 #define OBJC_CLASS @class |
77 #else | 75 #else |
78 #define OBJC_CLASS class | 76 #define OBJC_CLASS class |
79 #endif | 77 #endif |
(...skipping 13 matching lines...) Expand all Loading... |
93 * unrelated objects (-fsanitize=cfi-unrelated-cast or -fsanitize=vptr). */ | 91 * unrelated objects (-fsanitize=cfi-unrelated-cast or -fsanitize=vptr). */ |
94 | 92 |
95 #if COMPILER(CLANG) | 93 #if COMPILER(CLANG) |
96 #define NO_SANITIZE_UNRELATED_CAST \ | 94 #define NO_SANITIZE_UNRELATED_CAST \ |
97 __attribute__((no_sanitize("cfi-unrelated-cast", "vptr"))) | 95 __attribute__((no_sanitize("cfi-unrelated-cast", "vptr"))) |
98 #else | 96 #else |
99 #define NO_SANITIZE_UNRELATED_CAST | 97 #define NO_SANITIZE_UNRELATED_CAST |
100 #endif | 98 #endif |
101 | 99 |
102 #endif /* WTF_Compiler_h */ | 100 #endif /* WTF_Compiler_h */ |
OLD | NEW |