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

Unified Diff: Source/core/html/parser/BackgroundHTMLParser.cpp

Issue 397733004: Allow assertions to be enabled in Blink Release builds. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased. Created 6 years, 5 months 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 | « Source/core/html/parser/BackgroundHTMLInputStream.h ('k') | Source/core/html/parser/HTMLToken.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/parser/BackgroundHTMLParser.cpp
diff --git a/Source/core/html/parser/BackgroundHTMLParser.cpp b/Source/core/html/parser/BackgroundHTMLParser.cpp
index 66a62b8d1e77979e627500f19eb0851da2e89e22..13d18ab2ddc8b9e7db4876e69decd911e56356e7 100644
--- a/Source/core/html/parser/BackgroundHTMLParser.cpp
+++ b/Source/core/html/parser/BackgroundHTMLParser.cpp
@@ -54,7 +54,7 @@ static const size_t pendingTokenLimit = 1000;
using namespace HTMLNames;
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
static void checkThatTokensAreSafeToSendToAnotherThread(const CompactHTMLTokenStream* tokens)
{
@@ -239,7 +239,7 @@ void BackgroundHTMLParser::sendTokensToMainThread()
if (m_pendingTokens->isEmpty())
return;
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
checkThatTokensAreSafeToSendToAnotherThread(m_pendingTokens.get());
checkThatPreloadsAreSafeToSendToAnotherThread(m_pendingPreloads);
checkThatXSSInfosAreSafeToSendToAnotherThread(m_pendingXSSInfos);
« no previous file with comments | « Source/core/html/parser/BackgroundHTMLInputStream.h ('k') | Source/core/html/parser/HTMLToken.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698