Nikolay Nikolov
00aa7b8ab3
+ implemented SysUtils.FileGetAttr for WASI
2021-10-12 05:50:24 +03:00
Nikolay Nikolov
7f7c5785fc
* always return an error in SysUtils.FileSetAttr on WASI - this function is not supported by the WASI API
2021-10-12 05:38:16 +03:00
Nikolay Nikolov
809277d2b1
+ implemented SysUtils.FileGetSymLinkTarget for WASI
2021-10-12 05:32:53 +03:00
Nikolay Nikolov
1e5ecccdc6
+ implemented SysUtils.DirectoryExists for WASI
2021-10-12 03:50:23 +03:00
Nikolay Nikolov
aafb471bc8
* don't set InOutRes in ConvertToFdRelativePath, but return it instead. This
...
fixes issues in places where this function is used in a way that should not
set IOResult.
2021-10-12 03:28:03 +03:00
Nikolay Nikolov
4dc0c37678
+ implemented SysUtils.FileExists for WASI
2021-10-12 03:28:03 +03:00
Nikolay Nikolov
fe903f2ae4
* fixed range check error in HasDriveLetter when path is 1 character long
2021-10-12 03:28:03 +03:00
Nikolay Nikolov
00d5bb5bbc
* fixed off-by-one error when initializing current_drive in the WASI system unit
2021-10-12 03:28:03 +03:00
florian
ca9384fd6c
* patch by Dean Mustakino to avoid generation of debug info for generics, resolves #38827
...
+ test
2021-10-11 18:45:41 +02:00
Nikolay Nikolov
068f781c7a
+ also implemented FileSetDate(FileName) for WASI, via the __wasi_path_filestat_set_times API call
2021-10-11 17:51:13 +03:00
Nikolay Nikolov
94d8c22c6a
+ implemented SysUtils.FileSetDate for WASI
2021-10-11 15:51:13 +03:00
Nikolay Nikolov
38075ac30c
+ implemented SysUtils.FileAge for WASI
2021-10-11 15:26:55 +03:00
Nikolay Nikolov
8f95c14827
+ implemented SysUtils.FileGetDate for WASI
2021-10-11 15:08:48 +03:00
Nikolay Nikolov
2a93340bcc
+ implemented SysUtils.DeleteFile for WASI
2021-10-11 11:27:57 +03:00
Nikolay Nikolov
c8d5bd77a3
- don't call ToSingleByteFileSystemEncodedFileName in SysUtils.FileOpen and
...
.FileCreate, because ConvertToFdRelativePath already calls it
2021-10-11 11:21:33 +03:00
Nikolay Nikolov
05c6937fd9
+ implemented SysUtils.RenameFile for WASI
2021-10-11 11:14:05 +03:00
Nikolay Nikolov
4c89eaa6cf
+ implemented SysUtils.FileSeek for WASI
2021-10-11 10:50:44 +03:00
Nikolay Nikolov
14f361e13f
+ implemented SysUtils.FileWrite for WASI
2021-10-11 10:37:11 +03:00
Nikolay Nikolov
09e61201d2
* fixed WASI bug in do_read, where the result of the __wasi_fd_read syscall function was ignored
2021-10-11 10:33:54 +03:00
Nikolay Nikolov
977b2f2a4b
+ implemented SysUtils.FileRead for WASI
2021-10-11 10:32:50 +03:00
Nikolay Nikolov
305393a9c1
- removed the zero constants from the implementation of SysUtils.FileOpen for WASI
2021-10-11 10:26:06 +03:00
Nikolay Nikolov
0bbc5a7528
+ implemented SysUtils.FileCreate for WASI
2021-10-11 10:24:36 +03:00
Nikolay Nikolov
62846f54ad
+ implemented SysUtils.FileOpen for WASI
2021-10-11 10:11:07 +03:00
Nikolay Nikolov
aa4070ca8a
+ implemented SysUtils.FileClose for WASI
2021-10-11 09:52:09 +03:00
Nikolay Nikolov
27df4e98d2
* use rawbytestring instead of ansistring for the WASI file name handling
2021-10-11 09:25:01 +03:00
Nikolay Nikolov
a0e7882692
* use AllowDirectorySeparators, instead of checking for '/' and '\'
2021-10-11 09:04:32 +03:00
Nikolay Nikolov
60d350f067
* another instance of ['/','\'] replaced with AllowDirectorySeparators
2021-10-11 08:56:16 +03:00
Nikolay Nikolov
d7755a56f6
* replaced '/' with DirectorySeparator in the WASI directory parsing code
2021-10-11 08:51:39 +03:00
Nikolay Nikolov
13c344a3a0
* replaced ['/','\'] with AllowDirectorySeparators in the WASI directory
...
parsing code
2021-10-11 08:45:42 +03:00
Nikolay Nikolov
25ac138092
* keep the drive string separate in the preopen and the current dir records on
...
the WASI platform
2021-10-11 08:38:33 +03:00
florian
07413be8b5
+ being able to define change information for xmm0
...
* corrected change information for SHA256RNDS2
2021-10-10 23:07:23 +02:00
Nikolay Nikolov
64db584eef
* moved the preopened dir and current dir handling types and variables to the
...
implementation part of the system unit, so their implementation is not exposed
and can be changed in the future (e.g. for thread safety when WebAssembly
gets multithreading support, etc.)
2021-10-10 20:25:29 +03:00
Nikolay Nikolov
a62c7555d7
- removed the DebugWriteXXX functions from the WASI system unit, since console
...
output is now quite stable and can be used for debugging
2021-10-10 20:25:29 +03:00
Nikolay Nikolov
0d6b5338d0
+ implemented ChDir() for WASI
2021-10-10 20:25:29 +03:00
Nikolay Nikolov
85ebd2c94c
* fixed handling of relative paths that are not directly relative to a preopened
...
dir in ConvertToFdRelativePath. This is a preparation for ChDir support.
2021-10-10 20:25:29 +03:00
J. Gareth "Curious Kit" Moreton
a925522ead
xor optimisation now doesn't check to see if the REX prefix will actually be removed, as it's beneficial for speed reasons to only use the 32-bit register when zeroing the whole thing
2021-10-10 16:17:43 +00:00
florian
2c180cf101
* by default, DEBUG_AOPTCPU is only enabled if the compiler is compiled with -dEXTDEBUG
2021-10-10 15:35:38 +02:00
J. Gareth "Curious Kit" Moreton
d502bccc1b
A pair of inlines
2021-10-10 09:19:57 +00:00
florian
a41e991a13
* fix also IDE building after fpccrc to fpchash renaming
2021-10-10 11:15:36 +02:00
florian
cc3cbbb7b9
* fix x86 compilation after my last commit
2021-10-10 10:21:21 +02:00
florian
a4672fbd1c
o based on a patch by Rika, resolves #39401 :
...
* use Base64 (62=_, 63=$) encoded FNV hash (instead of CR-32) to shorted identifiers
* renamed fpccrc to fpchash
+ test
2021-10-10 10:09:22 +02:00
Nikolay Nikolov
bae50d80d2
* preopen fd names and current dir changed to use ansistring, as well as the
...
parameters and result of ConvertToFdRelativePath. This will allow easier
implementation of ChDir.
2021-10-10 09:11:19 +03:00
florian
bff09e8e9e
+ CPU units: check for SHA support
2021-10-09 16:23:11 +02:00
florian
6c7e6191f6
+ support of SHA extension in the internal assembler
2021-10-09 15:44:46 +02:00
florian
8f68988aef
* another location to use source register as second register in VCVTSD2SS and VCVTSS2SD
...
to break dependency chains, hopefully final fix for #39360
2021-10-09 14:24:14 +02:00
florian
b4bf371b34
* generate VMOVAPS for (V)Cvtss2CvtSd(V)Cvtsd2ss optimization, resolves #39360
2021-10-08 22:59:29 +02:00
Nikolay Nikolov
344da9597f
+ added the current WebAssembly exceptions mode to the .ppu module flags and
...
perform a check to ensure all units are compiled in the same exceptions mode
as the main program
2021-10-08 23:50:28 +03:00
Yuriy Sydorov
7388735b11
* Strength reduction optimization: - Use a temp for complex loop start values to prevent double evaluation.
...
- For slow CPUs perform the optimization for all sizes of array elements.
2021-10-08 18:04:03 +03:00
Yuriy Sydorov
6bf4c7a68d
* Optimized evaluation of the condition.
2021-10-08 16:51:42 +03:00
Pierre Muller
b93998c17c
Disable utils for wasi target, because paszlib cannot be compiled due to use of goto labels
2021-10-08 08:41:14 +00:00