Fix HeapSnapshotsDiff test, diff implementation, and a bug introduced
authormikhail.naganov@gmail.com <mikhail.naganov@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 1 Oct 2010 07:19:23 +0000 (07:19 +0000)
committermikhail.naganov@gmail.com <mikhail.naganov@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 1 Oct 2010 07:19:23 +0000 (07:19 +0000)
commit5a30072502d8a1d7a44d8d8c7e8d2bfdf5e986c1
tree52a81d714f8a0622b8dabde11ed855db11d7bd01
parent7228d867cb7af82d2467075388ab4bcb435618bb
Fix HeapSnapshotsDiff test, diff implementation, and a bug introduced
during snapshot size optimization.

Sorry, now I figured out that the diff implementation itself was also
incorrect.  Reachable nodes must be filtered from the beginning,
otherwise, an object that is already disconnected, but not discarded
yet, will not appear as a deleted (thankfully, this bug for some
reason had appeared on the x64 port.)

BUG=868
TEST=HeapSnapshotRootPreservedAfterSorting

Review URL: http://codereview.chromium.org/3531005

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5570 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/profile-generator.cc
src/profile-generator.h
test/cctest/cctest.status
test/cctest/test-heap-profiler.cc