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

Issue 2497313003: Fix HTypeConversion.checkedInput (Closed)

Created:
4 years, 1 month ago by sra1
Modified:
4 years, 1 month ago
Reviewers:
Emily Fortuna
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fix HTypeConversion.checkedInput For function types, HTypeConversion.checkedInput would return the call to the method on the reified type object. Now the construction of the call is deferred to codegen.dart, so the input is available directly. The optimizer also detects checks (type assertions and 'as' casts) on `null` values and removes the useless test. BUG= R=efortuna@google.com Committed: https://github.com/dart-lang/sdk/commit/4bd5671a31fa4a3d70716ff137092b46b4a59e22

Patch Set 1 #

Patch Set 2 : fmt #

Total comments: 2

Patch Set 3 : Add some comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -63 lines) Patch
M pkg/compiler/lib/src/ssa/builder.dart View 1 2 2 chunks +5 lines, -21 lines 0 comments Download
M pkg/compiler/lib/src/ssa/builder_kernel.dart View 1 2 1 chunk +3 lines, -12 lines 0 comments Download
M pkg/compiler/lib/src/ssa/codegen.dart View 1 1 chunk +15 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/ssa/nodes.dart View 1 3 chunks +27 lines, -21 lines 0 comments Download
M pkg/compiler/lib/src/ssa/optimize.dart View 1 2 2 chunks +22 lines, -5 lines 0 comments Download
M pkg/compiler/lib/src/ssa/types_propagation.dart View 1 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
sra1
4 years, 1 month ago (2016-11-15 01:55:56 UTC) #2
Emily Fortuna
lgtm https://codereview.chromium.org/2497313003/diff/20001/pkg/compiler/lib/src/ssa/optimize.dart File pkg/compiler/lib/src/ssa/optimize.dart (right): https://codereview.chromium.org/2497313003/diff/20001/pkg/compiler/lib/src/ssa/optimize.dart#newcode808 pkg/compiler/lib/src/ssa/optimize.dart:808: if (input.isNull()) return input; Might add a little ...
4 years, 1 month ago (2016-11-15 17:52:39 UTC) #3
sra1
https://codereview.chromium.org/2497313003/diff/20001/pkg/compiler/lib/src/ssa/optimize.dart File pkg/compiler/lib/src/ssa/optimize.dart (right): https://codereview.chromium.org/2497313003/diff/20001/pkg/compiler/lib/src/ssa/optimize.dart#newcode808 pkg/compiler/lib/src/ssa/optimize.dart:808: if (input.isNull()) return input; On 2016/11/15 17:52:39, Emily Fortuna ...
4 years, 1 month ago (2016-11-15 18:25:58 UTC) #4
sra1
4 years, 1 month ago (2016-11-15 23:52:11 UTC) #6
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
4bd5671a31fa4a3d70716ff137092b46b4a59e22 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698