prepack/scripts
Roman Khotsyn 6e60644e12 Function argument modeling (#2215)
Summary:
This change allows modeling of optimized function arguments in different way than regular environment modeling. The main point of this modeling is being able to determine what getter should be used at this particular GraphQL property access at compile time. To achieve this Prepack should know the shape of arguments used for optimizing functions and should be able to infer the shape of value when it is needed.
Shape information is attached to AbstractValue (to pass it around) and on every property access a new AbstractValue is returned with shape information specific to this property.
As an output of this process, every member access to modeled values is replaced by function call like prop_string(obj, "key").
Structure of the model can be found in `ShapeInformation.js`.
Pull Request resolved: https://github.com/facebook/prepack/pull/2215

Reviewed By: NTillmann

Differential Revision: D8874743

Pulled By: hotsnr

fbshipit-source-id: 9e1b2254ef54986229be7d1195c1586b95d9a4be
2018-07-18 04:09:03 -07:00
..
debug-fb-www.js Upgrade Prepack to Babel 7 (#2256) 2018-07-14 09:55:18 -07:00
detect_bad_deps.js Updating Flow to .76 (#2229) 2018-07-09 17:25:15 -07:00
generate-sourcemaps-test.js Prettier 1.13.4 fixes 2018-06-06 12:49:59 -07:00
instrumentor.js Upgrade Prepack to Babel 7 (#2256) 2018-07-14 09:55:18 -07:00
lint-config.js Upgrade ESlint to support ES2018 2018-05-31 17:04:35 -07:00
multi-runner.js Fix prettier and lint failures 2017-10-23 00:00:47 -07:00
prettier.js Ignore test262 for Prettier (#2242) 2018-07-11 07:23:38 -07:00
publish-gh-pages.sh Update build command to explictly invoke yarn build 2018-05-22 04:31:58 -07:00
test262-filters.yml Use integration api to run Test262 tests 2017-12-01 17:46:29 -08:00
test262-runner.js Make CircleCI fail if not enough 262 tests pass (#2263) 2018-07-16 08:44:59 -07:00
test262.js Prettier 1.13.4 fixes 2018-06-06 12:49:59 -07:00
test-error-handler.js Prettier 1.13.4 fixes 2018-06-06 12:49:59 -07:00
test-internal-react.js Prettier 1.13.4 fixes 2018-06-06 12:49:59 -07:00
test-internal.js Upgrade Prepack to Babel 7 (#2256) 2018-07-14 09:55:18 -07:00
test-residual.js Prettier 1.13.4 fixes 2018-06-06 12:49:59 -07:00
test-runner.js Function argument modeling (#2215) 2018-07-18 04:09:03 -07:00
test-sourcemaps.sh Extract scripts from npm package (#463) 2017-04-26 12:26:18 -07:00
test-std-in.sh fix #1239 - Command-line based syntax errors now print location 2017-12-18 13:56:26 -08:00