Commit Graph

61778 Commits

Author SHA1 Message Date
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
nickysn
72abf6f472 + add "fingerprints" in the beginning of each routine for easier debugging (this
will be disabled later, and only enabled with -g or some other target flag,
  but for now, it's always on)

git-svn-id: branches/wasm@48272 -
2021-01-21 16:34:39 +00:00
nickysn
43f9dedb00 * fixed class name in comment
git-svn-id: branches/wasm@48271 -
2021-01-21 16:16:41 +00:00
pierre
2b79b11744 Add some colors for comparison between two run results
git-svn-id: trunk@48270 -
2021-01-21 16:15:35 +00:00
michael
79f2398e6a Small fix by Andrey to fix links
git-svn-id: trunk@48269 -
2021-01-21 15:20:11 +00:00
nickysn
6803a111f7 * fix for 64-bit shl/shr
git-svn-id: branches/wasm@48268 -
2021-01-21 15:12:10 +00:00
nickysn
cb12a91936 * both stack parameters of 64-bit SHL/SHR/SAR in WebAssembly should be 64-bit, unlike the JVM
git-svn-id: branches/wasm@48267 -
2021-01-21 14:28:27 +00:00
nickysn
a6410fae90 * fixes to the type conversions in thlcgwasm.resize_stack_int_val
git-svn-id: branches/wasm@48266 -
2021-01-21 14:22:19 +00:00
nickysn
17bfdee158 * decstack after call_indirect
git-svn-id: branches/wasm@48265 -
2021-01-21 14:05:19 +00:00
nickysn
e4c9f030af * more precise stack tracking in thlcgwasm.prepare_stack_for_ref
git-svn-id: branches/wasm@48264 -
2021-01-21 13:55:42 +00:00
yury
d83e1a33ca * tregistry2 test: Use cwstring on unices. Perform the test only on Windows and Linux.
git-svn-id: trunk@48263 -
2021-01-21 10:42:07 +00:00
pierre
3bfb995a48 Add sleep inside loop to find package that can be compiled, if none is ready in ProcessThreadResult
git-svn-id: trunk@48262 -
2021-01-21 09:20:19 +00:00
nickysn
4d758a64c2 * make functions, that return result in param to not have a return type in WebAssembly
git-svn-id: branches/wasm@48260 -
2021-01-21 04:44:48 +00:00
nickysn
2bdd089645 - removed unused parameters from g_adjust_stack_after_call for WebAssembly
git-svn-id: branches/wasm@48259 -
2021-01-21 04:41:48 +00:00
nickysn
b3eca0e4f9 + produce a warning for values, remaining on top of stack at end of function
git-svn-id: branches/wasm@48258 -
2021-01-21 04:38:01 +00:00
nickysn
dd00619e1a * improved the accuracy of the stack tracking in g_adjust_stack_after_call
git-svn-id: branches/wasm@48257 -
2021-01-21 04:34:43 +00:00
nickysn
fdf1f7d966 * adjust stack correctly in a_op_stack
git-svn-id: branches/wasm@48256 -
2021-01-21 04:12:20 +00:00
nickysn
4e57c4d89e + enable smartlink sections for the llvm-mc assembler
git-svn-id: branches/wasm@48255 -
2021-01-21 03:50:24 +00:00
Károly Balogh
429bbb5c64 powerpc-amiga: fixed the vlink linker script to handle fpc.resources and fpc.reshandles sections. at least fixes building projects with resources with vlink, otherwise untested.
git-svn-id: trunk@48254 -
2021-01-21 03:06:21 +00:00
Károly Balogh
8ad127ca30 powerpc-amiga: added some exec functions which will be required for some athreads rework
git-svn-id: trunk@48253 -
2021-01-21 03:04:20 +00:00
nickysn
60d21bcf0d * fix llvm-mc error for string constants missing a .size directive
git-svn-id: branches/wasm@48252 -
2021-01-21 02:59:59 +00:00
nickysn
8697fb4822 * write the WebAssembly procdefs in the standard way, instead of using the special JVM way
git-svn-id: branches/wasm@48251 -
2021-01-21 02:44:43 +00:00
nickysn
91ee50679f - disable the --allow-undefined linker option when linking for WASI
git-svn-id: branches/wasm@48250 -
2021-01-21 01:45:47 +00:00
nickysn
23e7e9530e + enable linker map file creation for the llvm WebAssembly linker. Note: this requires LLVM 12, which is not yet released.
git-svn-id: branches/wasm@48249 -
2021-01-20 23:55:19 +00:00
nickysn
062360341c * synchronized with trunk
git-svn-id: branches/wasm@48248 -
2021-01-20 23:34:58 +00:00