[Webkit-unassigned] [Bug 262059] Provide public C API for getting and setting JavaScriptCore options
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Sep 25 23:36:16 PDT 2023
https://bugs.webkit.org/show_bug.cgi?id=262059
--- Comment #2 from Kasper Isager Dalsgarð <kasperisager at hey.com> ---
I'm working on a JavaScript runtime that binds to several JavaScript engines, JavaScriptCore being one and V8 being another. Mostly for debugging purposes, the C API of the runtime exposes options for disabling or tracing JIT, enabling sampling profiling if available, and more.
Through an API independent of the underlying engine, embedders can specify platform options, such as `trace_garbage_collection`, which are then translated to engine specific options behind the scenes, such as `--trace-gc` in V8 or `JSC_logGC=true` in JavaScriptCore. That particular option also happened to be one of the options you asked me to enable in https://bugs.webkit.org/show_bug.cgi?id=251261, and it has proven helpful in other cases as well.
To some extent, it might also be true that I shouldn't be using the system JavaScriptCore framework for this; I could just embed it directly and rely on its internal APIs. Using the system JavaScriptCore framework is highly desirable, however, as it allows me to ship a mostly complete runtime, with things like CommonJS and C addon support, to Apple devices in only a few hundred KiB. The other bugs I've filed over the past year asking for additional public API to be exposed relates to the bits I'm missing for it to be fully complete.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230926/dcb8ec05/attachment-0001.htm>
More information about the webkit-unassigned
mailing list