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

Unified Diff: src/contexts.h

Issue 769263002: Add support for enabling DCHECKs in release mode (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 6 years 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
Index: src/contexts.h
diff --git a/src/contexts.h b/src/contexts.h
index ecc3151097e551865d48d73ec7d5d2b0015f6c56..104a5d857fe12a1d93e7a7a1e8b6623f3f7149a4 100644
--- a/src/contexts.h
+++ b/src/contexts.h
@@ -601,7 +601,7 @@ class Context: public FixedArray {
// Unchecked access to the slots.
Object* unchecked_previous() { return get(PREVIOUS_INDEX); }
-#ifdef DEBUG
+#if DCHECK_IS_ON
// Bootstrapping-aware type checks.
static bool IsBootstrappingOrValidParentContext(Object* object, Context* kid);
static bool IsBootstrappingOrGlobalObject(Isolate* isolate, Object* object);

Powered by Google App Engine
This is Rietveld 408576698