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

Issue 1319303002: dart2js cps: Scalar replacement of aggregates (Closed)

Created:
5 years, 3 months ago by sra1
Modified:
5 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

dart2js cps: Scalar replacement of aggregates Aggregates which do not escape can be replaced with local variables. This applies to regular objects, closures and boxes. Closures need their body inlined first. Fields that are written are replaced with a MutableVariable. Fields that are only initialized have the reads replaced with references to the initial value. R=asgerf@google.com Committed: https://github.com/dart-lang/sdk/commit/383f8090308abe1f538d0d50dcb7d3de2447dfcb

Patch Set 1 #

Total comments: 10

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+260 lines, -66 lines) Patch
A + LICENCE View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
D LICENSE View 1 2 1 chunk +0 lines, -54 lines 0 comments Download
M pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart View 1 2 chunks +4 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/cps_ir/optimizers.dart View 1 chunk +1 line, -0 lines 0 comments Download
A pkg/compiler/lib/src/cps_ir/scalar_replacement.dart View 1 2 1 chunk +251 lines, -0 lines 0 comments Download
M pkg/compiler/lib/src/js_backend/codegen/task.dart View 1 chunk +1 line, -0 lines 0 comments Download
M tests/compiler/dart2js/js_backend_cps_ir_closures_test.dart View 1 2 4 chunks +4 lines, -13 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
sra1
Please take an initial look to say if you think this is the right direction. ...
5 years, 3 months ago (2015-08-29 03:06:54 UTC) #3
asgerf
LGTM, I only have some superficial remarks. The CL description has an incomplete statement ("replaced ...
5 years, 3 months ago (2015-08-31 09:57:30 UTC) #4
sra1
https://chromiumcodereview.appspot.com/1319303002/diff/1/pkg/compiler/lib/src/cps_ir/scalar_replacement.dart File pkg/compiler/lib/src/cps_ir/scalar_replacement.dart (right): https://chromiumcodereview.appspot.com/1319303002/diff/1/pkg/compiler/lib/src/cps_ir/scalar_replacement.dart#newcode125 pkg/compiler/lib/src/cps_ir/scalar_replacement.dart:125: Map<FieldElement, MutableVariable> cells = <FieldElement, MutableVariable>{}; On 2015/08/31 09:57:30, ...
5 years, 3 months ago (2015-09-02 01:12:57 UTC) #5
sra1
5 years, 3 months ago (2015-09-02 05:25:17 UTC) #6
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
383f8090308abe1f538d0d50dcb7d3de2447dfcb (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698