mirror of
https://github.com/dart-lang/sdk
synced 2024-10-07 18:18:52 +00:00
7fd4f25b62
At the end of codegen, 'trace' the generated JavaScript to the `.cfg` file, and 'trace' the JavaScript after the generator rewrite when this happens. This gives an easy way to see the non-final JavaScript from before the transform. The 'trace' of the JavaScript is a little bit of an abuse of the `.cfg` file format, but it is convenient to see the SSA CFG and JavaScript with the same tool. For this to work, js_ast printing needs to work for pre-finalized ASTs. Most of this change is implementing `isFinalized` for every AST node, and printing something indicative of the non-finalized nodes. For example, unfinalized holders are printed as `Holder"<something>"`. Change-Id: I30b3f141a876f1dc3539132d65f3aafc722589e5 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/218883 Commit-Queue: Stephen Adams <sra@google.com> Reviewed-by: Joshua Litt <joshualitt@google.com> |
||
---|---|---|
.. | ||
lib | ||
test | ||
LICENSE | ||
pubspec.yaml | ||
README.md |
js_ast
A library for creating JavaScript ASTs from templates.