summaryrefslogtreecommitdiff
path: root/test/unit/test_memory_packing.py
Commit message (Collapse)AuthorAgeFilesLines
* MemoryPacking: Preserve segment names (#3458)Sam Clegg2020-12-181-4/+5
| | | | | Also, avoid packing builtin llvm segments names so that segments such as `__llvm_covfun` (use by llvm-cov) are preserved in the final output.
* Use package name in imports (NFC) (#2462)Heejin Ahn2019-11-221-7/+8
| | | | | Don't directly import names from shared.py and support.py, and use prefixes instead. Also this reorders imports based on PEP recommendation.
* Switch python indentation from 2-space to 4-space (#2299)Sam Clegg2019-08-161-32/+32
| | | | | | | | pep8 specifies 4 space indentation. The use of 2 spaces is, I believe a historical anomaly where certain large organizations such as google chose 2 over 4 and have yet to make the switch. Since there isn't too much code in binaryen today it seems reasonable to make the switch.
* Python3-ify check.py and auto_update_tests.py (#2270)Alon Zakai2019-07-311-1/+1
| | | | | I fixed flatten.bin.txt which seems to have just had some corrupted data, and I removed some fancy unicode from the spec comments tests, which I'm not sure it's important enough to figure out how to fix. Fixes #1691
* Change default feature set to MVP (#1993)Thomas Lively2019-04-161-2/+2
| | | | | In the absence of the target features section or command line flags. When there are command line flags, it is an error if they do not exactly match the target features section, except if --detect-features has been provided. Also adds a --print-features pass to print the command line flags for all enabled options and uses it to make the feature tests more rigorous.
* Move segment merging to fit web limits into its own pass (#1980)Thomas Lively2019-04-081-0/+40
It was previously part of writing a binary, but changing the number of segments at such a late stage would not work in the presence of bulk memory's datacount section. Also updates the memory packing pass to respect the web's limits on the number of data segments.