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

Issue 7247002: Estimate a (close) upper bound on the size of black-marked objects on each page. (Closed)

Created:
9 years, 6 months ago by Lasse Reichstein
Modified:
9 years, 6 months ago
CC:
v8-dev
Visibility:
Public.

Description

Estimate a (close) upper bound on the size of black-marked objects on each page. Doesn't try to be precise on new-space pages (we do tricky stuff there). Committed: http://code.google.com/p/v8/source/detail?r=8417

Patch Set 1 #

Total comments: 21

Patch Set 2 : Address review comments. Make compile on x64. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+221 lines, -103 lines) Patch
M src/assembler.h View 1 chunk +4 lines, -1 line 0 comments Download
M src/builtins.cc View 1 chunk +5 lines, -2 lines 0 comments Download
M src/heap.cc View 1 chunk +3 lines, -1 line 0 comments Download
M src/ia32/assembler-ia32.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/ia32/assembler-ia32.cc View 1 chunk +7 lines, -0 lines 0 comments Download
M src/ia32/disasm-ia32.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/ia32/macro-assembler-ia32.h View 1 1 chunk +0 lines, -7 lines 0 comments Download
M src/ia32/macro-assembler-ia32.cc View 1 2 chunks +63 lines, -27 lines 0 comments Download
M src/ia32/stub-cache-ia32.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M src/incremental-marking.h View 1 chunk +3 lines, -2 lines 0 comments Download
M src/incremental-marking.cc View 7 chunks +15 lines, -5 lines 0 comments Download
M src/mark-compact.h View 1 2 chunks +15 lines, -4 lines 0 comments Download
M src/mark-compact.cc View 1 7 chunks +24 lines, -18 lines 0 comments Download
M src/mark-compact-inl.h View 2 chunks +3 lines, -0 lines 0 comments Download
M src/objects.h View 2 chunks +2 lines, -2 lines 0 comments Download
M src/objects.cc View 3 chunks +11 lines, -0 lines 0 comments Download
M src/runtime.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M src/spaces.h View 1 5 chunks +26 lines, -25 lines 0 comments Download
M src/spaces.cc View 8 chunks +13 lines, -4 lines 0 comments Download
M src/spaces-inl.h View 3 chunks +17 lines, -5 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Lasse Reichstein
9 years, 6 months ago (2011-06-23 12:19:31 UTC) #1
Erik Corry
lgtm It would be nice at some point to understand why we don't hit the ...
9 years, 6 months ago (2011-06-24 09:46:17 UTC) #2
Lasse Reichstein
9 years, 6 months ago (2011-06-24 11:09:08 UTC) #3
http://codereview.chromium.org/7247002/diff/1/src/assembler.cc
File src/assembler.cc (right):

http://codereview.chromium.org/7247002/diff/1/src/assembler.cc#newcode101
src/assembler.cc:101: 
fixed.

http://codereview.chromium.org/7247002/diff/1/src/ia32/macro-assembler-ia32.cc
File src/ia32/macro-assembler-ia32.cc (right):

http://codereview.chromium.org/7247002/diff/1/src/ia32/macro-assembler-ia32.c...
src/ia32/macro-assembler-ia32.cc:2419: test_b(Operand(instance_type),
kExternalStringTag);
Added assert.
Are we sure it's not more used in the browser?

http://codereview.chromium.org/7247002/diff/1/src/ia32/macro-assembler-ia32.c...
src/ia32/macro-assembler-ia32.cc:2423: bind(&not_external);
added

http://codereview.chromium.org/7247002/diff/1/src/ia32/macro-assembler-ia32.c...
src/ia32/macro-assembler-ia32.cc:2432: ASSERT_EQ(SeqAsciiString::kMaxSize,
SeqAsciiString::kMaxSize);
*Cough*
Fixed.

http://codereview.chromium.org/7247002/diff/1/src/ia32/macro-assembler-ia32.c...
src/ia32/macro-assembler-ia32.cc:2448: add(Operand(bitmap_scratch,
MemoryChunk::kLiveBytesOffset),
Possibly a few cycle slower latency (but we're most likely not going to read it
in the next few cycles anyway), should be outweighed by the smaller code.

http://codereview.chromium.org/7247002/diff/1/src/ia32/macro-assembler-ia32.h
File src/ia32/macro-assembler-ia32.h (right):

http://codereview.chromium.org/7247002/diff/1/src/ia32/macro-assembler-ia32.h...
src/ia32/macro-assembler-ia32.h:799: // unchanged, unless it's also mask_reg.
Ack, forgot to change comment back when I reverted my change to the function.

http://codereview.chromium.org/7247002/diff/1/src/ia32/stub-cache-ia32.cc
File src/ia32/stub-cache-ia32.cc (right):

http://codereview.chromium.org/7247002/diff/1/src/ia32/stub-cache-ia32.cc#new...
src/ia32/stub-cache-ia32.cc:1549: // TODO(gc): This only happen in new-space,
where we don't
Done.

http://codereview.chromium.org/7247002/diff/1/src/mark-compact.cc
File src/mark-compact.cc (right):

http://codereview.chromium.org/7247002/diff/1/src/mark-compact.cc#newcode317
src/mark-compact.cc:317: if (old_start == new_start) return false;
done.

http://codereview.chromium.org/7247002/diff/1/src/mark-compact.h
File src/mark-compact.h (right):

http://codereview.chromium.org/7247002/diff/1/src/mark-compact.h#newcode122
src/mark-compact.h:122: // Returns true if the new_start is marked black.
Done.

http://codereview.chromium.org/7247002/diff/1/src/mark-compact.h#newcode155
src/mark-compact.h:155: 
Fixed.

Powered by Google App Engine
This is Rietveld 408576698