Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 350 #endif | 350 #endif |
| 351 #elif defined(_MSC_VER) && !defined(DEBUG) | 351 #elif defined(_MSC_VER) && !defined(DEBUG) |
| 352 #define INLINE(header) __forceinline header | 352 #define INLINE(header) __forceinline header |
| 353 #define NO_INLINE(header) header | 353 #define NO_INLINE(header) header |
| 354 #else | 354 #else |
| 355 #define INLINE(header) inline header | 355 #define INLINE(header) inline header |
| 356 #define NO_INLINE(header) header | 356 #define NO_INLINE(header) header |
| 357 #endif | 357 #endif |
| 358 | 358 |
| 359 | 359 |
| 360 #if defined(__GNUC__) && __GNUC__ >= 4 | 360 // Newly written code should use V8_WARN_UNUSED_RESULT. |
|
Michael Starzinger
2013/08/27 08:23:43
Thanks for not touching another 528 occurrences of
| |
| 361 #define MUST_USE_RESULT __attribute__ ((warn_unused_result)) | 361 #define MUST_USE_RESULT V8_WARN_UNUSED_RESULT |
| 362 #else | |
| 363 #define MUST_USE_RESULT | |
| 364 #endif | |
| 365 | 362 |
| 366 | 363 |
| 367 // Define DISABLE_ASAN macros. | 364 // Define DISABLE_ASAN macros. |
| 368 #if defined(__has_feature) | 365 #if defined(__has_feature) |
| 369 #if __has_feature(address_sanitizer) | 366 #if __has_feature(address_sanitizer) |
| 370 #define DISABLE_ASAN __attribute__((no_address_safety_analysis)) | 367 #define DISABLE_ASAN __attribute__((no_address_safety_analysis)) |
| 371 #endif | 368 #endif |
| 372 #endif | 369 #endif |
| 373 | 370 |
| 374 | 371 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 425 // the backend, so both modes are represented by the kStrictMode value. | 422 // the backend, so both modes are represented by the kStrictMode value. |
| 426 enum StrictModeFlag { | 423 enum StrictModeFlag { |
| 427 kNonStrictMode, | 424 kNonStrictMode, |
| 428 kStrictMode | 425 kStrictMode |
| 429 }; | 426 }; |
| 430 | 427 |
| 431 | 428 |
| 432 } } // namespace v8::internal | 429 } } // namespace v8::internal |
| 433 | 430 |
| 434 #endif // V8_GLOBALS_H_ | 431 #endif // V8_GLOBALS_H_ |
| OLD | NEW |