Olivier Goffart
992507eadd
Fix the inliner thinking property are not modified when they are
2022-02-17 16:25:48 +01:00
Olivier Goffart
a32eee64a7
Count the uses of property, and do not generate properties that are not used
2022-02-17 16:25:48 +01:00
Olivier Goffart
2fbc23e174
Add an internal doc comment
2022-02-16 18:46:37 +01:00
Olivier Goffart
6f3668324f
llr inlining: fix checking of builtin global properties
2022-02-16 18:46:37 +01:00
Olivier Goffart
3483ca17a7
LLR: optimization pass to inline property access
...
When the property access a binding that itself is only accessing one binding
2022-02-16 18:46:37 +01:00
Olivier Goffart
dc3c91dd9f
llr: Fix the type of LayoutCacheAccess
...
It access the element of the array.
This starts to be important when that expression starts being inlined
in more complex expressions
2022-02-16 18:46:37 +01:00
Olivier Goffart
21546722ad
LLr: Add a pretty printer
...
It's far from complete, but already allow some debugging
2022-02-16 18:46:37 +01:00
Olivier Goffart
9f77e9a2e8
llr: note when a property binding is for a StateInfo
2022-02-16 18:46:37 +01:00
Olivier Goffart
a158c4b527
llr: Add visitors
2022-02-16 18:46:37 +01:00
Olivier Goffart
cc212c9d71
llr: keep property analysis
2022-02-16 18:46:37 +01:00
Olivier Goffart
9e938046ca
llr: Add a helper function
2022-02-16 18:46:37 +01:00
Olivier Goffart
76a1bf8d7d
LLR: Put the expression into a RefCell so they can be optimized
2022-02-16 18:46:37 +01:00
Tobias Hunger
4230ac2572
Update copyright information to reflect name change
...
Also run resue over the codebase and fix complaints from that tool.
2022-02-09 10:27:47 +01:00
Olivier Goffart
e4a41a28b7
llr: Fix accessing members of ArrayIndex expressions
...
We were not computing the type of a ArrayIndex expression correctly:
It should be the elemtn types of array, not the array itself
2022-02-06 11:26:24 +01:00
Tobias Hunger
b348d1af44
PropertyAnimation: Make iteration-count: n
run animations n times
...
Side-effect: The code handles invalid inputs to duration/delay better.
2022-02-04 10:42:25 +01:00
Tobias Hunger
0d358251c9
Janitor: More clippy stuff
2022-01-31 20:59:45 +01:00
Tobias Hunger
e6b24bceec
[reorg]: Set up and populate the internal
directory
...
Move "internal" crates into the `internal` directory. This first batch
includes most of sixtyfps_runtime but leaves the rendering backends
alone for now.
pre-commit applied some cleanups to the moved files:
- Consistent newline at end of file policy
- trimming trailing whitespace
- Formatting Cargo.toml files.
2022-01-31 16:00:50 +01:00