Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(688)

Issue 100069: Replace std::map, std::set by WTF::HashMap and WTF::HashSet.... (Closed)

Created:
11 years, 8 months ago by Feng Qian
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Replace std::map, std::set by WTF::HashMap and WTF::HashSet. WebKit gurus, please review the change carefully, WTF::HashMap interface is not well documented, so I have implement customized hash functions and HashTraits in order to use StringKey as the hash key. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=14995

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -40 lines) Patch
M webkit/port/bindings/v8/npruntime.cpp View 1 11 chunks +93 lines, -40 lines 2 comments Download

Messages

Total messages: 6 (0 generated)
Feng Qian
Replace stl classes, map and set by WTF classes, HashMap and HashSet. WebKit Guru, please ...
11 years, 8 months ago (2009-04-27 22:16:22 UTC) #1
Feng Qian
Please hold off the review. I found some issues when running test. Fixing....
11 years, 8 months ago (2009-04-27 22:29:50 UTC) #2
Feng Qian
Hi, I think it is ready for review. I am going to fix lint issues. ...
11 years, 7 months ago (2009-04-30 16:11:25 UTC) #3
dglazkov
I think this is fine. Even though there are multiple WebKit style issues and ideally ...
11 years, 7 months ago (2009-04-30 21:14:04 UTC) #4
Mike Belshe
lgtm http://codereview.chromium.org/100069/diff/2003/4 File webkit/port/bindings/v8/npruntime.cpp (right): http://codereview.chromium.org/100069/diff/2003/4#newcode51 Line 51: StringKey(const char* str) : _string(str), _length(strlen(str)) {} ...
11 years, 7 months ago (2009-04-30 21:37:52 UTC) #5
Feng Qian
11 years, 7 months ago (2009-04-30 23:04:13 UTC) #6
I already check it in, let's fix style issue when upstreaming the code.

On 2009/04/30 21:37:52, Mike Belshe wrote:
> lgtm
> 
> http://codereview.chromium.org/100069/diff/2003/4
> File webkit/port/bindings/v8/npruntime.cpp (right):
> 
> http://codereview.chromium.org/100069/diff/2003/4#newcode51
> Line 51: StringKey(const char* str) : _string(str), _length(strlen(str)) {}
> style wise, these should be m_string and m_length?  (for webkit style)
> 
> http://codereview.chromium.org/100069/diff/2003/4#newcode88
> Line 88: // Use the same string hash function as in V8.
> This comment might make the reader think this needs to match the v8 algorithm,
> but I don't think it does?

Powered by Google App Engine
This is Rietveld 408576698