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

Unified Diff: src/parser.cc

Issue 769263002: Add support for enabling DCHECKs in release mode (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 6 years 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/parser.h ('k') | src/ppc/codegen-ppc.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/parser.cc
diff --git a/src/parser.cc b/src/parser.cc
index 6fcca2070bf27b7e8d8b95147a5a7b39c77ac696..0469a2653f57443b97ef512b92c60eb40921655f 100644
--- a/src/parser.cc
+++ b/src/parser.cc
@@ -29,10 +29,12 @@ RegExpBuilder::RegExpBuilder(Zone* zone)
characters_(NULL),
terms_(),
alternatives_()
-#ifdef DEBUG
- , last_added_(ADD_NONE)
+#if DCHECK_IS_ON
+ ,
+ last_added_(ADD_NONE)
#endif
- {}
+{
+}
void RegExpBuilder::FlushCharacters() {
@@ -4705,7 +4707,7 @@ RegExpTree* RegExpParser::ParseDisjunction() {
}
-#ifdef DEBUG
+#if DCHECK_IS_ON
// Currently only used in an DCHECK.
static bool IsSpecialClassEscape(uc32 c) {
switch (c) {
« no previous file with comments | « src/parser.h ('k') | src/ppc/codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698