Chromium Code Reviews
Descriptiondart2js cps: Track existence of try statements in resolution instead of traversing AST/IR nodes to check for it.
This change removes one traversal in the backend and it is one step in the direction of recording more inforamtion in resolution; the compuation of DartCapturedVariables, for example, could also be done during resolution and stored in the TreeElements.
The disadvantage is that resolution may look at more code than TypePropagation, but in this specific case I do not think that we are realisticly able to eliminate try statements in functions that are small enough to be inlined.
R=kmillikin@google.com
Committed: https://github.com/dart-lang/sdk/commit/4f8047af3bebc156bb1437e110f272d5a37987c0
Patch Set 1 #
Total comments: 2
Messages
Total messages: 3 (0 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||