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

Issue 7834018: Support compaction for code space pages. (Closed)

Created:
9 years, 3 months ago by Vyacheslav Egorov (Chromium)
Modified:
9 years, 3 months ago
Reviewers:
Erik Corry
CC:
v8-dev
Visibility:
Public.

Description

Support compaction for code space pages. R=erik.corry@gmail.com BUG=v8:1550 Committed: http://code.google.com/p/v8/source/detail?r=9155

Patch Set 1 #

Patch Set 2 : port changes from ia32 to arm & x64 #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+546 lines, -188 lines) Patch
M src/arm/assembler-arm-inl.h View 1 4 chunks +19 lines, -16 lines 0 comments Download
M src/arm/deoptimizer-arm.cc View 1 2 chunks +10 lines, -0 lines 0 comments Download
M src/assembler.h View 4 chunks +10 lines, -4 lines 2 comments Download
M src/assembler.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/debug.cc View 3 chunks +5 lines, -5 lines 0 comments Download
M src/ia32/assembler-ia32-inl.h View 1 4 chunks +18 lines, -16 lines 0 comments Download
M src/ia32/deoptimizer-ia32.cc View 2 chunks +9 lines, -5 lines 0 comments Download
M src/ic-inl.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/incremental-marking.h View 1 chunk +9 lines, -1 line 0 comments Download
M src/incremental-marking.cc View 2 chunks +77 lines, -19 lines 0 comments Download
M src/incremental-marking-inl.h View 2 chunks +38 lines, -16 lines 0 comments Download
M src/liveedit.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M src/mark-compact.h View 4 chunks +50 lines, -29 lines 0 comments Download
M src/mark-compact.cc View 19 chunks +232 lines, -47 lines 4 comments Download
M src/mark-compact-inl.h View 2 chunks +17 lines, -0 lines 0 comments Download
M src/objects.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M src/objects-debug.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/objects-inl.h View 1 chunk +1 line, -2 lines 0 comments Download
M src/spaces.h View 2 chunks +13 lines, -5 lines 2 comments Download
M src/x64/assembler-x64-inl.h View 1 4 chunks +19 lines, -14 lines 0 comments Download
M src/x64/deoptimizer-x64.cc View 1 2 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Vyacheslav Egorov (Chromium)
9 years, 3 months ago (2011-09-05 09:13:16 UTC) #1
Erik Corry
LGTM You might consider running all the benchmarks with a very small page size to ...
9 years, 3 months ago (2011-09-06 14:10:31 UTC) #2
Vyacheslav Egorov (Chromium)
9 years, 3 months ago (2011-09-06 15:01:41 UTC) #3
thanks. landing!

http://codereview.chromium.org/7834018/diff/2002/src/assembler.h
File src/assembler.h (right):

http://codereview.chromium.org/7834018/diff/2002/src/assembler.h#newcode223
src/assembler.h:223: : pc_(pc), rmode_(rmode), data_(data), host_(NULL) {
On 2011/09/06 14:10:31, Erik Corry wrote:
> If you omit this function the compiler will help you find the places it was
> called so you can verify that it is correct to pass NULL at this point.

Done.

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

http://codereview.chromium.org/7834018/diff/2002/src/mark-compact.cc#newcode577
src/mark-compact.cc:577: Address slot = candidate->address() +
JSFunction::kCodeEntryOffset;
On 2011/09/06 14:10:31, Erik Corry wrote:
> This is kind of subtle.  Comment?

Done.

http://codereview.chromium.org/7834018/diff/2002/src/mark-compact.cc#newcode3480
src/mark-compact.cc:3480: SlotsBuffer::SlotType SlotsBuffer::UpdateSlots(
On 2011/09/06 14:10:31, Erik Corry wrote:
> Somewhere there should be a comment on why this function both takes and
returns
> a SlotType.
> 
> Also perhaps I missed a comment on the way slots and slot types are encoded in
> the buffer.

Done.

http://codereview.chromium.org/7834018/diff/2002/src/spaces.h
File src/spaces.h (right):

http://codereview.chromium.org/7834018/diff/2002/src/spaces.h#newcode1460
src/spaces.h:1460: bool IsFragmented(Page* p) {
On 2011/09/06 14:10:31, Erik Corry wrote:
> Perhaps this should always return true if the --always-compact flag is used.
> Good for testing?

Done.

Powered by Google App Engine
This is Rietveld 408576698