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

Issue 2272923002: Fold HTypeInfoReadVariable of instance creation. (Closed)

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

Description

Fold HTypeInfoReadVariable of instance creation. This often replaces an expensive substitution read with a re-use of an indexed read, e.g.: t1 = H.setRuntimeTypeInfo( new H.WhereIterable( t1, new Q.CompositeView_removeChild_closure(view)), [H.getTypeArgumentByIndex(t1, 0)]); this.childViews = P.List_List$from( t1, true, H.getRuntimeTypeArgument(t1, "Iterable", 0)); ----> t2 = H.getTypeArgumentByIndex(t1, 0); this.childViews = P.List_List$from( H.setRuntimeTypeInfo( new H.WhereIterable( t1, new Q.CompositeView_removeChild_closure(view)), [t2]), true, t2); R=sigmund@google.com Committed: https://github.com/dart-lang/sdk/commit/b43ac927708a65fe7b7e8ae7c7fc8233c5b40d84 Reverted: https://github.com/dart-lang/sdk/commit/c3c5ee8c0a99fe55a773ad8abc7c839bd1fb0fa3 Committed: https://github.com/dart-lang/sdk/commit/5b2e0a19fced7b7ccdbf41b88dc2b9e12d6de295 Reverted: https://github.com/dart-lang/sdk/commit/ba11ae416f37d321a4d23f7856353b30c9eaa77c These test start passing, but only when optimized: language/mixin_regress_13688_test language/regress_18713_test Committed: https://github.com/dart-lang/sdk/commit/0b041d02c67433ea75a8eec683188c3c2585ecff

Patch Set 1 #

Total comments: 2

Patch Set 2 : tidy #

Patch Set 3 : reformat #

Patch Set 4 : Redo baseline #

Patch Set 5 : use finishSubstituted for raw type allocations #

Patch Set 6 : baseline #

Unified diffs Side-by-side diffs Delta from patch set Stats (+68 lines, -11 lines) Patch
M pkg/compiler/lib/src/ssa/optimize.dart View 1 2 3 4 2 chunks +64 lines, -4 lines 0 comments Download
A + tests/compiler/dart2js_extra/27198_test.dart View 1 2 3 4 1 chunk +4 lines, -7 lines 0 comments Download

Messages

Total messages: 17 (11 generated)
sra1
4 years, 3 months ago (2016-08-29 19:38:38 UTC) #7
Siggi Cherem (dart-lang)
lgtm https://codereview.chromium.org/2272923002/diff/40001/pkg/compiler/lib/src/ssa/optimize.dart File pkg/compiler/lib/src/ssa/optimize.dart (right): https://codereview.chromium.org/2272923002/diff/40001/pkg/compiler/lib/src/ssa/optimize.dart#newcode1061 pkg/compiler/lib/src/ssa/optimize.dart:1061: ClassElement createdClass, HInstruction select(int index)) { I'm not ...
4 years, 3 months ago (2016-08-29 19:48:57 UTC) #8
sra1
https://codereview.chromium.org/2272923002/diff/40001/pkg/compiler/lib/src/ssa/optimize.dart File pkg/compiler/lib/src/ssa/optimize.dart (right): https://codereview.chromium.org/2272923002/diff/40001/pkg/compiler/lib/src/ssa/optimize.dart#newcode1061 pkg/compiler/lib/src/ssa/optimize.dart:1061: ClassElement createdClass, HInstruction select(int index)) { On 2016/08/29 19:48:57, ...
4 years, 3 months ago (2016-08-29 21:27:41 UTC) #9
sra1
Committed patchset #3 (id:80001) manually as b43ac927708a65fe7b7e8ae7c7fc8233c5b40d84 (presubmit successful).
4 years, 3 months ago (2016-08-29 21:36:21 UTC) #11
sra1
Committed patchset #5 (id:120001) manually as 5b2e0a19fced7b7ccdbf41b88dc2b9e12d6de295 (presubmit successful).
4 years, 3 months ago (2016-08-30 23:11:01 UTC) #14
sra1
4 years, 3 months ago (2016-09-02 02:31:25 UTC) #17
Message was sent while issue was closed.
Committed patchset #6 (id:140001) manually as
0b041d02c67433ea75a8eec683188c3c2585ecff (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698