| Index: third_party/WebKit/Source/platform/heap/PersistentNode.h
|
| diff --git a/third_party/WebKit/Source/platform/heap/PersistentNode.h b/third_party/WebKit/Source/platform/heap/PersistentNode.h
|
| index 6fbc02a2bf4fbd6d680518ea8fcaec5e3fbe50bc..ee726283aa09231e152a1f25e7c69f0590c55fe4 100644
|
| --- a/third_party/WebKit/Source/platform/heap/PersistentNode.h
|
| +++ b/third_party/WebKit/Source/platform/heap/PersistentNode.h
|
| @@ -23,7 +23,7 @@ class PersistentNode final {
|
| public:
|
| PersistentNode() : m_self(nullptr), m_trace(nullptr) { ASSERT(isUnused()); }
|
|
|
| -#if ENABLE(ASSERT)
|
| +#if DCHECK_IS_ON()
|
| ~PersistentNode() {
|
| // If you hit this assert, it means that the thread finished
|
| // without clearing persistent handles that the thread created.
|
| @@ -214,7 +214,7 @@ class CrossThreadPersistentRegion final {
|
|
|
| void tracePersistentNodes(Visitor* visitor) {
|
| // If this assert triggers, you're tracing without being in a LockScope.
|
| -#if ENABLE(ASSERT)
|
| +#if DCHECK_IS_ON()
|
| DCHECK(m_mutex.locked());
|
| #endif
|
| m_persistentRegion->tracePersistentNodes(
|
|
|