| 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 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 #if __has_feature(address_sanitizer) | 383 #if __has_feature(address_sanitizer) |
| 384 #define DISABLE_ASAN __attribute__((no_sanitize_address)) | 384 #define DISABLE_ASAN __attribute__((no_sanitize_address)) |
| 385 #endif | 385 #endif |
| 386 #endif | 386 #endif |
| 387 | 387 |
| 388 | 388 |
| 389 #ifndef DISABLE_ASAN | 389 #ifndef DISABLE_ASAN |
| 390 #define DISABLE_ASAN | 390 #define DISABLE_ASAN |
| 391 #endif | 391 #endif |
| 392 | 392 |
| 393 #if V8_CC_GNU |
| 394 #define V8_IMMEDIATE_CRASH() __builtin_trap() |
| 395 #else |
| 396 #define V8_IMMEDIATE_CRASH() ((void(*)())0)() |
| 397 #endif |
| 398 |
| 393 | 399 |
| 394 // ----------------------------------------------------------------------------- | 400 // ----------------------------------------------------------------------------- |
| 395 // Forward declarations for frequently used classes | 401 // Forward declarations for frequently used classes |
| 396 // (sorted alphabetically) | 402 // (sorted alphabetically) |
| 397 | 403 |
| 398 class FreeStoreAllocationPolicy; | 404 class FreeStoreAllocationPolicy; |
| 399 template <typename T, class P = FreeStoreAllocationPolicy> class List; | 405 template <typename T, class P = FreeStoreAllocationPolicy> class List; |
| 400 | 406 |
| 401 // ----------------------------------------------------------------------------- | 407 // ----------------------------------------------------------------------------- |
| 402 // Declarations for use in both the preparser and the rest of V8. | 408 // Declarations for use in both the preparser and the rest of V8. |
| (...skipping 24 matching lines...) Expand all Loading... |
| 427 // the backend, so both modes are represented by the kStrictMode value. | 433 // the backend, so both modes are represented by the kStrictMode value. |
| 428 enum StrictModeFlag { | 434 enum StrictModeFlag { |
| 429 kNonStrictMode, | 435 kNonStrictMode, |
| 430 kStrictMode | 436 kStrictMode |
| 431 }; | 437 }; |
| 432 | 438 |
| 433 | 439 |
| 434 } } // namespace v8::internal | 440 } } // namespace v8::internal |
| 435 | 441 |
| 436 #endif // V8_GLOBALS_H_ | 442 #endif // V8_GLOBALS_H_ |
| OLD | NEW |