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

Issue 1776533002: dart2js: Destroy some type inference graph edges after type inference. (Closed)

Created:
4 years, 9 months ago by sra1
Modified:
4 years, 9 months ago
CC:
reviews_dartlang.org, asgerf
Base URL:
https://github.com/dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

dart2js: Destroy some type inference graph edges after type inference. Removing the `_assignments` and `users` collections from TypeInformation nodes causes interior nodes (e.g. Phi, Narrow) to become unreachable and available for GC. This seems to trim 1%-5% off the final heap of an SSA compile. R=sigmund@google.com Committed: https://github.com/dart-lang/sdk/commit/e85ac191344cdbecfdd39d99ff50209bb3dc837f Reverted: https://github.com/dart-lang/sdk/commit/9292d1bc2baa05c4ac97ec12d8d922811a181d02 Committed: https://github.com/dart-lang/sdk/commit/ae13804e0913edc17405383a5c829a3ae61fc83f

Patch Set 1 #

Total comments: 5

Patch Set 2 : Also delete _callers. #

Total comments: 4

Patch Set 3 : #

Patch Set 4 : baseline #

Patch Set 5 : fix failing tests that use initialized MemberTypeInformations #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -7 lines) Patch
M pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart View 1 1 chunk +15 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/inferrer/type_graph_nodes.dart View 1 2 3 4 7 chunks +59 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/ssa/builder.dart View 1 2 3 4 2 chunks +10 lines, -4 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
sra1
4 years, 9 months ago (2016-03-08 02:42:36 UTC) #2
Siggi Cherem (dart-lang)
lgtm https://codereview.chromium.org/1776533002/diff/1/pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart File pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart (right): https://codereview.chromium.org/1776533002/diff/1/pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart#newcode1296 pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart:1296: allocatedCalls.clear(); If we are clearing out these collections, ...
4 years, 9 months ago (2016-03-08 16:55:02 UTC) #3
sra1
PTAL. Final heap size is now ~12% smaller on one large program compiled with SSA. ...
4 years, 9 months ago (2016-03-09 19:27:29 UTC) #4
Siggi Cherem (dart-lang)
lgtm, minor suggestions below https://codereview.chromium.org/1776533002/diff/1/pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart File pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart (right): https://codereview.chromium.org/1776533002/diff/1/pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart#newcode1296 pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart:1296: allocatedCalls.clear(); On 2016/03/09 19:27:29, sra1 ...
4 years, 9 months ago (2016-03-09 20:33:23 UTC) #5
sra1
Committed patchset #3 (id:40001) manually as e85ac191344cdbecfdd39d99ff50209bb3dc837f (presubmit successful).
4 years, 9 months ago (2016-03-09 20:47:22 UTC) #7
sra1
https://codereview.chromium.org/1776533002/diff/20001/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart File pkg/compiler/lib/src/inferrer/type_graph_nodes.dart (right): https://codereview.chromium.org/1776533002/diff/20001/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart#newcode418 pkg/compiler/lib/src/inferrer/type_graph_nodes.dart:418: } On 2016/03/09 20:33:23, Siggi Cherem (dart-lang) wrote: > ...
4 years, 9 months ago (2016-03-09 20:51:09 UTC) #8
sra1
4 years, 9 months ago (2016-03-10 00:45:32 UTC) #11
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
ae13804e0913edc17405383a5c829a3ae61fc83f (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698