-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Add --experimental-wasm-type-reflection and support newer emscripten builds.
#133084
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add --experimental-wasm-type-reflection and support newer emscripten builds.
#133084
Conversation
|
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on Discord!). If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
mdebbar
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
| final String jsFlags = options.enableWasmGC ? <String>[ | ||
| '--experimental-wasm-gc', | ||
| '--experimental-wasm-type-reflection', | ||
| ].join(' ') : ''; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor suggestion: if it were me, I would probably do it this way:
| final String jsFlags = options.enableWasmGC ? <String>[ | |
| '--experimental-wasm-gc', | |
| '--experimental-wasm-type-reflection', | |
| ].join(' ') : ''; | |
| const String kWasmGCFlags = | |
| '--experimental-wasm-gc ' | |
| '--experimental-wasm-type-reflection'; |
Then below:
if (options.enableWasmGC) '--js-flags=$kWasmGCFlags';But this is just my personal preference.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did it this way because I feel like the join call is less error prone than trying to remember to put spaces in the right places in the string yourself. It's the same pattern we use in the compile unit tests step in the engine, which is where I copied it from. When we've had to change which flags are being added, it's a little simpler to just add or remove a flag from this list than to try to reason about how the string is going to be constructed.
…mscripten builds. (flutter/flutter#133084)
…mscripten builds. (flutter/flutter#133084)
flutter/flutter@bd836cc...deeb811 2023-08-24 [email protected] Reverts "Roll Flutter Engine from aa98a9d2e86f to 3b92bb6eda19 (4 revisions) (#133224)" (flutter/flutter#133255) 2023-08-24 [email protected] Roll Flutter Engine from aa98a9d2e86f to 3b92bb6eda19 (4 revisions) (flutter/flutter#133224) 2023-08-24 [email protected] Roll Flutter Engine from 67e8b825cc91 to aa98a9d2e86f (4 revisions) (flutter/flutter#133220) 2023-08-24 [email protected] Roll Flutter Engine from 27d75f6221d2 to 67e8b825cc91 (1 revision) (flutter/flutter#133214) 2023-08-23 [email protected] Remove deprecated PlatformViewsService.synchronizeToNativeViewHierarchy (flutter/flutter#133175) 2023-08-23 [email protected] Roll Flutter Engine from 58dc868c26cb to 27d75f6221d2 (14 revisions) (flutter/flutter#133211) 2023-08-23 [email protected] Remove deprecated MaterialButtonWithIconMixin (flutter/flutter#133173) 2023-08-23 [email protected] Enable ChangeNotifier clients to dispatch event of object creation in constructor. (flutter/flutter#133060) 2023-08-23 [email protected] Enable literal_only_boolean_expressions (flutter/flutter#133186) 2023-08-23 [email protected] Add android analyzer commands for applinks (flutter/flutter#131009) 2023-08-23 [email protected] Bump memory usage in gradle for platform views (flutter/flutter#133155) 2023-08-23 [email protected] [flutter_tools] Fix legacy version file not being ensured (flutter/flutter#133097) 2023-08-23 [email protected] Remove deprecated *TestValues from TestWindow (flutter/flutter#131098) 2023-08-23 [email protected] Roll Flutter Engine from ac352ba95f43 to 58dc868c26cb (2 revisions) (flutter/flutter#133165) 2023-08-23 [email protected] [web] Remove unnecessary lint ignore (flutter/flutter#133164) 2023-08-23 [email protected] Add `--experimental-wasm-type-reflection` and support newer emscripten builds. (flutter/flutter#133084) 2023-08-23 [email protected] Roll Flutter Engine from 72a06427bd37 to ac352ba95f43 (2 revisions) (flutter/flutter#133158) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
…mscripten builds. (flutter/flutter#133084)
This makes two changes to prepare for incoming changes to skwasm in the web engine:
WebAssembly.Functionconstructor inskwasm, which is hidden behind the--experimental-wasm-type-reflectionflag. We need to pass that when running skwasm benchmarks.wasmExportsproperty instead of theasmproperty. Make sure to support either, if passed.