Commit 97be8bf
committed
Simplify string management.
Allocate a single memory block for strings, rather than a separate string header
and string characters block. In the past strings were split into 8 byte chunks,
and large amount of legacy code is designed for that representation. However the
current allocator allows block allocation so we don't need those complicated
algorithms anymore. This patch is a cleanup rather than an optimization.
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com1 parent 41337db commit 97be8bf
File tree
3 files changed
+275
-364
lines changed- jerry-core/ecma/base
3 files changed
+275
-364
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
817 | 817 | | |
818 | 818 | | |
819 | 819 | | |
820 | | - | |
821 | | - | |
| 820 | + | |
822 | 821 | | |
823 | 822 | | |
824 | 823 | | |
| |||
880 | 879 | | |
881 | 880 | | |
882 | 881 | | |
883 | | - | |
884 | | - | |
885 | | - | |
886 | | - | |
887 | | - | |
888 | | - | |
889 | 882 | | |
890 | | - | |
| 883 | + | |
891 | 884 | | |
892 | 885 | | |
893 | 886 | | |
894 | | - | |
895 | | - | |
896 | | - | |
897 | | - | |
898 | | - | |
899 | | - | |
900 | | - | |
901 | | - | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
902 | 890 | | |
903 | 891 | | |
904 | 892 | | |
| |||
0 commit comments