Index: src/checks.h |
diff --git a/src/checks.h b/src/checks.h |
index 608aa148064b9fe6ba9cb297e9c738d9c57666da..d0a0c2b5acf5da52e3f2c49d3138b62904fa34df 100644 |
--- a/src/checks.h |
+++ b/src/checks.h |
@@ -284,4 +284,12 @@ extern bool FLAG_enable_slow_asserts; |
#define ASSERT_NOT_NULL(p) ASSERT_NE(NULL, p) |
+// "Extra checks" are lightweight checks that are enabled in some release |
+// builds. |
+#ifdef ENABLE_EXTRA_CHECKS |
+#define EXTRA_CHECK(condition) CHECK(condition) |
+#else |
+#define EXTRA_CHECK(condition) ((void) 0) |
+#endif |
+ |
#endif // V8_CHECKS_H_ |