Bug 56000 - Move the alignment related macros in Vector.h to the new Alignment.h.
Summary: Move the alignment related macros in Vector.h to the new Alignment.h.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Renata Hodovan
URL:
Keywords:
: 56182 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-03-09 00:49 PST by Renata Hodovan
Modified: 2011-04-19 14:21 PDT (History)
7 users (show)

See Also:


Attachments
Proposed patch (17.90 KB, patch)
2011-03-09 01:48 PST, Renata Hodovan
levin: review-
Details | Formatted Diff | Diff
Proposed patch (10.83 KB, patch)
2011-04-05 02:49 PDT, Renata Hodovan
no flags Details | Formatted Diff | Diff
Proposed patch (10.83 KB, patch)
2011-04-05 03:02 PDT, Renata Hodovan
darin: review-
Details | Formatted Diff | Diff
Proposed patch (11.25 KB, patch)
2011-04-11 13:14 PDT, Renata Hodovan
no flags Details | Formatted Diff | Diff
Proposed patch (11.12 KB, patch)
2011-04-12 01:34 PDT, Renata Hodovan
eric: review+
eric: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Renata Hodovan 2011-03-09 00:49:54 PST
Move the alignment related macros in Vector.h to new Alignment.h.
Comment 1 Renata Hodovan 2011-03-09 01:48:49 PST
Created attachment 85145 [details]
Proposed patch
Comment 2 Darin Adler 2011-03-12 19:51:17 PST
*** Bug 56182 has been marked as a duplicate of this bug. ***
Comment 3 David Levin 2011-03-29 11:38:20 PDT
Comment on attachment 85145 [details]
Proposed patch

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

You're going to need to add forwarding headers to avoid breaking the mac build.

I wonder if a better name for the header would be AlignedBuffer.h since that appears to be the primary thing that it provides so it is fine as is but consider renaming the header.

> Source/WebCore/WebCore.xcodeproj/project.pbxproj:3126
> +		A19B86F7132670040037F979 /* Alignment.h in Headers */ = {isa = PBXBuildFile; fileRef = A19B86F6132670040037F979 /* Alignment.h */; };

The changes in this file shouldn't be done. This file should be reverted.
Comment 4 Renata Hodovan 2011-03-30 08:51:30 PDT
(In reply to comment #3)
> (From update of attachment 85145 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=85145&action=review
> 
> You're going to need to add forwarding headers to avoid breaking the mac build.
> 
> I wonder if a better name for the header would be AlignedBuffer.h since that appears to be the primary thing that it provides so it is fine as is but consider renaming the header.
> 
> > Source/WebCore/WebCore.xcodeproj/project.pbxproj:3126
> > +		A19B86F7132670040037F979 /* Alignment.h in Headers */ = {isa = PBXBuildFile; fileRef = A19B86F6132670040037F979 /* Alignment.h */; };
> 
> The changes in this file shouldn't be done. This file should be reverted.

Thanks, but it's already resolved in #56182. Sorry for not closing this bug earlier.
Comment 5 Gabor Loki 2011-03-30 10:55:11 PDT
> Thanks, but it's already resolved in #56182. Sorry for not closing this bug earlier.

Well, bug 56182 was a duplicate of this bug, and no patch is landed from there.
Comment 6 Renata Hodovan 2011-03-30 13:19:28 PDT
(In reply to comment #5)
> > Thanks, but it's already resolved in #56182. Sorry for not closing this bug earlier.
> 
> Well, bug 56182 was a duplicate of this bug, and no patch is landed from there.

Ohh, I was sure it was landed. So, do you want to work on it or may I do it? :)
Comment 7 Renata Hodovan 2011-04-05 02:49:58 PDT
Created attachment 88195 [details]
Proposed patch
Comment 8 Renata Hodovan 2011-04-05 02:57:32 PDT
The bug isn't solved yet :)
Comment 9 Renata Hodovan 2011-04-05 03:02:06 PDT
Created attachment 88196 [details]
Proposed patch
Comment 10 Build Bot 2011-04-05 03:43:17 PDT
Attachment 88196 [details] did not build on win:
Build output: http://queues.webkit.org/results/8338121
Comment 11 Darin Adler 2011-04-05 09:50:30 PDT
Comment on attachment 88196 [details]
Proposed patch

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

Looks fine. The Windows build failed, so please make a new patch. I’ll say review- because we don’t want a review+ on a refactoring patch that failed on EWS.

> Source/JavaScriptCore/wtf/Alignment.h:3
> + *  Copyright (C) 2011 University of Szeged.

Since we just moved the code and made no changes, we should add a new copyright.
Comment 12 Renata Hodovan 2011-04-11 13:14:20 PDT
Created attachment 89065 [details]
Proposed patch
Comment 13 Renata Hodovan 2011-04-12 01:34:34 PDT
Created attachment 89168 [details]
Proposed patch
Comment 14 Renata Hodovan 2011-04-12 02:57:43 PDT
I don't know what's the problem with ews. As Gabor mentioned it in the twin bug, svn-apply works fine locally... any idea?
Comment 15 Gabor Loki 2011-04-12 03:03:19 PDT
(In reply to comment #14)
> I don't know what's the problem with ews. As Gabor mentioned it in the twin bug, svn-apply works fine locally... any idea?

Unfortunately the vcproj file needs CRLF on some EWS, and does not on the others. :(
Comment 16 Renata Hodovan 2011-04-18 04:03:54 PDT
Any feedback? :)
Comment 17 Gabor Loki 2011-04-18 07:47:26 PDT
Looks good to me! I couldn't have done a better job myself. ;)
Comment 18 Eric Seidel (no email) 2011-04-18 09:03:53 PDT
Comment on attachment 89168 [details]
Proposed patch

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

> Source/JavaScriptCore/wtf/Alignment.h:21
> +#ifndef Alignment_h

I think this was supposed to be WTF_Alignment_h actually.
Comment 19 Eric Seidel (no email) 2011-04-18 09:04:49 PDT
The clean-header-guards script might help you find the right guard. :)
Comment 20 Renata Hodovan 2011-04-18 11:31:11 PDT
(In reply to comment #18)
> (From update of attachment 89168 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=89168&action=review
> 
> > Source/JavaScriptCore/wtf/Alignment.h:21
> > +#ifndef Alignment_h
> 
> I think this was supposed to be WTF_Alignment_h actually.

Thanks to both of you. :)
Btw WTF_Alignment_h seems to be a good choice.
Comment 21 Renata Hodovan 2011-04-19 13:55:07 PDT
Committed r84290: <http://trac.webkit.org/changeset/84290>
Comment 22 Eric Seidel (no email) 2011-04-19 14:19:32 PDT
I think this broke the mac build.  I'm sad this was landed by hand. :(
Comment 23 Eric Seidel (no email) 2011-04-19 14:19:54 PDT
pbxcp: Alignment.h: No such file or directory
pbxcp: Alignment.h: No such file or directory
** BUILD FAILED **


The following build commands failed:
JavaScriptCore:
	CpHeader /Projects/WebKit/WebKitBuild/Release/JavaScriptCore.framework/Versions/A/PrivateHeaders/Alignment.h Alignment.h
(1 failure)
Comment 24 WebKit Review Bot 2011-04-19 14:21:19 PDT
http://trac.webkit.org/changeset/84290 might have broken Leopard Intel Debug (Build) and SnowLeopard Intel Release (Build)