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 |