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

Issue 10919294: Integrate map marking into static marking visitor. (Closed)

Created:
8 years, 3 months ago by Michael Starzinger
Modified:
8 years, 3 months ago
Reviewers:
Toon Verwaest
CC:
v8-dev
Visibility:
Public.

Description

Integrate map marking into static marking visitor. This refactors the specialized marking of map contents to be done by the static marking visitor shared between full and incremental marking. This also fixes an issue where some maps weren't accounted for in the object stats tracker. But more importantly, it simplifies the code base. R=verwaest@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=12526

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -237 lines) Patch
M src/heap.h View 1 chunk +0 lines, -7 lines 0 comments Download
M src/incremental-marking.h View 2 chunks +0 lines, -11 lines 0 comments Download
M src/incremental-marking.cc View 5 chunks +15 lines, -35 lines 0 comments Download
M src/incremental-marking-inl.h View 1 chunk +0 lines, -21 lines 0 comments Download
M src/mark-compact.h View 4 chunks +0 lines, -42 lines 0 comments Download
M src/mark-compact.cc View 3 chunks +13 lines, -93 lines 2 comments Download
M src/mark-compact-inl.h View 2 chunks +3 lines, -23 lines 0 comments Download
M src/objects-visiting.h View 1 chunk +6 lines, -0 lines 0 comments Download
M src/objects-visiting-inl.h View 3 chunks +82 lines, -5 lines 2 comments Download

Messages

Total messages: 3 (0 generated)
Michael Starzinger
8 years, 3 months ago (2012-09-14 16:06:24 UTC) #1
Toon Verwaest
lgtm with minor comments. https://chromiumcodereview.appspot.com/10919294/diff/1/src/mark-compact.cc File src/mark-compact.cc (right): https://chromiumcodereview.appspot.com/10919294/diff/1/src/mark-compact.cc#newcode1084 src/mark-compact.cc:1084: } This method seems exactly(?) ...
8 years, 3 months ago (2012-09-17 09:06:36 UTC) #2
Michael Starzinger
8 years, 3 months ago (2012-09-17 09:59:36 UTC) #3
Addressed comments. Landing.

https://chromiumcodereview.appspot.com/10919294/diff/1/src/mark-compact.cc
File src/mark-compact.cc (right):

https://chromiumcodereview.appspot.com/10919294/diff/1/src/mark-compact.cc#ne...
src/mark-compact.cc:1084: }
On 2012/09/17 09:06:36, Toon Verwaest wrote:
> This method seems exactly(?) the same as the method on the incremental marker,
> modulo different accessor methods (IsWhite rather than direct Getting of the
> markbit; SetMark vs direct Setting; slightly inconsistent it seems). Can this
be
> merged?

You are right, it does exactly the same. And I agree, there is still potential
for more code to be shared (e.g. VisitPointer[s]). But as discussed offline, we
should do that in another follow-up CL and let this one just be about the map
marking.

https://chromiumcodereview.appspot.com/10919294/diff/1/src/objects-visiting-i...
File src/objects-visiting-inl.h (right):

https://chromiumcodereview.appspot.com/10919294/diff/1/src/objects-visiting-i...
src/objects-visiting-inl.h:330: // is not compacted and descriptors are
reference through a cell.
On 2012/09/17 09:06:36, Toon Verwaest wrote:
> *referenced

Done.

Powered by Google App Engine
This is Rietveld 408576698