Commit Graph

21 Commits

Author SHA1 Message Date
Nikolay Nikolov
5e813e62f2 + added function fpc_wasm_invoke_helper to the WebAssembly RTL 2025-01-25 08:21:56 +02:00
Michaël Van Canneyt
925091d0d1 * Fix compilation when using threading 2025-01-23 14:48:57 +01:00
Sven/Sarah Barth
f29fe358ad - remove unnecessary defines 2025-01-08 23:06:29 +01:00
Sven/Sarah Barth
40725146cc + add intrinsic for 8-bit atomic cmpxchg for wasm32 (this way the fallback for cmxchg is no longer used for wasm32) 2025-01-08 23:06:29 +01:00
Michaël Van Canneyt
8488c87b20 * New fix for fpc_atomic_cmp_xchg_alu, as suggested by Sven 2025-01-08 14:56:16 +01:00
Sven/Sarah Barth
e94d02a067 * with all existing RTLs switched over to the atomic intrinsics, the define FPC_SYSTEM_INTERLOCKED_USE_INTRIN can be removed again 2024-12-12 22:05:20 +01:00
Sven/Sarah Barth
573b82c67f * switch WebAssembly RTL to provide atomic intrinsic helpers instead of Interlocked* functions 2024-12-12 22:05:18 +01:00
Nikolay Nikolov
b340994e1b * proper implementation for the function Sptr (which returns the stack pointer) for WebAssembly 2024-08-06 03:16:41 +03:00
Michaël Van Canneyt
8c8f8088eb * Seems not all was committed 2024-05-13 14:00:34 +02:00
Jonas Maebe
0758aa1143 FPU exception mask: generlised system unit interface 2022-10-17 19:43:01 +00:00
Nikolay Nikolov
e3139fea21 + setup a thread manager (functions are still not yet implemented), when the WASI RTL is compiled with multithreading support 2022-07-14 05:14:20 +03:00
Nikolay Nikolov
47c271dcd0 + implemented InterlockedIncrement, InterlockedDecrement, InterlockedExchange,
InterlockedCompareExchange and InterlockedExchangeAdd for WebAssembly in a
  thread safe way, using the thread and atomics extension, when the RTL is
  compiled with -dFPC_WASM_THREADS
2022-05-22 06:34:10 +03:00
Nikolay Nikolov
d9eb8d75b9 + return a small, fake backtrace for WebAssembly, so that in case of a runtime
error, the message 'Runtime error XXX at $EEEEEEEE' appears.
2021-10-05 04:44:52 +03:00
Nikolay Nikolov
3258937d97 + implemented move() for WebAssembly via the memory.copy instruction 2021-10-02 21:33:28 +03:00
Nikolay Nikolov
2e3e3edb5f + implemented FillChar for WebAssembly via the memory.fill instruction 2021-10-02 20:31:37 +03:00
Nikolay Nikolov
91f0f1a86c * don't include except.inc if wasm32 native exception is turned on, instead
replace it with except_native.inc
2021-09-28 03:46:30 +03:00
Nikolay Nikolov
33e25a3dfe + added except_native.inc include file (empty for now, but will provide RTL
support for the native wasm exceptions in the future)
2021-09-18 03:08:48 +03:00
nickysn
8c33dc4692 * return nil in get_caller_addr, get_caller_frame an sptr
git-svn-id: branches/wasm@48374 -
2021-01-24 02:18:20 +00:00
nickysn
de15809f62 + added some WASM32 functions
git-svn-id: branches/wasm@48241 -
2021-01-20 21:43:55 +00:00
nickysn
b8367e3152 + added fpc_cpuinit for WebAssembly
git-svn-id: branches/wasm@48218 -
2021-01-19 19:31:35 +00:00
nickysn
a5fafea8d1 * more updates to attempt to get a larger part of the full RTL to compile for WASM32
git-svn-id: branches/wasm@47970 -
2021-01-02 13:01:39 +00:00