| 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 /* WARN_UNUSED_RETURN */ | 70 /* WARN_UNUSED_RETURN */ |
| 73 | 71 |
| 72 // TODO(palmer): Remove this and update callers to use WARN_UNUSED_RESULT from |
| 73 // Chromium base. https://bugs.chromium.org/p/chromium/issues/detail?id=632441 |
| 74 #if COMPILER(GCC) | 74 #if COMPILER(GCC) |
| 75 #define WARN_UNUSED_RETURN __attribute__((warn_unused_result)) | 75 #define WARN_UNUSED_RETURN __attribute__((warn_unused_result)) |
| 76 #else | 76 #else |
| 77 #define WARN_UNUSED_RETURN | 77 #define WARN_UNUSED_RETURN |
| 78 #endif | 78 #endif |
| 79 | 79 |
| 80 /* ALLOW_UNUSED_LOCAL */ | 80 /* ALLOW_UNUSED_LOCAL */ |
| 81 | 81 |
| 82 #define ALLOW_UNUSED_LOCAL(x) false ? (void)x : (void)0 | 82 #define ALLOW_UNUSED_LOCAL(x) false ? (void)x : (void)0 |
| 83 | 83 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 114 /* WTF_NON_EXPORTED_BASE; similar NON_EXPORTED_BASE in base/compiler_specific.h | 114 /* WTF_NON_EXPORTED_BASE; similar NON_EXPORTED_BASE in base/compiler_specific.h |
| 115 */ | 115 */ |
| 116 | 116 |
| 117 #if COMPILER(MSVC) | 117 #if COMPILER(MSVC) |
| 118 #define WTF_NON_EXPORTED_BASE(code) __pragma(warning(suppress : 4275)) code | 118 #define WTF_NON_EXPORTED_BASE(code) __pragma(warning(suppress : 4275)) code |
| 119 #else | 119 #else |
| 120 #define WTF_NON_EXPORTED_BASE(code) code | 120 #define WTF_NON_EXPORTED_BASE(code) code |
| 121 #endif | 121 #endif |
| 122 | 122 |
| 123 #endif /* WTF_Compiler_h */ | 123 #endif /* WTF_Compiler_h */ |
| OLD | NEW |