Bug 199270

Summary: Use JSC_GLIB_API_ENABLED instead of USE(GLIB) as a compile-time check for GLib JSC API
Product: WebKit Reporter: Konstantin Tokarev <annulen>
Component: JavaScriptCoreAssignee: Konstantin Tokarev <annulen>
Status: RESOLVED FIXED    
Severity: Normal CC: cgarcia, ews-watchlist, keith_miller, mark.lam, mcatanzaro, msaboff, saam, tzagallo, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Konstantin Tokarev 2019-06-27 06:18:20 PDT
This change allows building code with enabled USE(GLIB) but without GLib JSC API
Comment 1 Konstantin Tokarev 2019-06-27 06:22:15 PDT
Created attachment 373025 [details]
Patch
Comment 2 Michael Catanzaro 2019-06-27 07:21:23 PDT
Comment on attachment 373025 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=373025&action=review

> Source/JavaScriptCore/heap/Heap.cpp:99
> -#if USE(GLIB)
> +#ifdef JSC_GLIB_API_ENABLED

How about #if ENABLE(JSC_GLIB_API)?
Comment 3 Konstantin Tokarev 2019-06-27 07:27:11 PDT
This macro is also used in public headers of JSC where ENABLE() is unavailable. It's possible to introduce another macro ENABLE_JSC_GLIB_API to be used inside implementation code, but I've decided not to multiply entities
Comment 4 Michael Catanzaro 2019-06-27 08:00:03 PDT
Comment on attachment 373025 [details]
Patch

OK then. I also missed that it already exists. But why no r?
Comment 5 Konstantin Tokarev 2019-06-27 08:11:18 PDT
Comment on attachment 373025 [details]
Patch

Oops, I wanted to check EWS status
Comment 6 EWS Watchlist 2019-06-27 08:24:05 PDT
Comment on attachment 373025 [details]
Patch

Attachment 373025 [details] did not pass jsc-ews (mac):
Output: https://webkit-queues.webkit.org/results/12592494

New failing tests:
mozilla-tests.yaml/js1_5/Array/regress-101964.js.mozilla-dfg-eager-no-cjit-validate-phases
apiTests
Comment 7 Konstantin Tokarev 2019-06-27 08:39:00 PDT
Comment on attachment 373025 [details]
Patch

Clearing flags on attachment: 373025

Committed r246881: <https://trac.webkit.org/changeset/246881>
Comment 8 Konstantin Tokarev 2019-06-27 08:39:04 PDT
All reviewed patches have been landed.  Closing bug.
Comment 9 Radar WebKit Bug Importer 2019-06-27 08:48:20 PDT
<rdar://problem/52261875>