Commit graph

22 commits

Author SHA1 Message Date
Brian Carroll
ad9b761fce Move wasm file format code into a submodule 2021-11-03 11:20:16 +00:00
Brian Carroll
59757d638a Migrate the last sections: Type and Function 2021-11-03 10:24:03 +00:00
Brian Carroll
b0aeafc066 Refactor code section to get rid of a copy 2021-11-02 20:34:57 +00:00
Brian Carroll
d8c1017aec refactor stack pointer initialisation 2021-11-02 14:00:22 +00:00
Brian Carroll
e720873c05 Migrate to own Global and Memory sections 2021-11-02 13:32:54 +00:00
Brian Carroll
edadd4ce13 Temporary setup to gradually migrate sections from parity_wasm to our own module_builder
Previously we just had our own code section.
Now we also have export section, and a way of switching them over one by one,
running tests in between.
2021-11-02 12:46:15 +00:00
Brian Carroll
4f464e485a Export and code sections 2021-11-01 14:13:34 +00:00
Brian Carroll
2a0dbb39fb Memory and Global sections 2021-11-01 12:30:44 +00:00
Brian Carroll
e05ef73f6c function section 2021-11-01 09:54:09 +00:00
Brian Carroll
eb9705e2e9 import section 2021-11-01 09:48:29 +00:00
Brian Carroll
d25b12328d Rename some SerialBuffer methods 2021-11-01 08:42:02 +00:00
Brian Carroll
7ad452d78a Types section 2021-11-01 08:34:34 +00:00
Brian Carroll
6ab00d164c Create WasmModule struct 2021-11-01 00:06:25 +00:00
Brian Carroll
c29e8bc452 comment formatting 2021-11-01 00:05:18 +00:00
Brian Carroll
b0e0c14dd8 clippy 2021-10-30 17:52:38 +01:00
Brian Carroll
b8eea9be2b Fix linking bugs from wasm-objdump analysis 2021-10-30 17:47:13 +01:00
Brian Carroll
0ee482ae9e Fix string encoding. Tests pass. 2021-10-30 10:57:21 +01:00
Brian Carroll
b541802819 Change custom section names to string slice
We will never need to create these names dynamically.
e.g. "reloc.CODE", "reloc.DATA", and "linking" will all
come from specific places in our backend code.
It's a different story for function names etc.
2021-10-30 09:26:40 +01:00
Brian Carroll
2da2e51895 Move relocations code into the backend and code builder 2021-10-30 09:20:16 +01:00
Brian Carroll
9780cce4dd Rough draft of function name relocations 2021-10-30 08:55:33 +01:00
Brian Carroll
f5f34b74c0 Write serializers for much of the linking and relocation sections 2021-10-29 16:04:27 +01:00
Brian Carroll
3c9375af28 Start creating module_builder 2021-10-28 13:18:14 +01:00