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

Unified Diff: third_party/WebKit/Source/wtf/Assertions.h

Issue 2525723004: Move IMMEDIATE_CRASH and OOM_CRASH from wtf to base. (Closed)
Patch Set: Everything in its right place. Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/logging.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/Assertions.h
diff --git a/third_party/WebKit/Source/wtf/Assertions.h b/third_party/WebKit/Source/wtf/Assertions.h
index 28af93a08d25f87328a1a5c4eaa00b164651dfd6..d0906a1c0a882e8657db5cf478cb9e61db2913d0 100644
--- a/third_party/WebKit/Source/wtf/Assertions.h
+++ b/third_party/WebKit/Source/wtf/Assertions.h
@@ -129,30 +129,6 @@ class WTF_EXPORT ScopedLogger {
} // namespace WTF
-// IMMEDIATE_CRASH() - Like CRASH() below but crashes in the fastest, simplest
-// possible way with no attempt at logging.
-#ifndef IMMEDIATE_CRASH
-#if COMPILER(GCC) || COMPILER(CLANG)
-#define IMMEDIATE_CRASH() __builtin_trap()
-#else
-#define IMMEDIATE_CRASH() ((void)(*(volatile char*)0 = 0))
-#endif
-#endif
-
-// OOM_CRASH() - Specialization of IMMEDIATE_CRASH which will raise a custom
-// exception on Windows to signal this is OOM and not a normal assert.
-#ifndef OOM_CRASH
-#if OS(WIN)
-#define OOM_CRASH() \
- do { \
- ::RaiseException(0xE0000008, EXCEPTION_NONCONTINUABLE, 0, nullptr); \
- IMMEDIATE_CRASH(); \
- } while (0)
-#else
-#define OOM_CRASH() IMMEDIATE_CRASH()
-#endif
-#endif
-
// CRASH() - Raises a fatal error resulting in program termination and
// triggering either the debugger or the crash reporter.
//
« no previous file with comments | « base/logging.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698