Contact emailsma...@chromium.org, les...@chromium.org
ExplainerNone
SpecificationNone
Summary
Allow attaching information about which functions should be eager parsed & compiled in JavaScript files. The information will be encoded as magic comments.
We'll be experimenting with different magic comment formats, e.g., marking all functions in a file for eager compilation, or marking only a subset of functions.
For more information, see this doc.
Blink componentBlink>JavaScript
TAG reviewNone
TAG review statusPending
Risks
Interoperability and CompatibilityNo interoperability / compatibility risks. Other browsers are likely to ignore the hints if they perceive they cannot benefit from them. Ignoring the hint is allowed behavior. We plan to make the hints generic though, so that other browsers can later start to support them too.
Gecko: N/A; we've requested the position at https://github.com/mozilla/standards-positions/issues/780 . Note that there's no interop risk.
WebKit: N/A; we've requested the position at https://github.com/WebKit/standards-positions/issues/172 . Note that there's no interop risk.
Web developers: Positive signals from partners who want to use compile hints to eager-compile core JS files
Other signals:
WebView application risksDoes this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications? None
Goals for experimentationWe’re aiming to OT those hints to get a better understanding about The overall performance wins possible DevX and tool support needed to support adding compile hints magic
Ongoing technical constraintsNone
DebuggabilityNone
Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?Yes
No
The feature doesn't trigger any functional changes and cannot be tested by WPT.
Flag name--js-flags=--compile-hints-magic or --enable-features=CompileHintsMagic
Requires code in //chrome?False
Estimated milestonesOriginTrial desktop last | 117 | OriginTrial desktop first | 114 |
Link to entry on the Chrome Platform Statushttps://chromestatus.com/feature/5100466238652416
This intent message was generated by Chrome Platform Status.
|