WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 129066
FTL should allow LLVM to allocate data sections with alignment > 8
https://bugs.webkit.org/show_bug.cgi?id=129066
Summary
FTL should allow LLVM to allocate data sections with alignment > 8
Filip Pizlo
Reported
2014-02-19 14:54:34 PST
Patch forthcoming.
Attachments
the patch
(17.87 KB, patch)
2014-02-19 14:57 PST
,
Filip Pizlo
ggaren
: review+
Details
Formatted Diff
Diff
the patch
(17.34 KB, patch)
2014-02-19 15:00 PST
,
Filip Pizlo
fpizlo
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Filip Pizlo
Comment 1
2014-02-19 14:57:09 PST
Created
attachment 224682
[details]
the patch
Geoffrey Garen
Comment 2
2014-02-19 15:00:11 PST
Comment on
attachment 224682
[details]
the patch View in context:
https://bugs.webkit.org/attachment.cgi?id=224682&action=review
r=me
> Source/JavaScriptCore/ftl/FTLDataSection.cpp:51 > + m_base = bitwise_cast<void*>( > + (bitwise_cast<uintptr_t>(m_allocationBase) + alignment - 1) & ~static_cast<uintptr_t>(alignment - 1)); > +
Can we use roundUpToMultipleOf<> here?
Filip Pizlo
Comment 3
2014-02-19 15:00:15 PST
Created
attachment 224683
[details]
the patch
Filip Pizlo
Comment 4
2014-02-19 15:00:50 PST
Comment on
attachment 224683
[details]
the patch ggaren already r+'d, and this is just a rebase.
WebKit Commit Bot
Comment 5
2014-02-19 15:02:22 PST
Attachment 224683
[details]
did not pass style-queue: ERROR: Source/JavaScriptCore/ftl/FTLDataSection.h:37: The parameter name "size" adds no information, so it should be removed. [readability/parameter_name] [5] Total errors found: 1 in 8 files If any of these errors are false positives, please file a bug against check-webkit-style.
Filip Pizlo
Comment 6
2014-02-19 15:04:12 PST
(In reply to
comment #2
)
> (From update of
attachment 224682
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=224682&action=review
> > r=me > > > Source/JavaScriptCore/ftl/FTLDataSection.cpp:51 > > + m_base = bitwise_cast<void*>( > > + (bitwise_cast<uintptr_t>(m_allocationBase) + alignment - 1) & ~static_cast<uintptr_t>(alignment - 1)); > > + > > Can we use roundUpToMultipleOf<> here?
I suppose we could. I get annoyed whenever I see size_t used as a "pointer-sized integer", and roundUpToMultipleOf uses size_t. It probably doesn't matter, though. I think I'll leave it. The math is simple enough that the helper doesn't add *that* much value.
Filip Pizlo
Comment 7
2014-02-19 15:06:03 PST
Landed in
http://trac.webkit.org/changeset/164393
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug