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 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 #define NO_INLINE(header) header | 353 #define NO_INLINE(header) header |
354 #endif | 354 #endif |
355 | 355 |
356 | 356 |
357 #if defined(__GNUC__) && __GNUC__ >= 4 | 357 #if defined(__GNUC__) && __GNUC__ >= 4 |
358 #define MUST_USE_RESULT __attribute__ ((warn_unused_result)) | 358 #define MUST_USE_RESULT __attribute__ ((warn_unused_result)) |
359 #else | 359 #else |
360 #define MUST_USE_RESULT | 360 #define MUST_USE_RESULT |
361 #endif | 361 #endif |
362 | 362 |
| 363 |
| 364 // Define DISABLE_ASAN macros. |
| 365 #if defined(__has_feature) |
| 366 #if __has_feature(address_sanitizer) |
| 367 #define DISABLE_ASAN __attribute__((no_address_safety_analysis)) |
| 368 #endif |
| 369 #endif |
| 370 |
| 371 |
| 372 #ifndef DISABLE_ASAN |
| 373 #define DISABLE_ASAN |
| 374 #endif |
| 375 |
| 376 |
363 // ----------------------------------------------------------------------------- | 377 // ----------------------------------------------------------------------------- |
364 // Forward declarations for frequently used classes | 378 // Forward declarations for frequently used classes |
365 // (sorted alphabetically) | 379 // (sorted alphabetically) |
366 | 380 |
367 class FreeStoreAllocationPolicy; | 381 class FreeStoreAllocationPolicy; |
368 template <typename T, class P = FreeStoreAllocationPolicy> class List; | 382 template <typename T, class P = FreeStoreAllocationPolicy> class List; |
369 | 383 |
370 // ----------------------------------------------------------------------------- | 384 // ----------------------------------------------------------------------------- |
371 // Declarations for use in both the preparser and the rest of V8. | 385 // Declarations for use in both the preparser and the rest of V8. |
372 | 386 |
(...skipping 23 matching lines...) Expand all Loading... |
396 // the backend, so both modes are represented by the kStrictMode value. | 410 // the backend, so both modes are represented by the kStrictMode value. |
397 enum StrictModeFlag { | 411 enum StrictModeFlag { |
398 kNonStrictMode, | 412 kNonStrictMode, |
399 kStrictMode | 413 kStrictMode |
400 }; | 414 }; |
401 | 415 |
402 | 416 |
403 } } // namespace v8::internal | 417 } } // namespace v8::internal |
404 | 418 |
405 #endif // V8_GLOBALS_H_ | 419 #endif // V8_GLOBALS_H_ |
OLD | NEW |