| Index: src/base/platform/mutex.h
|
| diff --git a/src/base/platform/mutex.h b/src/base/platform/mutex.h
|
| index 5d0e57be57cb8141eee5fceaa37581b0679c6e46..01e9c3d17eb6d001d634bbc408d573f6c730bf7c 100644
|
| --- a/src/base/platform/mutex.h
|
| +++ b/src/base/platform/mutex.h
|
| @@ -68,19 +68,19 @@ class Mutex FINAL {
|
|
|
| private:
|
| NativeHandle native_handle_;
|
| -#ifdef DEBUG
|
| +#if DCHECK_IS_ON
|
| int level_;
|
| #endif
|
|
|
| V8_INLINE void AssertHeldAndUnmark() {
|
| -#ifdef DEBUG
|
| +#if DCHECK_IS_ON
|
| DCHECK_EQ(1, level_);
|
| level_--;
|
| #endif
|
| }
|
|
|
| V8_INLINE void AssertUnheldAndMark() {
|
| -#ifdef DEBUG
|
| +#if DCHECK_IS_ON
|
| DCHECK_EQ(0, level_);
|
| level_++;
|
| #endif
|
| @@ -163,7 +163,7 @@ class RecursiveMutex FINAL {
|
|
|
| private:
|
| NativeHandle native_handle_;
|
| -#ifdef DEBUG
|
| +#if DCHECK_IS_ON
|
| int level_;
|
| #endif
|
|
|
|
|