[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}
This commit is contained in:
cbruni 2016-10-31 03:31:47 -07:00 committed by Commit bot
parent 639abf4fd4
commit fde9039fed

View File

@ -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