Bug 102492 - Remove $outputDir and $outputHeadersDir from global variables of code generators
Summary: Remove $outputDir and $outputHeadersDir from global variables of code generators
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore JavaScript (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Kentaro Hara
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-16 06:02 PST by Kentaro Hara
Modified: 2012-11-21 14:13 PST (History)
10 users (show)

See Also:


Attachments
Patch (10.20 KB, patch)
2012-11-16 06:05 PST, Kentaro Hara
no flags Details | Formatted Diff | Diff
another try (11.66 KB, patch)
2012-11-19 04:46 PST, Kentaro Hara
no flags Details | Formatted Diff | Diff
another try (11.86 KB, patch)
2012-11-19 04:59 PST, Kentaro Hara
no flags Details | Formatted Diff | Diff
patch for landing (11.99 KB, patch)
2012-11-20 17:23 PST, Kentaro Hara
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kentaro Hara 2012-11-16 06:02:38 PST
$outputDir and $outputHeadersDir are used in WriteData() only. We don't need to use global variables for them.
Comment 1 Kentaro Hara 2012-11-16 06:05:17 PST
Created attachment 174662 [details]
Patch
Comment 2 Early Warning System Bot 2012-11-16 06:22:21 PST
Comment on attachment 174662 [details]
Patch

Attachment 174662 [details] did not pass qt-wk2-ews (qt):
Output: http://queues.webkit.org/results/14858472
Comment 3 Build Bot 2012-11-16 06:53:04 PST
Comment on attachment 174662 [details]
Patch

Attachment 174662 [details] did not pass win-ews (win):
Output: http://queues.webkit.org/results/14873136
Comment 4 Adam Barth 2012-11-16 09:32:18 PST
Comment on attachment 174662 [details]
Patch

Looks like you have come compile problems...
Comment 5 Kentaro Hara 2012-11-19 04:46:33 PST
Created attachment 174955 [details]
another try
Comment 6 Early Warning System Bot 2012-11-19 04:57:05 PST
Comment on attachment 174955 [details]
another try

Attachment 174955 [details] did not pass qt-wk2-ews (qt):
Output: http://queues.webkit.org/results/14901167
Comment 7 Kentaro Hara 2012-11-19 04:59:13 PST
Created attachment 174958 [details]
another try
Comment 8 Kentaro Hara 2012-11-19 17:56:41 PST
Comment on attachment 174958 [details]
another try

Now build bots look happy. r?
Comment 9 Adam Barth 2012-11-20 16:39:58 PST
Based on what timothy wrote in another bug, this shouldn't be a problem for the Safari builds because they don't use CodeGenerator.pm.
Comment 10 Kentaro Hara 2012-11-20 17:23:15 PST
Created attachment 175311 [details]
patch for landing
Comment 11 WebKit Review Bot 2012-11-20 18:33:39 PST
Comment on attachment 175311 [details]
patch for landing

Clearing flags on attachment: 175311

Committed r135340: <http://trac.webkit.org/changeset/135340>
Comment 12 WebKit Review Bot 2012-11-20 18:33:43 PST
All reviewed patches have been landed.  Closing bug.
Comment 13 Tim Horton 2012-11-21 04:56:07 PST
(In reply to comment #9)
> Based on what timothy wrote in another bug, this shouldn't be a problem for the Safari builds because they don't use CodeGenerator.pm.

Erg, this broke stuff too. I'll look and see if it's easy to fix, otherwise I might have to roll this out till next week.
Comment 14 Kentaro Hara 2012-11-21 04:57:51 PST
(In reply to comment #13)
> (In reply to comment #9)
> > Based on what timothy wrote in another bug, this shouldn't be a problem for the Safari builds because they don't use CodeGenerator.pm.
> 
> Erg, this broke stuff too. I'll look and see if it's easy to fix, otherwise I might have to roll this out till next week.

sorry, I can roll out the patch. Ping me if needed.
Comment 15 Kentaro Hara 2012-11-21 05:01:39 PST
Reverted r135340 for reason:

It broke Safari's internal build

Committed r135387: <http://trac.webkit.org/changeset/135387>
Comment 16 Kentaro Hara 2012-11-21 05:02:28 PST
I will reland the patch next week when Apple guys can take care of Safari's internal build.
Comment 17 Csaba Osztrogonác 2012-11-21 07:03:22 PST
(In reply to comment #15)
> Reverted r135340 for reason:
> 
> It broke Safari's internal build
> 
> Committed r135387: <http://trac.webkit.org/changeset/135387>

And the rollout broke the bining tests. Could you update it too?
Comment 18 Adam Barth 2012-11-21 09:58:19 PST
> Erg, this broke stuff too.

I'm sorry this patch broke things.  I must have misunderstood what you wrote in <https://bugs.webkit.org/show_bug.cgi?id=102671#c6>.  :(
Comment 19 Timothy Hatcher 2012-11-21 10:00:31 PST
It turns out we have two scripts that use WebCore binging scripts. One uses generate-bindings.pl. The other uses CodeGenerator.pm.
Comment 20 Adam Barth 2012-11-21 10:39:25 PST
Thanks for the clarification and your patience.
Comment 21 Timothy Hatcher 2012-11-21 11:19:13 PST
More details. We have our own CodeGeneratorSafari.pm too. So we need to keep up will any changes to CodeGenerator.pm and its interface. I'm working on making this work with TOT WebCore now.
Comment 22 Timothy Hatcher 2012-11-21 12:03:17 PST
Go ahead and land this again. I know the fixes we need to make.
Comment 23 WebKit Review Bot 2012-11-21 12:30:03 PST
Comment on attachment 175311 [details]
patch for landing

Clearing flags on attachment: 175311

Committed r135426: <http://trac.webkit.org/changeset/135426>
Comment 24 WebKit Review Bot 2012-11-21 12:30:08 PST
All reviewed patches have been landed.  Closing bug.
Comment 25 Kentaro Hara 2012-11-21 14:13:19 PST
Thanks for the fix!