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

Issue 6489: Exclude the bit-field bits from string hash codes. String hash codes... (Closed)

Created:
12 years, 2 months ago by Mads Ager (chromium)
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Exclude the bit-field bits from string hash codes. String hash codes are always odd if the bit-field bits are included. Modified a couple of debugger tests that relied on the ordering of elements in descriptor arrays. Descriptor arrays are sorted by hash-code values, so the order changes if we change the hash code. Committed: http://code.google.com/p/v8/source/detail?r=440

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -55 lines) Patch
M src/heap.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/heap.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M src/ic-arm.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/ic-ia32.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/objects.h View 1 2 4 chunks +14 lines, -8 lines 0 comments Download
M src/objects.cc View 1 2 6 chunks +15 lines, -13 lines 0 comments Download
M src/objects-inl.h View 1 2 3 chunks +14 lines, -8 lines 0 comments Download
src/stub-cache.h View 1 2 3 1 chunk +8 lines, -3 lines 0 comments Download
M src/stub-cache-arm.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M src/stub-cache-ia32.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M test/mjsunit/debug-evaluate-locals.js View 1 chunk +44 lines, -14 lines 0 comments Download
M test/mjsunit/regress/regress-1170187.js View 1 chunk +23 lines, -2 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Mads Ager (chromium)
12 years, 2 months ago (2008-10-06 09:09:44 UTC) #1
Kasper Lund
LGTM, but I wouldn't change the hashing used in the megamorphic lookup table. See comments: ...
12 years, 2 months ago (2008-10-06 09:18:18 UTC) #2
Mads Ager (chromium)
12 years, 2 months ago (2008-10-06 09:35:34 UTC) #3
Good catch.  Fixed and submitted.

Powered by Google App Engine
This is Rietveld 408576698