Chromium Code Reviews
Descriptiondart2dart: Bugfix in copy propagator and rename Assign.definition->value.
Do not copy propagate variable if:
- The variable is accessed from an inner function.
- We are inside a try block.
- The moving assignment is a declaration.
The last point could be fixed by making the new assignment a declaration
as well, but for now I focused on fixing bugs and not making improvements.
I suspect the copy propagator will disappear entirely after the new
register allocator lands, but these bugs are currently blocking the
integrity checker from landing, and I want to land that first.
BUG=
R=kmillikin@google.com
Committed: https://code.google.com/p/dart/source/detail?r=44284
Patch Set 1 #
Total comments: 2
Patch Set 2 : Only force declaration of variables that are captured #Patch Set 3 : Renamed Assign.definition -> value and break up long condition #
Total comments: 2
Patch Set 4 : Updated comment #Patch Set 5 : Rebase #Messages
Total messages: 7 (1 generated)
|