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

Issue 771613002: Improve receiver narrowing in type propagation. (Closed)

Created:
6 years ago by herhut
Modified:
6 years ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Improve receiver narrowing in type propagation. BUG= R=johnniwinther@google.com Committed: https://code.google.com/p/dart/source/detail?r=42162

Patch Set 1 : #

Total comments: 8

Patch Set 2 : Comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -2 lines) Patch
M pkg/compiler/lib/src/ssa/types_propagation.dart View 1 5 chunks +94 lines, -2 lines 2 comments Download

Messages

Total messages: 8 (3 generated)
herhut
6 years ago (2014-12-01 13:44:22 UTC) #3
Johnni Winther
lgtm https://codereview.chromium.org/771613002/diff/20001/pkg/compiler/lib/src/ssa/types_propagation.dart File pkg/compiler/lib/src/ssa/types_propagation.dart (right): https://codereview.chromium.org/771613002/diff/20001/pkg/compiler/lib/src/ssa/types_propagation.dart#newcode323 pkg/compiler/lib/src/ssa/types_propagation.dart:323: bool _excludeNsm(Element element) { _excludeNsm -> _excludeNoSuchMethod https://codereview.chromium.org/771613002/diff/20001/pkg/compiler/lib/src/ssa/types_propagation.dart#newcode399 ...
6 years ago (2014-12-08 11:43:18 UTC) #4
herhut
https://codereview.chromium.org/771613002/diff/20001/pkg/compiler/lib/src/ssa/types_propagation.dart File pkg/compiler/lib/src/ssa/types_propagation.dart (right): https://codereview.chromium.org/771613002/diff/20001/pkg/compiler/lib/src/ssa/types_propagation.dart#newcode323 pkg/compiler/lib/src/ssa/types_propagation.dart:323: bool _excludeNsm(Element element) { On 2014/12/08 11:43:18, Johnni Winther ...
6 years ago (2014-12-08 13:40:17 UTC) #5
herhut
Committed patchset #2 (id:40001) manually as 42162 (presubmit successful).
6 years ago (2014-12-08 13:41:14 UTC) #6
sra1
6 years ago (2014-12-09 04:08:18 UTC) #8
Message was sent while issue was closed.
TDC

https://codereview.chromium.org/771613002/diff/40001/pkg/compiler/lib/src/ssa...
File pkg/compiler/lib/src/ssa/types_propagation.dart (right):

https://codereview.chromium.org/771613002/diff/40001/pkg/compiler/lib/src/ssa...
pkg/compiler/lib/src/ssa/types_propagation.dart:442: return new
_ClassSet._internal(intersected, world);
Can we easily tell when to return 'this'?
It should happen often - i.e. when hitting the fixpoint.

https://codereview.chromium.org/771613002/diff/40001/pkg/compiler/lib/src/ssa...
pkg/compiler/lib/src/ssa/types_propagation.dart:451: return new
TypeMask.unionOf(classes.map(_toMask), world);
It would be useful, if 'this' is returned from 'intersect', to also cache the
mask on 'this'.

Does TypeMask.unionOf return the same representation regardless of the iteration
order of the Set classes?

Powered by Google App Engine
This is Rietveld 408576698