DescriptionBuild sdk.json without source-mirrors.
This basically removes the dependency on source-mirrors from the try site and will let us delete source-mirrors from the compiler.
I was a torn for a bit about how to replace the logic here. I considered these 4
options:
(a) directly use the compiler internal APIs to crawl for reachable libraries.
(b) use `analyze-all`, then iterate over the resolved libraries.
(c) avoid parsing altogether, just enumerate recursively all files under
sdk/lib/ and create the json file that way.
(d) submit a fixed version of the sdk, since we unlikely need it up-to-date
for the site/try tests
I decided decided to go with (c) in this CL. It's simple and, given that the
only purpose is to preserve the site/try tests until we replace them, it seems
like the option that will slow us down the least (it makes the .json file
bigger, but that's OK now that this is not a service in use). It seemed
unnecessary to do full resolution, so I wasn't convinced of doing (b), but I did experiment with (a) now that we are
making the frontend libraries easier to use on their own. The result was OK (see
https://codereview.chromium.org/2003233002/), but probably not worth submitting
because we'd have to remember to update the code every time we modify the
internal dart2js APIs. I rather have the code in that CL be a test instead.
R=het@google.com
Committed: https://github.com/dart-lang/sdk/commit/0b299706051f844bb3b36bb0f0d6a4ad777cea9e
Patch Set 1 #
Total comments: 6
Messages
Total messages: 8 (4 generated)
|