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

Unified Diff: src/frames.cc

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/frames.h ('k') | src/full-codegen.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/frames.cc
diff --git a/src/frames.cc b/src/frames.cc
index 0ba8ea0020ed379dc2d70fe423b6ac00d983f6f1..7c3a6741760ba2fb22eec0bc864d219bbb597c13 100644
--- a/src/frames.cc
+++ b/src/frames.cc
@@ -386,7 +386,7 @@ bool StackFrame::HasHandler() const {
}
-#ifdef DEBUG
+#if DCHECK_IS_ON
static bool GcSafeCodeContains(HeapObject* object, Address addr);
#endif
@@ -440,7 +440,7 @@ StackFrame::Type StackFrame::ComputeType(const StackFrameIteratorBase* iterator,
}
-#ifdef DEBUG
+#if DCHECK_IS_ON
bool StackFrame::can_access_heap_objects() const {
return iterator_->can_access_heap_objects_;
}
@@ -1450,7 +1450,7 @@ static int GcSafeSizeOfCodeSpaceObject(HeapObject* object) {
}
-#ifdef DEBUG
+#if DCHECK_IS_ON
static bool GcSafeCodeContains(HeapObject* code, Address addr) {
Map* map = GcSafeMapOfCodeSpaceObject(code);
DCHECK(map == code->GetHeap()->code_map());
« no previous file with comments | « src/frames.h ('k') | src/full-codegen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698