Skip to content

🏗🚮 Enable property inlining#24053

Merged
jridgewell merged 2 commits intoampproject:masterfrom
jridgewell:inline-props
Aug 20, 2019
Merged

🏗🚮 Enable property inlining#24053
jridgewell merged 2 commits intoampproject:masterfrom
jridgewell:inline-props

Conversation

@jridgewell
Copy link
Copy Markdown
Contributor

Supersedes #24027.

This allows Closure to inline known-constant properties into any accesses, which allows it to DCE if-statement branches that are known to never run.

Supersedes ampproject#24027.

This allows Closure to inline known-constant properties into any accesses, which allows it to DCE if-statement branches that are known to never run.
Copy link
Copy Markdown
Member

@cramforce cramforce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Somewhat worried this was turned off for a reason :)

@jridgewell
Copy link
Copy Markdown
Contributor Author

I tried doing a diff to see what would change. In multi-pass, it's identical. In single-pass, we get a lot of variable renames and ordering of helper functions is completely changed, which makes it really hard to determine.

@cramforce
Copy link
Copy Markdown
Member

@jridgewell It should definitely be save in single-pass! There are probably more flags that we can safely turn on in single-pass if we don't yet.

@jridgewell jridgewell merged commit 36a6afe into ampproject:master Aug 20, 2019
@jridgewell jridgewell deleted the inline-props branch August 20, 2019 02:31
westonruter added a commit to westonruter/amphtml that referenced this pull request Aug 20, 2019
* 'master' of github.com:ampproject/amphtml: (32 commits)
  ✨ Make tweet id a bindable attribute (ampproject#23953)
  🏗 Update Local AMP extension to allow custom base URLs (ampproject#24029)
  🏗 Improve serving from non-localhost host (ampproject#24066)
  Preventing half pixels. (ampproject#24050)
  Update callout-vendors.js (ampproject#23218)
  🏗 Fixes to `check-package-manager.js` (ampproject#24060)
  Rename AMP_MODE to __AMP_MODE. (ampproject#24052)
  Story media performance metrics. (ampproject#23962)
  Updating Story amp-sidebar width documentation. (ampproject#23894)
  Fixes race condition in amp-video-iframe (ampproject#24033)
  Rename ampExtendedElements to __AMP_EXTENDED_ELEMENTS (ampproject#24056)
  🏗🚮 Enable property inlining (ampproject#24053)
  ✨amp-ads: Added optional params for Directadvert network (ampproject#23724)
  <amp-experiment> style mutation fix and improvment (ampproject#23669)
  🐛 Allow http protocol for noscript > img fallbacks for parity with amp-img (ampproject#21686)
  🏗 Refactor transform-log-asserts (ampproject#24028)
  Automatically preconnect to source origins on page loads. (ampproject#24045)
  Support visibility API in the ampdoc (ampproject#23799)
  Amphtml visual tests should use relative path against root (ampproject#24042)
  FIX: check all fields' dirtiness on AMP form init (ampproject#23978)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants