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. <schroeder.alx...@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-users@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+unsubscr...@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.

-- 
-- 
v8-users mailing list
v8-users@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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/v8-users/0BCE19F0-4115-4776-AD47-41288347FC89%40chromium.org.

Reply via email to