WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
92137
Create a specialized pair for use in HashMap iterators
https://bugs.webkit.org/show_bug.cgi?id=92137
Summary
Create a specialized pair for use in HashMap iterators
Caio Marcelo de Oliveira Filho
Reported
2012-07-24 10:20:51 PDT
Create a specialized struct for use in HashMap iterators
Attachments
Patch
(18.59 KB, patch)
2012-07-24 10:42 PDT
,
Caio Marcelo de Oliveira Filho
no flags
Details
Formatted Diff
Diff
Updated version for EWS
(18.62 KB, patch)
2012-07-24 12:09 PDT
,
Caio Marcelo de Oliveira Filho
no flags
Details
Formatted Diff
Diff
Patch for landing
(18.66 KB, patch)
2012-07-25 11:51 PDT
,
Caio Marcelo de Oliveira Filho
no flags
Details
Formatted Diff
Diff
Patch for landing
(18.66 KB, patch)
2012-07-25 11:53 PDT
,
Caio Marcelo de Oliveira Filho
no flags
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Caio Marcelo de Oliveira Filho
Comment 1
2012-07-24 10:42:24 PDT
Created
attachment 154102
[details]
Patch
Ryosuke Niwa
Comment 2
2012-07-24 10:48:44 PDT
Comment on
attachment 154102
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=154102&action=review
> Source/WTF/wtf/HashTable.h:294 > + template<typename T, typename U> inline void hashTableSwap(KeyValuePair<T, U>& a, KeyValuePair<T, U>& b)
Do we need to keep the one with std::pair?
> Source/WTF/wtf/HashTraits.h:195 > + KeyValuePair() : first(), second() { } > + KeyValuePair(const KeyTypeArg& key, const ValueTypeArg& value) : first(key), second(value) { } > + > + template <typename OtherKeyType, typename OtherValueType> > + KeyValuePair(const KeyValuePair<OtherKeyType, OtherValueType>& other) : first(other.first), second(other.second) { }
Please put each variable initialization on a separate line.
> Source/WebKit2/Platform/CoreIPC/ArgumentCoders.h:76 > + static void encode(ArgumentEncoder* encoder, const WTF::KeyValuePair<KeyType, ValueType>& pair)
Do we need to keep the one with std::pair?
Caio Marcelo de Oliveira Filho
Comment 3
2012-07-24 11:41:03 PDT
Comment on
attachment 154102
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=154102&action=review
Thanks for the comments.
>> Source/WTF/wtf/HashTable.h:294 >> + template<typename T, typename U> inline void hashTableSwap(KeyValuePair<T, U>& a, KeyValuePair<T, U>& b) > > Do we need to keep the one with std::pair?
Not anymore.
>> Source/WTF/wtf/HashTraits.h:195 >> + KeyValuePair(const KeyValuePair<OtherKeyType, OtherValueType>& other) : first(other.first), second(other.second) { } > > Please put each variable initialization on a separate line.
Fixed.
>> Source/WebKit2/Platform/CoreIPC/ArgumentCoders.h:76 >> + static void encode(ArgumentEncoder* encoder, const WTF::KeyValuePair<KeyType, ValueType>& pair) > > Do we need to keep the one with std::pair?
Yes, it is still needed: we pass thru IPC other structures that build on top of std::pair.
Caio Marcelo de Oliveira Filho
Comment 4
2012-07-24 12:09:58 PDT
Created
attachment 154116
[details]
Updated version for EWS
Caio Marcelo de Oliveira Filho
Comment 5
2012-07-25 11:51:15 PDT
Created
attachment 154409
[details]
Patch for landing
Caio Marcelo de Oliveira Filho
Comment 6
2012-07-25 11:53:37 PDT
Created
attachment 154411
[details]
Patch for landing
WebKit Review Bot
Comment 7
2012-07-25 15:15:28 PDT
Comment on
attachment 154411
[details]
Patch for landing Clearing flags on attachment: 154411 Committed
r123667
: <
http://trac.webkit.org/changeset/123667
>
WebKit Review Bot
Comment 8
2012-07-25 15:15:33 PDT
All reviewed patches have been landed. Closing bug.
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