Chromium Code Reviews
Descriptiondart2js cps: Debugging utility and fix idempotency in shrinking reducer.
Shrinking reductions would miss some redexes that were created during
a reduction. It now finds more redexes and has a self-checking mode
that can be enabled when working on the pass.
Also adds some general debugging utility functions to the CPS IR.
The root class Node now has "debugString" and "debugPrint" methods for
conveniently getting its SExpression.
The CpsFunctionCompiler now has a method "debugCpsPass" which runs
a CPS pass while checking that it is idempotent for that input. Most passes
are not yet idempotent, but this utility should help us get there.
BUG=
Committed: https://github.com/dart-lang/sdk/commit/6c9a7ec96717666b50a669c84502f29bb5496896
Patch Set 1 #Patch Set 2 : Compute before string after shrinking reducer #Patch Set 3 : Clean up and minor speed improvements in shrinking reductions #Patch Set 4 : Merge #Patch Set 5 : Do not run the same Pass instance twice #
Messages
Total messages: 7 (4 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||