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

Unified Diff: test/cctest/test-regexp.cc

Issue 10293: Only enable dot printing in debug mode (Closed)
Patch Set: Created 12 years, 1 month 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 | « src/jsregexp.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-regexp.cc
diff --git a/test/cctest/test-regexp.cc b/test/cctest/test-regexp.cc
index a5c2127fac813413f89fe331e3194424d274b38c..a2b3c97d1af69cdc1cc9adcab7231b42b8457cac 100644
--- a/test/cctest/test-regexp.cc
+++ b/test/cctest/test-regexp.cc
@@ -337,10 +337,13 @@ static void Execute(const char* input,
if (!v8::internal::ParseRegExp(&buffer, &result))
return;
RegExpNode* node = RegExpEngine::Compile(&result);
+ USE(node);
+#ifdef DEBUG
if (dot_output) {
RegExpEngine::DotPrint(input, node);
exit(0);
}
+#endif // DEBUG
}
« no previous file with comments | « src/jsregexp.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698