Chromium Code Reviews
DescriptionFix scope/context behavior in await transformer.
We are not allowed to reuse LocalScope in different SequenceNode_s. The problem is that if a context needs to be created for that scope the FlowGraphbuilder will insert context creation code at all SequenNoce_s that use this scope. This results in scopes and contexts being out of sync and writing garbage. The fix is to just chain a new scope that is on the same function- and loop-level.
Also fix recognizing of "await" in async functions. A follow up CL will enable await in loops, if, return, ...
BUG=
R=hausner@google.com
Committed: https://code.google.com/p/dart/source/detail?r=39571
Patch Set 1 #
Total comments: 2
Patch Set 2 : add await_is_keyword_ indicator to parser #
Total comments: 4
Patch Set 3 : addressed comments #
Messages
Total messages: 13 (0 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||