AdjustLiveBytes and friends takes a heap object pointer instead of an address.
authorhpayer <hpayer@chromium.org>
Tue, 4 Aug 2015 07:02:42 +0000 (00:02 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 4 Aug 2015 07:02:57 +0000 (07:02 +0000)
commit8548ea5d1a38412531a71c5a647baf8c1c8b1ea0
tree9ae9dfca7b0a12df27129ba0461360a99edc7e06
parent5ee3176909e46d15bf41b409c20b971390b41c18
AdjustLiveBytes and friends takes a heap object pointer instead of an address.

That makes going to the page safe. Addresses can be in arbitrary locations of an object, e.g. in a large object but not on the first 1M page.
BUG=

Review URL: https://codereview.chromium.org/1256203004

Cr-Commit-Position: refs/heads/master@{#29991}
12 files changed:
src/factory.cc
src/heap/heap.cc
src/heap/heap.h
src/heap/incremental-marking-inl.h
src/heap/incremental-marking.cc
src/heap/mark-compact-inl.h
src/heap/mark-compact.cc
src/heap/mark-compact.h
src/heap/spaces.cc
src/heap/spaces.h
src/objects.cc
src/runtime/runtime-regexp.cc