Commit Graph

21 Commits

Author SHA1 Message Date
Nikolay Nikolov
ee3ff19312 + allow referencing TLS_SIZE_SYM, TLS_ALIGN_SYM and TLS_BASE_SYM from WebAssembly inline asm 2024-07-22 16:45:26 +03:00
Nikolay Nikolov
43229cdf2e + support the atomic instructions in the WebAssembly inline asm reader 2024-07-22 02:02:25 +03:00
Nikolay Nikolov
fcfcdc2ccd - removed debug printing from the WebAssembly inline assembler reader 2024-07-21 21:05:53 +03:00
Nikolay Nikolov
5cfd214b68 * fixed WebAssembly inline asm parsing bug for the global.get/global.set ID instruction 2024-07-21 18:13:42 +03:00
Nikolay Nikolov
b08b5bf136 * fixed the WebAssembly inline asm call instruction with the internal assembler writer 2024-07-20 21:53:24 +03:00
Nikolay Nikolov
d8340641cc + support the call instruction in the WebAssembly inline asm 2024-07-20 21:30:00 +03:00
Nikolay Nikolov
0a9169eb67 + allow referencing '$__stack_pointer' in WebAssembly inline asm as argument to
the global.get and global.set instructions. This will be used in the future to
  implement the thread start routine in inline asm.
2024-07-20 17:38:10 +03:00
Nikolay Nikolov
83a8d584e0 + set result.ops in twasmreader.HandlePlainInstruction 2024-07-16 15:13:56 +03:00
Nikolay Nikolov
d9e3afcb1d + actually enable the parsing of WebAssembly inline asm instructions 2024-07-16 14:53:56 +03:00
Nikolay Nikolov
fd1fb255a6 * started implementing twasmreader.HandleBlockInstruction 2024-07-16 14:48:55 +03:00
Nikolay Nikolov
152bb316c3 + call ConcatInstruction for plain instructions in twasmreader.HandleInstruction 2024-07-16 12:58:47 +03:00
Nikolay Nikolov
8ec86ad053 + insert plain instructions and parse nested instructions in twasmreader.HandleFoldedInstruction 2024-07-16 02:04:58 +03:00
Nikolay Nikolov
95593f15dd + handle the local and global variable instructions with a constant integer
parameter in twasmreader.HandlePlainInstruction
2024-07-16 01:38:57 +03:00
Nikolay Nikolov
ea988e0b92 + recognize the memory access instructions with an optional memarg operand (not
parsed, yet) in twasmreader.HandlePlainInstruction
2024-07-15 20:27:32 +03:00
Nikolay Nikolov
09f2fa0daf + support the f32.const and f64.const instructions in twasmreader.HandlePlainInstruction 2024-07-15 20:20:13 +03:00
Nikolay Nikolov
8e79108e51 * changed twasmreader.HandlePlainInstruction to return an instruction 2024-07-15 16:49:06 +03:00
Nikolay Nikolov
c1c1d46c15 + parse the instructions with integer parameter i32.const and i64.const in twasmreader.HandlePlainInstruction 2024-07-15 16:49:06 +03:00
Nikolay Nikolov
748dbbcb20 * fixed another warning 2024-07-14 00:09:18 +03:00
Nikolay Nikolov
4c3d8d016e + added else clause to silence warning, treated as error in CI 2024-07-13 12:21:36 +03:00
Nikolay Nikolov
c6e715a54e + WebAssembly inline assembler instruction parsing work in progress 2024-07-12 23:35:38 +03:00
Nikolay Nikolov
4c787b4b9f + started working on a WebAssembly inline assembler reader. Not ready, yet, just
includes a basic tokenizer for now.
2024-07-12 16:02:19 +03:00