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

Issue 9190001: Backport @10366 to 3.6

Created:
8 years, 11 months ago by indutny
Modified:
8 years, 11 months ago
Reviewers:
Erik Corry
CC:
v8-dev
Visibility:
Public.

Description

backport @10366, @10367 and @10402 to 3.6 Add seed to hash of numeric keyed properties. Minor cleanups of numeric seeded hashing patch. Split NumberDictionary into a randomly seeded and an unseeded version. We don't want to randomize the stub cache. R=erik.corry@gmail.com

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 2

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+685 lines, -349 lines) Patch
M src/arm/code-stubs-arm.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/arm/macro-assembler-arm.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/arm/macro-assembler-arm.cc View 1 2 3 4 5 6 7 4 chunks +35 lines, -23 lines 1 comment Download
M src/code-stubs.cc View 1 2 3 4 5 6 7 3 chunks +4 lines, -4 lines 0 comments Download
M src/debug.h View 1 chunk +3 lines, -1 line 0 comments Download
M src/elements.cc View 1 2 3 4 5 6 7 5 chunks +8 lines, -7 lines 0 comments Download
M src/factory.h View 1 2 3 4 5 6 7 2 chunks +12 lines, -3 lines 0 comments Download
M src/factory.cc View 1 2 3 4 5 6 7 2 chunks +26 lines, -6 lines 0 comments Download
M src/flag-definitions.h View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M src/frames.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/handles.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -3 lines 0 comments Download
M src/handles.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -5 lines 0 comments Download
M src/heap.h View 1 2 3 4 5 6 7 5 chunks +8 lines, -8 lines 0 comments Download
M src/heap.cc View 1 2 3 4 5 6 7 2 chunks +10 lines, -10 lines 1 comment Download
M src/ia32/code-stubs-ia32.cc View 1 2 2 chunks +2 lines, -2 lines 1 comment Download
M src/ia32/macro-assembler-ia32.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/ia32/macro-assembler-ia32.cc View 1 2 3 4 5 6 7 5 chunks +52 lines, -30 lines 0 comments Download
M src/mips/code-stubs-mips.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/mips/macro-assembler-mips.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/mips/macro-assembler-mips.cc View 1 2 3 4 5 6 7 5 chunks +45 lines, -33 lines 0 comments Download
M src/objects.h View 1 2 3 4 5 6 7 12 chunks +89 lines, -18 lines 2 comments Download
M src/objects.cc View 1 2 3 4 5 6 7 47 chunks +147 lines, -95 lines 0 comments Download
M src/objects-debug.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M src/objects-inl.h View 1 2 3 4 5 6 7 7 chunks +23 lines, -12 lines 0 comments Download
M src/profile-generator.h View 1 2 3 4 5 6 7 4 chunks +8 lines, -4 lines 0 comments Download
M src/profile-generator.cc View 1 2 3 4 5 6 7 6 chunks +17 lines, -13 lines 0 comments Download
M src/runtime.cc View 1 2 3 4 5 6 7 11 chunks +26 lines, -22 lines 0 comments Download
M src/stub-cache.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -2 lines 0 comments Download
M src/type-info.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M src/type-info.cc View 1 2 3 4 5 6 7 3 chunks +3 lines, -3 lines 0 comments Download
M src/utils.h View 2 chunks +6 lines, -2 lines 0 comments Download
M src/v8globals.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M src/version.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M src/x64/code-stubs-x64.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/x64/macro-assembler-x64.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/x64/macro-assembler-x64.cc View 1 2 3 4 5 6 7 5 chunks +44 lines, -31 lines 0 comments Download
M test/cctest/test-hashing.cc View 1 2 3 4 5 6 7 3 chunks +88 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
indutny
8 years, 11 months ago (2012-01-11 09:17:46 UTC) #1
Erik Corry
LGTM with two nits. http://codereview.chromium.org/9190001/diff/4007/src/ia32/macro-assembler-ia32.cc File src/ia32/macro-assembler-ia32.cc (right): http://codereview.chromium.org/9190001/diff/4007/src/ia32/macro-assembler-ia32.cc#newcode764 src/ia32/macro-assembler-ia32.cc:764: mov(scratch, Immediate(Heap::kHashSeedRootIndex)); There's a missing ...
8 years, 11 months ago (2012-01-11 10:20:35 UTC) #2
isaacs
What's the status of this? Erik, are you waiting for Fedor to fix the nits ...
8 years, 11 months ago (2012-01-13 17:06:30 UTC) #3
Erik Corry
8 years, 11 months ago (2012-01-19 15:35:00 UTC) #4
LGTM and committed.

http://codereview.chromium.org/9190001/diff/9001/src/arm/macro-assembler-arm.cc
File src/arm/macro-assembler-arm.cc (right):

http://codereview.chromium.org/9190001/diff/9001/src/arm/macro-assembler-arm....
src/arm/macro-assembler-arm.cc:1362: mul(t0, t0, scratch);
This looks like a missing merge, but no big deal.

http://codereview.chromium.org/9190001/diff/9001/src/heap.cc
File src/heap.cc (right):

http://codereview.chromium.org/9190001/diff/9001/src/heap.cc#newcode5365
src/heap.cc:5365: // Setup the seed that is used to randomize the string hash
function.
AAAAArhg! :-)

http://codereview.chromium.org/9190001/diff/9001/src/ia32/code-stubs-ia32.cc
File src/ia32/code-stubs-ia32.cc (right):

http://codereview.chromium.org/9190001/diff/9001/src/ia32/code-stubs-ia32.cc#...
src/ia32/code-stubs-ia32.cc:5616: roots_address));
Oops, there's a missing SmiUntag here.  I fixed it in 10443 and included the
change here before committing.

http://codereview.chromium.org/9190001/diff/9001/src/objects.h
File src/objects.h (left):

http://codereview.chromium.org/9190001/diff/9001/src/objects.h#oldcode1906
src/objects.h:1906: // dictionary.  Returns the backing after conversion.
Strange removal of this comment, but no big deal.

http://codereview.chromium.org/9190001/diff/9001/src/objects.h
File src/objects.h (right):

http://codereview.chromium.org/9190001/diff/9001/src/objects.h#newcode2537
src/objects.h:2537: // I'm using map()->heap() to skip is_safe_to_read_maps
assertion.
This comment and the associated change should not be there.

Powered by Google App Engine
This is Rietveld 408576698