mirror of
https://github.com/dart-lang/sdk
synced 2024-10-15 01:09:37 +00:00
1fc755eb54
We already have a shell script that compiles dart code to wasm and optimizes it. I think it's rather confusing to have multiple, they contain somewhat duplicated code as well. We therefore remove `sdk/bin/dart2wasm{,_developer}` (which is not used by any CI but purely for developers) in favor of `pkg/dart2wasm/tool/compile_benchmark`. => It support with/without binaryen => It support measuring size/time/memory of dart2was & binaryen => It supports running compiler with assertions Some flags/vars are not supported anymore: * `DART_VM_OPTIONS`: Has no effect (as there's no need to support this) * `sdk/bin/dart2wasm_developer`: Pass `--compiler-asserts` to `compile_benchmark`. * `-O`: Optimizes now by-default, pass `--no-binaryen` to `compile_benchmark` to disable * `-O`: Doesn't implicitly pass `--inlining-limit=10` Change-Id: Ice656d1bfc216a536522b254e2d52bd4cad73e8e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/347040 Commit-Queue: Martin Kustermann <kustermann@google.com> Reviewed-by: Slava Egorov <vegorov@google.com> |
||
---|---|---|
.. | ||
dart | ||
dart.bat | ||
dart2js | ||
dart2js.bat | ||
dart2js_developer | ||
dart2js_developer.bat |