|
Refactored treatment of closure variables in dart2js CPS.
Closure variables are now represented by a ClosureVariable object.
Previously they were identified by a LocalElement.
Parameters to a FunctionDefinition are now a mix of Parameter and
ClosureVariable. FunctionDefinitions also have a list of all the closure
variables they declare.
This change is a step toward supporting field initializers that modify or
capture function parameters.
BUG=
R=johnniwinther@google.com, sigurdm@google.com
Committed: https://code.google.com/p/dart/source/detail?r=42164
Total comments: 8
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+275 lines, -117 lines) |
Patch |
 |
M |
pkg/analyzer2dart/lib/src/cps_generator.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
pkg/analyzer2dart/test/sexpr_data.dart
|
View
|
|
2 chunks |
+29 lines, -1 line |
0 comments
|
Download
|
 |
M |
pkg/analyzer2dart/test/sexpr_test.dart
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
pkg/compiler/lib/src/cps_ir/constant_propagation.dart
|
View
|
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
pkg/compiler/lib/src/cps_ir/cps_ir_builder.dart
|
View
|
1
|
14 chunks |
+76 lines, -28 lines |
0 comments
|
Download
|
 |
M |
pkg/compiler/lib/src/cps_ir/cps_ir_builder_visitor.dart
|
View
|
|
2 chunks |
+31 lines, -21 lines |
0 comments
|
Download
|
 |
M |
pkg/compiler/lib/src/cps_ir/cps_ir_nodes.dart
|
View
|
|
10 chunks |
+47 lines, -22 lines |
0 comments
|
Download
|
 |
M |
pkg/compiler/lib/src/cps_ir/cps_ir_nodes_sexpr.dart
|
View
|
|
5 chunks |
+19 lines, -6 lines |
0 comments
|
Download
|
 |
M |
pkg/compiler/lib/src/cps_ir/cps_ir_tracer.dart
|
View
|
|
5 chunks |
+10 lines, -4 lines |
0 comments
|
Download
|
 |
M |
pkg/compiler/lib/src/cps_ir/shrinking_reductions.dart
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
pkg/compiler/lib/src/tree_ir/tree_ir_builder.dart
|
View
|
1
|
5 chunks |
+23 lines, -22 lines |
0 comments
|
Download
|
 |
M |
pkg/compiler/lib/src/tree_ir/tree_ir_tracer.dart
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
tests/compiler/dart2js/backend_dart/sexpr_unstringifier.dart
|
View
|
|
6 chunks |
+30 lines, -9 lines |
0 comments
|
Download
|
Total messages: 6 (1 generated)
|