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

Issue 898463002: Rename ClosureVariable, use separate IR forms for declaration and assignment. (Closed)

Created:
5 years, 10 months ago by Kevin Millikin (Google)
Modified:
5 years, 10 months ago
Reviewers:
asgerf, karlklose
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Rename ClosureVariable, use separate IR forms for declaration and assignment. I plan to use ClosureVariable for the variables assigned in try, so the name will become incorrect. They are renamed to MutableVariable. Use separate IR forms for declaration of MutableVariable (LetMutable) and for assignment to mutable variables (SetMutableVariable). This distinction doesn't do much in this change other than make the tree a bit more well-formed, but I plan to make LetMutable take a list of variables and values (e.g. all the variables mutated in a try). R=asgerf@google.com, karlklose@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=43396

Patch Set 1 #

Total comments: 23

Patch Set 2 : Incorporated review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+287 lines, -211 lines) Patch
M pkg/analyzer2dart/test/sexpr_data.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart View 1 11 chunks +46 lines, -58 lines 0 comments Download
M pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart View 1 16 chunks +85 lines, -62 lines 0 comments Download
M pkg/compiler/lib/src/cps_ir/cps_ir_nodes_sexpr.dart View 1 5 chunks +15 lines, -16 lines 0 comments Download
M pkg/compiler/lib/src/cps_ir/cps_ir_tracer.dart View 6 chunks +15 lines, -9 lines 0 comments Download
M pkg/compiler/lib/src/cps_ir/shrinking_reductions.dart View 1 3 chunks +13 lines, -1 line 0 comments Download
M pkg/compiler/lib/src/cps_ir/type_propagation.dart View 1 5 chunks +33 lines, -15 lines 0 comments Download
M pkg/compiler/lib/src/tree_ir/tree_ir_builder.dart View 6 chunks +33 lines, -18 lines 0 comments Download
M pkg/compiler/lib/src/tree_ir/tree_ir_nodes.dart View 1 1 chunk +4 lines, -3 lines 0 comments Download
M tests/compiler/dart2js/backend_dart/sexpr_test.dart View 1 chunk +2 lines, -2 lines 0 comments Download
M tests/compiler/dart2js/backend_dart/sexpr_unstringifier.dart View 6 chunks +40 lines, -26 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Kevin Millikin (Google)
5 years, 10 months ago (2015-02-02 15:51:12 UTC) #1
karlklose
LGTM with comments. https://codereview.chromium.org/898463002/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/898463002/diff/1/pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart#newcode163 pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart:163: /// to prevent unrestricted use of ...
5 years, 10 months ago (2015-02-03 09:56:16 UTC) #2
asgerf
LGTM with comments https://codereview.chromium.org/898463002/diff/1/pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart File pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart (right): https://codereview.chromium.org/898463002/diff/1/pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart#newcode1533 pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart:1533: <ExecutableElement, List<ir.MutableVariable>>{}; I think this can ...
5 years, 10 months ago (2015-02-03 10:27:31 UTC) #3
asgerf
https://codereview.chromium.org/898463002/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/898463002/diff/1/pkg/compiler/lib/src/cps_ir/type_propagation.dart#newcode721 pkg/compiler/lib/src/cps_ir/type_propagation.dart:721: setValue(node, getValue(node.variable.definition)); On 2015/02/03 10:27:31, asgerf wrote: > When ...
5 years, 10 months ago (2015-02-03 10:30:26 UTC) #4
Kevin Millikin (Google)
https://codereview.chromium.org/898463002/diff/1/pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart File pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart (right): https://codereview.chromium.org/898463002/diff/1/pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart#newcode1533 pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart:1533: <ExecutableElement, List<ir.MutableVariable>>{}; On 2015/02/03 10:27:31, asgerf wrote: > I ...
5 years, 10 months ago (2015-02-03 14:11:49 UTC) #5
Kevin Millikin (Google)
5 years, 10 months ago (2015-02-03 14:18:32 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as 43396 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698