diff options
author | Ben Smith <binjimin@gmail.com> | 2018-01-17 17:08:53 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-17 17:08:53 -0800 |
commit | e9e5685e6f3cb0ee8507d0e333a608f4c2b63374 (patch) | |
tree | 1949e7b3dd8542635d32ae85997e3963d890fdb4 /test/gen-wasm.py | |
parent | 462bd5fc7d098b2b3fdc15d7f5432ed670a8a694 (diff) | |
download | wabt-e9e5685e6f3cb0ee8507d0e333a608f4c2b63374.tar.gz wabt-e9e5685e6f3cb0ee8507d0e333a608f4c2b63374.tar.bz2 wabt-e9e5685e6f3cb0ee8507d0e333a608f4c2b63374.zip |
Use `section` in gen-wasm tests for subsections (#718)
This is easier to read and handles the byte length automatically.
Diffstat (limited to 'test/gen-wasm.py')
-rwxr-xr-x | test/gen-wasm.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/gen-wasm.py b/test/gen-wasm.py index 6cbf5652..8a80715c 100755 --- a/test/gen-wasm.py +++ b/test/gen-wasm.py @@ -62,6 +62,17 @@ NAMED_VALUES = { 'CODE': 10, 'DATA': 11, + # name subsection codes + 'NAME_FUNCTION': 1, + 'NAME_LOCALS': 2, + + # linking subsection codes + 'LINKING_STACK_POINTER': 1, + 'LINKING_SYMBOL_INFO': 2, + 'LINKING_DATA_SIZE': 3, + 'LINKING_SEGMENT_INFO': 5, + 'LINKING_INIT_FUNCTIONS': 6, + # external kinds 'func_kind': 0, 'table_kind': 1, |