[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:
parent
639abf4fd4
commit
fde9039fed
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user