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

Unified Diff: src/optimizing-compiler-thread.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/optimizing-compiler-thread.h
diff --git a/src/optimizing-compiler-thread.h b/src/optimizing-compiler-thread.h
index 60f95f4ea44ee4c89cc84f89a53ecdb5d9a3b2ee..f9ed3bdf314ba6d7adc53fc222fae80a65c8f50f 100644
--- a/src/optimizing-compiler-thread.h
+++ b/src/optimizing-compiler-thread.h
@@ -24,7 +24,7 @@ class OptimizingCompilerThread : public base::Thread {
public:
explicit OptimizingCompilerThread(Isolate* isolate)
: Thread(Options("OptimizingCompilerThread")),
-#ifdef DEBUG
+#if DCHECK_IS_ON
thread_id_(0),
#endif
isolate_(isolate),
@@ -80,7 +80,7 @@ class OptimizingCompilerThread : public base::Thread {
return (FLAG_concurrent_recompilation && max_available > 1);
}
-#ifdef DEBUG
+#if DCHECK_IS_ON
static bool IsOptimizerThread(Isolate* isolate);
bool IsOptimizerThread();
#endif
@@ -107,7 +107,7 @@ class OptimizingCompilerThread : public base::Thread {
return result;
}
-#ifdef DEBUG
+#if DCHECK_IS_ON
int thread_id_;
base::Mutex thread_id_mutex_;
#endif
« src/objects.cc ('K') | « src/objects-debug.cc ('k') | src/optimizing-compiler-thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698