Commit Graph

61752 Commits

Author SHA1 Message Date
nickysn
83f88e515b * renamed the a_get/set/tee_local/global asm ops a_local/global_set/get/tee
git-svn-id: branches/wasm@48324 -
2021-01-22 15:21:40 +00:00
nickysn
d8f55ebb48 * renamed the a_iXX_extendYYYY family of asm ops to their modern versions
git-svn-id: branches/wasm@48323 -
2021-01-22 15:08:43 +00:00
nickysn
116366a8e3 * updated the a_iXX_trunc_su_fYY asm ops to their modern format a_iXX_trunc_fYY_su
git-svn-id: branches/wasm@48322 -
2021-01-22 15:05:35 +00:00
nickysn
60242ca0fd * updated the a_fXX_convert_su_iYY asm ops to their modern format a_fXX_convert_iYY_su
git-svn-id: branches/wasm@48321 -
2021-01-22 15:03:04 +00:00
nickysn
9acfdc8cdd * the a_f64_reinterpret_f64 asm op renamed a_f64_reinterpret_i64
git-svn-id: branches/wasm@48320 -
2021-01-22 14:58:50 +00:00
nickysn
699626ee5c * a_grow_memory asm op renamed a_memory_grow
git-svn-id: branches/wasm@48319 -
2021-01-22 14:52:46 +00:00
nickysn
d0fe45a595 * a_current_memory asm op renamed a_memory_size
git-svn-id: branches/wasm@48318 -
2021-01-22 14:51:55 +00:00
nickysn
a329325217 * THandle is a longint on the WASI target
git-svn-id: branches/wasm@48315 -
2021-01-22 04:09:51 +00:00
nickysn
14bca0d0dd - removed debug writeln from the WASI linker invocation code
git-svn-id: branches/wasm@48314 -
2021-01-22 03:11:08 +00:00
nickysn
cdb74f034c + call InitSystemThreads in the system unit startup for WASI
git-svn-id: branches/wasm@48313 -
2021-01-22 03:01:55 +00:00
nickysn
910bbc6b37 * override is_pushleftright for WebAssembly and make it return true
git-svn-id: branches/wasm@48312 -
2021-01-22 02:59:13 +00:00
nickysn
c8760b12d4 + initial attempt for implementing do_open. Not working yet
git-svn-id: branches/wasm@48311 -
2021-01-22 02:43:54 +00:00
nickysn
e14451c6b6 + added error handling to the do_read and do_Write WASI routines
git-svn-id: branches/wasm@48310 -
2021-01-22 02:06:30 +00:00
nickysn
85ea2b9b11 + added the WASI errno constants
git-svn-id: branches/wasm@48309 -
2021-01-22 01:35:12 +00:00
nickysn
9b173ac119 + implemented do_isdevice for WASI
git-svn-id: branches/wasm@48308 -
2021-01-22 01:26:35 +00:00
nickysn
d6038c5709 + implemented do_read for WASI
git-svn-id: branches/wasm@48307 -
2021-01-22 01:04:19 +00:00
nickysn
f585b2d846 + si_prc startup unit added to the makefiles
git-svn-id: branches/wasm@48306 -
2021-01-22 00:55:01 +00:00
nickysn
df947d3ae8 * fixed rtl compilation with FPC 3.2.0 starting compiler
git-svn-id: branches/wasm@48305 -
2021-01-22 00:48:44 +00:00
nickysn
f5f15e3dbf + added startup code for WASI
git-svn-id: branches/wasm@48304 -
2021-01-22 00:41:51 +00:00
nickysn
7f60637c92 - removed the system unit startup code debug output
git-svn-id: branches/wasm@48303 -
2021-01-22 00:31:16 +00:00
nickysn
204b0a777d + implemented system_exit for WASI
git-svn-id: branches/wasm@48302 -
2021-01-22 00:28:13 +00:00
nickysn
d8f2d85474 * switch to wasi_snapshot_preview1
git-svn-id: branches/wasm@48301 -
2021-01-22 00:19:10 +00:00
nickysn
8866fcbc56 - removed the FULL_RTL ifdefs, i.e. always build a full rtl
git-svn-id: branches/wasm@48300 -
2021-01-22 00:16:34 +00:00
nickysn
5794afac54 + implemented do_write for WASI. Error handling is not yet done.
git-svn-id: branches/wasm@48299 -
2021-01-22 00:15:01 +00:00
nickysn
9b2e3aa251 + rtl file routines debug output
git-svn-id: branches/wasm@48298 -
2021-01-22 00:07:00 +00:00
nickysn
00d2f6273b + implemented OpenStdIO
git-svn-id: branches/wasm@48297 -
2021-01-22 00:04:42 +00:00
nickysn
bc0d510ee2 + added DebugWriteHexWord and DebugWriteHexLongWord
git-svn-id: branches/wasm@48296 -
2021-01-22 00:03:55 +00:00
nickysn
61ba4869ae * quick and dirty fix for the move parameter order passing in g_concatcopy
git-svn-id: branches/wasm@48295 -
2021-01-22 00:02:12 +00:00
nickysn
ae39e3da44 + endless loop in system_exit (for now)
git-svn-id: branches/wasm@48294 -
2021-01-21 23:22:44 +00:00
nickysn
dd47111e61 + call SysInitStdIO (empty for now) and clear InOutRes at startup
git-svn-id: branches/wasm@48293 -
2021-01-21 23:21:07 +00:00
nickysn
4165c893be * synchronized with trunk
git-svn-id: branches/wasm@48292 -
2021-01-21 23:16:12 +00:00
nickysn
84bf3a390e + init exceptions and the unicode string manager
git-svn-id: branches/wasm@48291 -
2021-01-21 23:15:37 +00:00
nickysn
54299874d3 + implemented memory.grow and memory.size intrinsics and implemented SysOSAlloc
git-svn-id: branches/wasm@48290 -
2021-01-21 23:13:49 +00:00
nickysn
fe7fd69d5e + initialize heap in the system unit startup (but SysOSAlloc is not yet implemented)
git-svn-id: branches/wasm@48289 -
2021-01-21 22:22:08 +00:00
nickysn
11ed6adf63 + set IsConsole and IsLibrary in the wasi system unit startup
git-svn-id: branches/wasm@48288 -
2021-01-21 22:19:33 +00:00
nickysn
83f3d68537 + some system unit debug output
git-svn-id: branches/wasm@48287 -
2021-01-21 22:17:48 +00:00
nickysn
4d933d74b9 + call the inherited methods for generating the standard entry/exit code, so that units are initialized/finalized
git-svn-id: branches/wasm@48286 -
2021-01-21 22:15:50 +00:00
nickysn
9908a9d82a + add functypes for the unit init and finalization code procedures
git-svn-id: branches/wasm@48285 -
2021-01-21 22:12:15 +00:00
nickysn
4b6cbde849 * fixed 64-bit float comparison
git-svn-id: branches/wasm@48284 -
2021-01-21 21:50:19 +00:00
nickysn
7e958e0a35 + introduced the discardresult directive and declared the UniqueString()
overloads, using this directive

git-svn-id: branches/wasm@48283 -
2021-01-21 21:42:07 +00:00
florian
f4c74b6b09 * fix TBufferedFileStream.Seek(0,soBeginning) as proposed by Andrey Zubarev, resolves #38351
git-svn-id: trunk@48282 -
2021-01-21 21:08:13 +00:00
nickysn
187659ff02 + more accurate stack tracking in thlcgwasm.a_loadaddr_ref_stack
git-svn-id: branches/wasm@48281 -
2021-01-21 18:26:07 +00:00
nickysn
84e2299399 * fixed getting of float function result after call
git-svn-id: branches/wasm@48280 -
2021-01-21 18:17:00 +00:00
nickysn
545c949586 * fixed thlcgwasm.a_op_ref_stack - it was not emitting the actual operation opcode
git-svn-id: branches/wasm@48279 -
2021-01-21 17:40:01 +00:00
nickysn
0315ab00d8 * map the currency type to the i64 WebAssembly type
git-svn-id: branches/wasm@48278 -
2021-01-21 17:32:55 +00:00
nickysn
4fa09a6f8b - removed the trunc32 parameter of thlcgwasm.a_op_stack, because it is no longer used, nor necessary
git-svn-id: branches/wasm@48277 -
2021-01-21 17:28:20 +00:00
nickysn
3bdf0938c0 - removed thlcgwasm.maybepreparedivu32, because it is not needed - WebAssembly has 32-bit unsigned division, unlike the JVM
git-svn-id: branches/wasm@48276 -
2021-01-21 17:26:38 +00:00
nickysn
ffebab9691 * fixed byte/word to int64 conversion in thlcgwasm.resize_stack_int_val
git-svn-id: branches/wasm@48275 -
2021-01-21 17:09:03 +00:00
nickysn
dc9feba435 - removed thlcgwasm.loadstoreopc and replaced it with direct code - this actually improves code readability now
git-svn-id: branches/wasm@48274 -
2021-01-21 17:03:49 +00:00
nickysn
aaf28ca259 - removed commented out code
git-svn-id: branches/wasm@48273 -
2021-01-21 16:57:35 +00:00