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

Issue 1173563002: dart2js cps: Clean up in type propagation. (Closed)

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

Description

dart2js cps: Clean up in type propagation. Class names are no longer private. optimizers.dart whitelists the class that needs to be exposed, so the privacy makes little difference. Methods on AbstractValue that require access to the type system or other "external thing" have been moved to ConstantPropagationLattice. It should help readability and avoid parameter inflation when more external things are suddenly needed to answer a query. The UnitTypeSystem has been removed and TypeSystem has been merged into TypeMaskSystem. The generic variable T has been removed as well. BUG= R=kmillikin@google.com Committed: https://github.com/dart-lang/sdk/commit/953a6fd75f1e7bda462a4ffde1ffeef6117dc380

Patch Set 1 #

Total comments: 3

Patch Set 2 : Minor fix #

Patch Set 3 : Comments #

Patch Set 4 : Some more fixes #

Patch Set 5 : Accidentally removed a useful comment #

Patch Set 6 : More minor fixes #

Patch Set 7 : IntelliJ's autocompletion seems to make fun of me #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -222 lines) Patch
M pkg/compiler/lib/src/cps_ir/optimizers.dart View 1 chunk +1 line, -2 lines 0 comments Download
M pkg/compiler/lib/src/cps_ir/type_propagation.dart View 1 2 3 4 5 6 36 chunks +131 lines, -209 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/codegen/task.dart View 4 chunks +2 lines, -9 lines 0 comments Download
M tests/compiler/dart2js/analyze_unused_dart2js_test.dart View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
asgerf
https://codereview.chromium.org/1173563002/diff/1/pkg/compiler/lib/src/cps_ir/type_propagation.dart File pkg/compiler/lib/src/cps_ir/type_propagation.dart (right): https://codereview.chromium.org/1173563002/diff/1/pkg/compiler/lib/src/cps_ir/type_propagation.dart#newcode283 pkg/compiler/lib/src/cps_ir/type_propagation.dart:283: TypePropagator(dart2js.Compiler compiler) It's not great to depend on Compiler ...
5 years, 6 months ago (2015-06-09 10:05:39 UTC) #2
Kevin Millikin (Google)
lgtm https://codereview.chromium.org/1173563002/diff/1/pkg/compiler/lib/src/cps_ir/type_propagation.dart File pkg/compiler/lib/src/cps_ir/type_propagation.dart (right): https://codereview.chromium.org/1173563002/diff/1/pkg/compiler/lib/src/cps_ir/type_propagation.dart#newcode168 pkg/compiler/lib/src/cps_ir/type_propagation.dart:168: if (value.isNothing) return true; I think value.isNothing || ...
5 years, 6 months ago (2015-06-09 10:30:53 UTC) #3
asgerf
https://codereview.chromium.org/1173563002/diff/1/pkg/compiler/lib/src/cps_ir/type_propagation.dart File pkg/compiler/lib/src/cps_ir/type_propagation.dart (right): https://codereview.chromium.org/1173563002/diff/1/pkg/compiler/lib/src/cps_ir/type_propagation.dart#newcode168 pkg/compiler/lib/src/cps_ir/type_propagation.dart:168: if (value.isNothing) return true; On 2015/06/09 10:30:53, Kevin Millikin ...
5 years, 6 months ago (2015-06-09 12:18:33 UTC) #4
asgerf
5 years, 6 months ago (2015-06-10 12:04:41 UTC) #5
Message was sent while issue was closed.
Committed patchset #7 (id:120001) manually as
953a6fd75f1e7bda462a4ffde1ffeef6117dc380 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698