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

Issue 1220193003: dart2js cps: Fuse tear-off and call invocation. (Closed)

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

Description

dart2js cps: Fuse tear-off and call invocation. For example: new Foo().bar.call(123) ==> new Foo().bar(123) This does not trigger much right now, but it will matter when forEach is rewritten to a loop in a later CL. BUG= R=floitsch@google.com Committed: https://github.com/dart-lang/sdk/commit/dbd197acdd9d3a394f5f3ac693b96ca14a653d07

Patch Set 1 #

Total comments: 11

Patch Set 2 : Address comments #

Patch Set 3 : Improve side effects analysis #

Total comments: 4

Patch Set 4 : Address comments #

Patch Set 5 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+317 lines, -12 lines) Patch
M pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart View 1 2 3 21 chunks +76 lines, -2 lines 0 comments Download
M pkg/compiler/lib/src/cps_ir/type_propagation.dart View 1 2 3 5 chunks +161 lines, -10 lines 0 comments Download
M tests/compiler/dart2js/js_backend_cps_ir_closures_test.dart View 1 2 1 chunk +80 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (1 generated)
asgerf
https://codereview.chromium.org/1220193003/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/1220193003/diff/1/pkg/compiler/lib/src/cps_ir/type_propagation.dart#newcode957 pkg/compiler/lib/src/cps_ir/type_propagation.dart:957: node.arguments[startOfSequence].parent = node; Drive-by fix, not really related.
5 years, 5 months ago (2015-07-02 16:50:36 UTC) #2
floitsch
LGTM. https://codereview.chromium.org/1220193003/diff/1/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart File pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart (right): https://codereview.chromium.org/1220193003/diff/1/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart#newcode128 pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart:128: void changeTo(Definition<T> newDefinition) { Add a comment. is ...
5 years, 5 months ago (2015-07-02 18:02:41 UTC) #3
asgerf
https://codereview.chromium.org/1220193003/diff/1/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart File pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart (right): https://codereview.chromium.org/1220193003/diff/1/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart#newcode128 pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart:128: void changeTo(Definition<T> newDefinition) { On 2015/07/02 18:02:40, floitsch wrote: ...
5 years, 5 months ago (2015-07-03 08:44:47 UTC) #4
asgerf
PTAL. It turns out the very simple side-effect analysis never click because there would always ...
5 years, 5 months ago (2015-07-03 10:42:19 UTC) #5
floitsch
Still LGTM. https://codereview.chromium.org/1220193003/diff/40001/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart File pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart (right): https://codereview.chromium.org/1220193003/diff/40001/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart#newcode102 pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart:102: bool get isSafeForReordering => true; I would ...
5 years, 5 months ago (2015-07-03 11:56:59 UTC) #6
asgerf
https://codereview.chromium.org/1220193003/diff/40001/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart File pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart (right): https://codereview.chromium.org/1220193003/diff/40001/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart#newcode102 pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart:102: bool get isSafeForReordering => true; On 2015/07/03 11:56:58, floitsch ...
5 years, 5 months ago (2015-07-03 12:27:53 UTC) #7
asgerf
5 years, 5 months ago (2015-07-03 12:44:52 UTC) #8
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
dbd197acdd9d3a394f5f3ac693b96ca14a653d07 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698