Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/globals.h

Issue 179793004: crash like chrome (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/flag-definitions.h ('k') | src/platform-posix.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/platform-posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698