prepack/test
Nikolai Tillmann eeb081a545 Don't emit modified bindings unless they are alive (#2287)
Summary:
Release notes: Enhanced dead code elimination for optimized functions

This resolves #2276: Visiting+emitting modified bindings now participates
in the fixed point computation, checking for whether the modified binding
is actually getting visited for other reasons.

The previously existing code that did CSE by mutating the generator entry
got removed, as it wouldn't work exactly like that anymore (can't return value
because actual analysis gets postponed for fixed point computation). Filed #2286
to keep track of that and more needed changes around CSE for values stored in locations
participating in effects tracking. --- Turns out that we didn't have a test anyway
that would detect whether binding CSE happens or not.

Added regression test.
Pull Request resolved: https://github.com/facebook/prepack/pull/2287

Differential Revision: D8902345

Pulled By: NTillmann

fbshipit-source-id: 6ba3fb9755312956829050f0278dee2d85d6a261
2018-07-18 14:40:05 -07:00
..
error-handler Run Prettier for serializer tests too (#2234) 2018-07-11 03:55:11 -07:00
react Upgrade Prepack to Babel 7 (#2256) 2018-07-14 09:55:18 -07:00
residual Run Prettier for serializer tests too (#2234) 2018-07-11 03:55:11 -07:00
serializer Don't emit modified bindings unless they are alive (#2287) 2018-07-18 14:40:05 -07:00
source-maps Run Prettier for serializer tests too (#2234) 2018-07-11 03:55:11 -07:00
std-in fix #1239 - Command-line based syntax errors now print location 2017-12-18 13:56:26 -08:00
test262@e9a5a7f918 Update test262 submodule hash 2018-07-06 14:25:54 -07:00