mirror of
https://github.com/facebookarchive/prepack.git
synced 2024-08-17 02:20:31 +03:00
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 |
||
---|---|---|
.. | ||
debug-fb-www.js | ||
detect_bad_deps.js | ||
generate-sourcemaps-test.js | ||
instrumentor.js | ||
lint-config.js | ||
multi-runner.js | ||
prettier.js | ||
publish-gh-pages.sh | ||
test262-filters.yml | ||
test262-runner.js | ||
test262.js | ||
test-error-handler.js | ||
test-internal-react.js | ||
test-internal.js | ||
test-residual.js | ||
test-runner.js | ||
test-sourcemaps.sh | ||
test-std-in.sh |