Bug 182312 - JSExports.h should be included as <JavaScriptCore/JSExportMacros.h>
Summary: JSExports.h should be included as <JavaScriptCore/JSExportMacros.h>
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Don Olmstead
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-01-30 14:52 PST by Don Olmstead
Modified: 2018-01-31 13:51 PST (History)
9 users (show)

See Also:


Attachments
Patch (10.98 KB, patch)
2018-01-30 14:59 PST, Don Olmstead
no flags Details | Formatted Diff | Diff
Patch (7.24 KB, patch)
2018-01-30 15:03 PST, Don Olmstead
no flags Details | Formatted Diff | Diff
Patch (6.12 KB, patch)
2018-01-30 15:31 PST, Don Olmstead
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Don Olmstead 2018-01-30 14:52:11 PST
Currently in some places JSExports.h is being included incorrectly as <runtime/JSExports.h>
Comment 1 Don Olmstead 2018-01-30 14:59:17 PST
Created attachment 332711 [details]
Patch
Comment 2 EWS Watchlist 2018-01-30 15:01:15 PST
Attachment 332711 [details] did not pass style-queue:


ERROR: Source/WebCore/ChangeLog:8:  You should remove the 'No new tests' and either add and list tests, or explain why no new tests were possible.  [changelog/nonewtests] [5]
Total errors found: 1 in 14 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Don Olmstead 2018-01-30 15:03:03 PST
Created attachment 332712 [details]
Patch

Fix changelog
Comment 4 Don Olmstead 2018-01-30 15:31:40 PST
Created attachment 332714 [details]
Patch

Leave gtest alone for the moment
Comment 5 Michael Catanzaro 2018-01-30 16:27:52 PST
Comment on attachment 332714 [details]
Patch

That's really weird; I wonder why it was done this way....
Comment 6 Don Olmstead 2018-01-30 16:30:48 PST
(In reply to Michael Catanzaro from comment #5)
> Comment on attachment 332714 [details]
> Patch
> 
> That's really weird; I wonder why it was done this way....

Yea no clue but doesn't seem to be needed
Comment 7 WebKit Commit Bot 2018-01-30 16:53:52 PST
Comment on attachment 332714 [details]
Patch

Clearing flags on attachment: 332714

Committed r227866: <https://trac.webkit.org/changeset/227866>
Comment 8 WebKit Commit Bot 2018-01-30 16:53:54 PST
All reviewed patches have been landed.  Closing bug.
Comment 9 Radar WebKit Bug Importer 2018-01-30 17:02:23 PST
<rdar://problem/37049309>
Comment 10 Fujii Hironori 2018-01-30 17:39:53 PST
(In reply to Michael Catanzaro from comment #5)
> That's really weird; I wonder why it was done this way....

This is not so weird. This is the reason why Source/WebCore/ForwardingHeaders/runtime/JSExportMacros.h exists.

A lot of headers are included in this style. This is the reason why Source/WebCore/ForwardingHeaders exists.
Comment 11 Michael Catanzaro 2018-01-31 08:14:45 PST
I don't understand... I never noticed Source/WebCore/ForwardingHeaders before... why does it exist...?
Comment 12 Konstantin Tokarev 2018-01-31 08:19:22 PST
Seems like it's used by Mac and Win only
Comment 13 Don Olmstead 2018-01-31 11:10:29 PST
(In reply to Michael Catanzaro from comment #11)
> I don't understand... I never noticed Source/WebCore/ForwardingHeaders
> before... why does it exist...?

Definitely need to figure it out so https://bugs.webkit.org/show_bug.cgi?id=182303 can proceed. Actually found this issue while doing that and now there are more compilation errors because of <heap|runtime|etc/> style includes.
Comment 14 Alex Christensen 2018-01-31 11:11:51 PST
(In reply to Michael Catanzaro from comment #11)
> I don't understand... I never noticed Source/WebCore/ForwardingHeaders
> before... why does it exist...?

I don't think there's a good reason why it exists.
Comment 15 Don Olmstead 2018-01-31 11:22:08 PST
(In reply to Alex Christensen from comment #14)
> (In reply to Michael Catanzaro from comment #11)
> > I don't understand... I never noticed Source/WebCore/ForwardingHeaders
> > before... why does it exist...?
> 
> I don't think there's a good reason why it exists.

Is the same true for the ForwardingHeaders directory within JavaScriptCore?

I can make patches removing them all.
Comment 16 Michael Catanzaro 2018-01-31 13:27:49 PST
IMO if nobody knows why they exist, we should remove them.

In doing so, we'll either find the answer in some problem, or everything will be fine and it will remain a mystery.
Comment 17 Don Olmstead 2018-01-31 13:51:52 PST
(In reply to Michael Catanzaro from comment #16)
> IMO if nobody knows why they exist, we should remove them.
> 
> In doing so, we'll either find the answer in some problem, or everything
> will be fine and it will remain a mystery.

Yea I forked that particular issue into https://bugs.webkit.org/show_bug.cgi?id=182347. I don't think it'll work properly until this https://bugs.webkit.org/show_bug.cgi?id=182303 lands.