https://chromiumcodereview.appspot.com/10037004/diff/9001/test/cctest/test-heap-profiler.cc File test/cctest/test-heap-profiler.cc (right):
https://chromiumcodereview.appspot.com/10037004/diff/9001/test/cctest/test-heap-profiler.cc#newcode632 test/cctest/test-heap-profiler.cc:632: "parsed.nodes.concat(0, 0, 0, 0, 0, 0, parsed.edges.length);"); On 2012/04/11 14:50:51, Mikhail Naganov (Chromium) wrote:
And why do we need this line?
We use it to iterate over edges. look at the line 642. we take edges_index for the node and for its immediate successor to get the edges interval. So we need one extra node that points to the end of array, so we can process edges for the very last node correctly. I believe you used this technique in dominators/retainers building in FE. https://chromiumcodereview.appspot.com/10037004/ -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
