DescriptionMake cells pointing to JSObjects weak in optimized code.
This is done similar to weak embedded objects in optimized code (r17102). The
reference from optimized code to a cell is treated weakly in marking visitors
if the cell points to a JSObject. After marking we iterate over all cells
embedded in optimized code. If a cell is not marked but its value is marked,
then we revive the cell by marking it. Otherwise, the cell value is dead, so
we mark the code for deoptimization.
BUG=v8:2073
TEST=cctest/test-heap/CellsInOptimizedCodeAreWeak
LOG=Y
R=hpayer@chromium.org, mstarzinger@chromium.org
Committed: https://code.google.com/p/v8/source/detail?r=18616
Patch Set 1 : #
Total comments: 6
Patch Set 2 : Rebase #Patch Set 3 : Handle cells that are saved as embedded objects in reloc info. #
Total comments: 3
Patch Set 4 : Address comments #Patch Set 5 : Set number of gcs to 4 #
Messages
Total messages: 7 (0 generated)
|