Commit fde9039f authored by cbruni's avatar cbruni Committed by Commit bot

[stubs] Add FLAG_enable_slow_asserts check to CSA_SLOW_ASSERT

R=ishell@chromium.org
BUG=

Review-Url: https://codereview.chromium.org/2461463003
Cr-Commit-Position: refs/heads/master@{#40666}
parent 639abf4f
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment