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

Issue 10086006: External references should not affect dominance relation. (Closed)

Created:
8 years, 8 months ago by alexeif
Modified:
8 years, 8 months ago
CC:
v8-dev
Visibility:
Public.

Description

External references should not affect dominance relation. Separate objects into two groups: reachable from a window (user), and unreachable (system). Then do not take into account links that come from system group to the user group when calculating dominance relation. Committed: https://code.google.com/p/v8/source/detail?r=11335

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressing comments. #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -63 lines) Patch
M src/api.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/profile-generator.h View 1 5 chunks +13 lines, -9 lines 2 comments Download
M src/profile-generator.cc View 1 10 chunks +63 lines, -23 lines 4 comments Download
M src/profile-generator-inl.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M test/cctest/test-heap-profiler.cc View 1 14 chunks +23 lines, -30 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
alexeif
Misha, I have to update the test because it was failing in one of the ...
8 years, 8 months ago (2012-04-13 15:58:01 UTC) #1
mnaganov (inactive)
https://chromiumcodereview.appspot.com/10086006/diff/1/src/profile-generator.cc File src/profile-generator.cc (right): https://chromiumcodereview.appspot.com/10086006/diff/1/src/profile-generator.cc#newcode3303 src/profile-generator.cc:3303: if (children[i].type() == HeapGraphEdge::kShortcut) { For the sake of ...
8 years, 8 months ago (2012-04-16 08:40:25 UTC) #2
alexeif
https://chromiumcodereview.appspot.com/10086006/diff/1/src/profile-generator.cc File src/profile-generator.cc (right): https://chromiumcodereview.appspot.com/10086006/diff/1/src/profile-generator.cc#newcode3303 src/profile-generator.cc:3303: if (children[i].type() == HeapGraphEdge::kShortcut) { On 2012/04/16 08:40:26, Mikhail ...
8 years, 8 months ago (2012-04-16 10:49:11 UTC) #3
mnaganov (inactive)
lgtm
8 years, 8 months ago (2012-04-16 12:16:54 UTC) #4
yurys
https://chromiumcodereview.appspot.com/10086006/diff/6001/src/profile-generator.cc File src/profile-generator.cc (right): https://chromiumcodereview.appspot.com/10086006/diff/6001/src/profile-generator.cc#newcode3339 src/profile-generator.cc:3339: void HeapSnapshotGenerator::FillPostorderIndexes( I think it is still reverse postorder, ...
8 years, 8 months ago (2012-04-16 13:23:37 UTC) #5
alexeif
https://chromiumcodereview.appspot.com/10086006/diff/6001/src/profile-generator.cc File src/profile-generator.cc (right): https://chromiumcodereview.appspot.com/10086006/diff/6001/src/profile-generator.cc#newcode3339 src/profile-generator.cc:3339: void HeapSnapshotGenerator::FillPostorderIndexes( On 2012/04/16 13:23:37, Yury Semikhatsky wrote: > ...
8 years, 8 months ago (2012-04-16 13:37:23 UTC) #6
yurys
https://chromiumcodereview.appspot.com/10086006/diff/6001/src/profile-generator.cc File src/profile-generator.cc (right): https://chromiumcodereview.appspot.com/10086006/diff/6001/src/profile-generator.cc#newcode3339 src/profile-generator.cc:3339: void HeapSnapshotGenerator::FillPostorderIndexes( On 2012/04/16 13:37:23, alexeif wrote: > On ...
8 years, 8 months ago (2012-04-16 13:41:01 UTC) #7
alexeif
8 years, 8 months ago (2012-04-16 13:45:00 UTC) #8
https://chromiumcodereview.appspot.com/10086006/diff/6001/src/profile-generat...
File src/profile-generator.cc (right):

https://chromiumcodereview.appspot.com/10086006/diff/6001/src/profile-generat...
src/profile-generator.cc:3339: void HeapSnapshotGenerator::FillPostorderIndexes(
On 2012/04/16 13:41:01, Yury Semikhatsky wrote:
> On 2012/04/16 13:37:23, alexeif wrote:
> > On 2012/04/16 13:23:37, Yury Semikhatsky wrote:
> > > I think it is still reverse postorder, isn't it?
> > Why reverse? I think it's direct postorder.
> 
> From http://en.wikipedia.org/wiki/Tree_traversal#Postorder_Traversal:
> void postorder(tree t) 
> {
>         if(t == NULL)
>                 return;
>         postorder(t->left);
>         postorder(t->right);
>         printf("%d ", t->val);
> }
> 
> In our case we'd have:
> void reverse_postorder(tree t) 
> {
>         if(t == NULL)
>                 return;
>         postorder(t->right);
>         postorder(t->left);
>         printf("%d ", t->val);
> }
The children is not ordered in our case. So speaking of an order regarding
children is meaningless.

Powered by Google App Engine
This is Rietveld 408576698