Chromium Code Reviews
DescriptionSupport assignment to parameters in the dart2dart backend.
Assignments to parameters update the assigned variables during CPS
construction. This has the effect of propagating the assigned value
to its uses and the original assignment cannot necessarily be
recovered in the backend.
This enables multiple uses of the same let-bound primitive in the CPS
IR, which requires handling by introducing an assignment in the Dart
output. The final code is not yet as compact as it could be. For
instance:
hest(x, y) {
x = fisk(x);
hest(x, x);
}
is translated to:
hest(x,y){var v0;v0=fisk(x);hest(v0,v0);}
R=floitsch@google.com, karlklose@google.com
BUG=
Committed: https://code.google.com/p/dart/source/detail?r=34964
Patch Set 1 #
Total comments: 2
Patch Set 2 : Addressed review comments #Patch Set 3 : Fixed argument order. Oops. #
Messages
Total messages: 5 (0 generated)
|
|||||||||||||||||||||||||||||||||||||