Replace ASSERT, RELEASE_ASSERT, and ASSERT_NOT_REACHED with DCHECK_op, CHECK_op, and NOTREACHED respectively in third_party/WebKit/Source/modules/webaudio.
> I found ASSERT_NO_EXCEPTION in many places. I believe this is related to DCHECK() and will leave them alone.
Yes, we don't need to touch ASSERT_NO_EXCEPTION now.
> Why does .locked() method is wrapped with DCHECK_IS_ON here?
Because m_recursionCount is defined only if DCHECK_IS_ON. It's unnecessary in production.
If we do NOT have ASSERT(!isGraphOwner()) or DCHECK(!isGraphOwner()), we can define isGraphOwner even if !DCHEK_IS_ON, like:
bool DeferredTaskHandler::isGraphOwner() {
#if DCHECK_IS_ON()
return m_contextGraphMutex.locked();
#else
return true;
#endif
}
Comment 1 by rtoy@chromium.org
, Apr 5 2017Status: Assigned (was: Untriaged)