Summary: | Use std::is_pod to define WTF::Vector behaviour | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Mikhail Pozdnyakov <mikhail.pozdnyakov> | ||||||||
Component: | Web Template Framework | Assignee: | Mikhail Pozdnyakov <mikhail.pozdnyakov> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | andersca, benjamin, cmarcelo, commit-queue, darin, eflews.bot, gyuyoung.kim, kling | ||||||||
Priority: | P2 | ||||||||||
Version: | 528+ (Nightly build) | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | Unspecified | ||||||||||
Attachments: |
|
Description
Mikhail Pozdnyakov
2013-09-03 05:20:08 PDT
Created attachment 210356 [details]
patch
Created attachment 210357 [details]
patch
Comment on attachment 210357 [details] patch Attachment 210357 [details] did not pass efl-wk2-ews (efl-wk2): Output: http://webkit-queues.appspot.com/results/1684325 Comment on attachment 210357 [details] patch Attachment 210357 [details] did not pass efl-ews (efl): Output: http://webkit-queues.appspot.com/results/1691231 I think this is a good idea (and I do think we should move towards the STL type traits instead of the WTF ones), but it seems to me like this can change code in subtle ways and I'd like to understand what those changes are. Comment on attachment 210357 [details]
patch
You should try to remove IsPod from WTF. You can use TypeTraits's compile_asserts to verify the behavior.
Created attachment 210446 [details]
patch v2
isPod is removed from WTF.
Comment on attachment 210446 [details] patch v2 View in context: https://bugs.webkit.org/attachment.cgi?id=210446&action=review > Source/WTF/ChangeLog:10 > + (workes with native types only) so non-optimized code path was selected works* > Source/WTF/ChangeLog:12 > + vector of plain structures. Using of std::is_pod solves the problem. Use of* (In reply to comment #6) > (From update of attachment 210357 [details]) > You should try to remove IsPod from WTF. You can use TypeTraits's compile_asserts to verify the behavior. I've removed IsPod from WTF but I'm not sure I understood you correctly: should we verify STL behaviour within TypeTraits.cpp ? Comment on attachment 210446 [details] patch v2 Attachment 210446 [details] did not pass efl-wk2-ews (efl-wk2): Output: http://webkit-queues.appspot.com/results/1694529 Comment on attachment 210446 [details] patch v2 Attachment 210446 [details] did not pass efl-ews (efl): Output: http://webkit-queues.appspot.com/results/1691507 Let’s do this, but let’s only change VectorTraits.h Comment on attachment 210446 [details]
patch v2
I believe this has been done.
|