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

Unified Diff: src/handles.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
« no previous file with comments | « src/full-codegen.cc ('k') | src/handles.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/handles.h
diff --git a/src/handles.h b/src/handles.h
index eb57f0e26089383c9d7fe9f57a8cba5f41a111e2..6a485af026d923607bc2172ceaebae78b3caeb9b 100644
--- a/src/handles.h
+++ b/src/handles.h
@@ -128,11 +128,11 @@ class Handle {
// implementation in api.h.
inline Handle<T> EscapeFrom(v8::EscapableHandleScope* scope);
-#ifdef DEBUG
+#ifdef ENABLE_SLOW_DCHECKS
enum DereferenceCheckMode { INCLUDE_DEFERRED_CHECK, NO_DEFERRED_CHECK };
bool IsDereferenceAllowed(DereferenceCheckMode mode) const;
-#endif // DEBUG
+#endif // ENABLE_SLOW_DCHECKS
private:
T** location_;
@@ -256,7 +256,7 @@ class DeferredHandleScope {
Object** prev_next_;
HandleScopeImplementer* impl_;
-#ifdef DEBUG
+#if DCHECK_IS_ON
bool handles_detached_;
int prev_level_;
#endif
« no previous file with comments | « src/full-codegen.cc ('k') | src/handles.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698