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

Issue 113397: Add a remove method to the hash map (Closed)

Created:
11 years, 7 months ago by Søren Thygesen Gjesse
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Add a remove method to the hash map. Extended the hash map test to also use a heavy collision hash function to exercise the remove code. Committed: http://code.google.com/p/v8/source/detail?r=1956

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 4

Patch Set 3 : '' #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -12 lines) Patch
M src/hashmap.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M src/hashmap.cc View 1 2 3 chunks +60 lines, -2 lines 5 comments Download
M test/cctest/test-hashmap.cc View 1 2 4 chunks +63 lines, -10 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Søren Thygesen Gjesse
11 years, 7 months ago (2009-05-14 14:08:00 UTC) #1
iposva
http://codereview.chromium.org/113397/diff/10/13 File src/hashmap.cc (right): http://codereview.chromium.org/113397/diff/10/13#newcode111 Line 111: } Comments please. This is non-trivial code...
11 years, 7 months ago (2009-05-14 16:53:38 UTC) #2
Dean McNamee
Typo in your commit description...
11 years, 7 months ago (2009-05-14 18:48:38 UTC) #3
Christian Plesner Hansen
Lgtm w/ comments. http://codereview.chromium.org/113397/diff/10/13 File src/hashmap.cc (right): http://codereview.chromium.org/113397/diff/10/13#newcode88 Line 88: Entry *p = Probe(key, hash); ...
11 years, 7 months ago (2009-05-15 06:51:29 UTC) #4
Søren Thygesen Gjesse
http://codereview.chromium.org/113397/diff/10/13 File src/hashmap.cc (right): http://codereview.chromium.org/113397/diff/10/13#newcode88 Line 88: Entry *p = Probe(key, hash); On 2009/05/15 06:51:29, ...
11 years, 7 months ago (2009-05-15 07:08:44 UTC) #5
Dean McNamee
11 years, 7 months ago (2009-05-15 07:24:00 UTC) #6
http://codereview.chromium.org/113397/diff/17/20
File src/hashmap.cc (right):

http://codereview.chromium.org/113397/diff/17/20#newcode96
Line 96: // entry that will cause search for an entry to stop to soon. If all
the
too soon

http://codereview.chromium.org/113397/diff/17/20#newcode98
Line 98: // initial position inside this interval clearing the entry to remove
will not
interval,

http://codereview.chromium.org/113397/diff/17/20#newcode101
Line 101: // remove and the position looked at this entry can be moved to the
place of
looked at,

http://codereview.chromium.org/113397/diff/17/20#newcode103
Line 103: // remove will be its previous position.
runon :)

http://codereview.chromium.org/113397/diff/17/20#newcode107
Line 107: // eventually the removed entyr will have an empty entry after it.
entry

Powered by Google App Engine
This is Rietveld 408576698