Disable DCHECK

763 views
Skip to first unread message

A. S.

unread,
Feb 22, 2020, 5:38:26 AM2/22/20
to v8-users
Hi, 

is it possible to disable DCHECK functions in debug-d8 with a flag? 
Or do I have to recompile it with manually manipulated code?

Caitlin Potter

unread,
Feb 22, 2020, 12:01:36 PM2/22/20
to v8-u...@googlegroups.com
Mostly, you have compiler-time options only. With a bit of work, you could make it a runtimes option.

Compile-time:
You can disable some DCHECKs with the gn option `v8_enable_slow_dchecks = false`. If you want to turn them all off, I think you’d have to patch src/base/logging.h manually to not emit the assertions when DEBUG is defined.

Runtime:
There is an API exposed to embedders, to intercept assertion failures, but I don’t believe d8 uses it.

Hope that helps a bit.

On Feb 22, 2020, at 5:38 AM, A. S. <schroede...@gmail.com> wrote:


Hi, 

is it possible to disable DCHECK functions in debug-d8 with a flag? 
Or do I have to recompile it with manually manipulated code?

--
--
v8-users mailing list
v8-u...@googlegroups.com
http://groups.google.com/group/v8-users
---
You received this message because you are subscribed to the Google Groups "v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/v8-users/3afc3b3f-10be-4c11-8574-69c2a9eb12dd%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages