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

Unified Diff: src/code-stub-assembler.h

Issue 2461463003: [stubs] Add FLAG_enable_slow_asserts check to CSA_SLOW_ASSERT (Closed)
Patch Set: doing the semicolon thing I was told to Created 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/code-stub-assembler.h
diff --git a/src/code-stub-assembler.h b/src/code-stub-assembler.h
index 10051a09afb21b88bf69d9fccaaa6a3e17759211..869afe42ab4b068712f26435a0913063ee1c1fec 100644
--- a/src/code-stub-assembler.h
+++ b/src/code-stub-assembler.h
@@ -1198,7 +1198,10 @@ class V8_EXPORT_PRIVATE CodeStubAssembler : public compiler::CodeAssembler {
#define CSA_ASSERT(x) Assert((x), #x, __FILE__, __LINE__)
#ifdef ENABLE_SLOW_DCHECKS
-#define CSA_SLOW_ASSERT(x) Assert((x), #x, __FILE__, __LINE__)
+#define CSA_SLOW_ASSERT(x) \
+ if (FLAG_enable_slow_asserts) { \
+ Assert((x), #x, __FILE__, __LINE__); \
+ }
#else
#define CSA_SLOW_ASSERT(x)
#endif
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698