Commit Graph

61846 Commits

Author SHA1 Message Date
nickysn
2150d935cf + dummy override for WebAssembly free_exception
git-svn-id: branches/wasm@48214 -
2021-01-19 19:18:15 +00:00
nickysn
c5fae9f214 + implemented second_ansistring_to_pchar for WebAssembly
git-svn-id: branches/wasm@48213 -
2021-01-19 19:15:18 +00:00
nickysn
0f235f38ab + introduced thlcgwasm.a_loadaddr_ref_stack
git-svn-id: branches/wasm@48212 -
2021-01-19 19:11:17 +00:00
Mattias Gaertner
b460f87fd4 fcl-passrc: fixed checking statement after except-on
git-svn-id: trunk@48211 -
2021-01-19 19:08:26 +00:00
yury
30587299ea * TRegIniFile: When accessing a section do not change/close the current open key.
* TRegIniFile should work properly with the XML registry. The tregistry2 test should work on any platform.

git-svn-id: trunk@48210 -
2021-01-19 17:38:36 +00:00
yury
5d69ba2cd8 * TXmlRegistry: When a key name starts with \ or / it means the absolute path to the key is specified. So ignore the currently selected key when an absolute key is requested.
git-svn-id: trunk@48209 -
2021-01-19 17:30:11 +00:00
yury
050a342101 * Reverted r41816 to allow TXmlRegistry.DeleteKey() delete the key and all its children. It is Delphi compatible. Windows implementation of TRegistry.DeleteKey() was fixed accordingly.
git-svn-id: trunk@48208 -
2021-01-19 17:25:56 +00:00
yury
ffff24593d * To be Delphi compatible TRegistry.DeleteKey() must delete the specified key and all its child keys.
git-svn-id: trunk@48207 -
2021-01-19 17:21:18 +00:00
yury
2c196ee8a9 * TRegistryIniFile: Fixed uninitialized Result in ValueExists(). Implemented SectionExists().
git-svn-id: trunk@48206 -
2021-01-19 17:13:44 +00:00
yury
9fd0f94d7c * tregistry2 test: Delete reg.xml and the app config dir.
git-svn-id: trunk@48205 -
2021-01-19 17:10:55 +00:00
yury
a29bfe5505 * Moved the tregistry2.pp test from packages to tests in order it to be run by daily test runs. tregistry2 has been failing for years and nobody has noticed this.
git-svn-id: trunk@48204 -
2021-01-19 16:52:43 +00:00
yury
4bf19e9d92 * Extended the tregistry2 test.
git-svn-id: trunk@48203 -
2021-01-19 16:40:45 +00:00
nickysn
28b9d0c6b4 + dummy code generator for the try..finally blocks in WebAssembly
git-svn-id: branches/wasm@48202 -
2021-01-19 16:24:18 +00:00
nickysn
d5caaf792c * update comment about twasmifnode, since the WebAssembly 'if' instruction that
we emit is no longer hardcoded to return a value

git-svn-id: branches/wasm@48201 -
2021-01-19 16:13:45 +00:00
nickysn
0236da1da9 * changed the formatting in nwasmflw.pas to match the style of the rest of the compiler
git-svn-id: branches/wasm@48200 -
2021-01-19 16:11:54 +00:00
nickysn
d1c58ccf4b + override the try finally node for WebAssembly. No functional changes yet.
git-svn-id: branches/wasm@48199 -
2021-01-19 16:06:37 +00:00
nickysn
cc94ab3ab8 + implemented length() code generation for WebAssembly
git-svn-id: branches/wasm@48198 -
2021-01-19 14:32:23 +00:00
nickysn
888af282a4 + override the inline node for WASM
git-svn-id: branches/wasm@48197 -
2021-01-19 14:04:47 +00:00
nickysn
67909adcc3 + override tcgexceptionstatehandler for WASM and create a dummy new_exception
git-svn-id: branches/wasm@48196 -
2021-01-19 13:54:26 +00:00
nickysn
aafc6423f0 + introduced a_cmp_loc_reg_br, a_cmp_reg_loc_br and a_cmp_ref_loc_br
git-svn-id: branches/wasm@48195 -
2021-01-19 13:09:08 +00:00
nickysn
fe5dee892f + introduced a_cmp_subsetreg_reg_br and a_cmp_subsetref_reg_br
git-svn-id: branches/wasm@48194 -
2021-01-19 13:05:50 +00:00
nickysn
db4c786059 + introduced a_cmp_const_loc_br
git-svn-id: branches/wasm@48193 -
2021-01-19 13:03:03 +00:00
nickysn
f9d1a9b8e3 * decstack after each br_if in the a_cmp_XXX_br methods
git-svn-id: branches/wasm@48192 -
2021-01-19 13:00:42 +00:00
nickysn
e1b98a515a * fixed class name in comment
git-svn-id: branches/wasm@48191 -
2021-01-19 12:58:16 +00:00
nickysn
dbc7cb9001 * set expectloc correctly in the WASM add node (it is never LOC_FLAGS or LOC_JUMP, but LOC_REGISTER instead)
git-svn-id: branches/wasm@48190 -
2021-01-19 12:55:29 +00:00
Mattias Gaertner
25fd38b2da pastojs: fixed o as intftype, when o is nil
git-svn-id: trunk@48188 -
2021-01-19 09:42:56 +00:00
pierre
dc799a9d49 Fix clearing of single type register variable in initialize_regvars method for ARM cpu (with -Ooregvar)
git-svn-id: trunk@48186 -
2021-01-18 23:29:24 +00:00
nickysn
8021de82f6 * synchronized with trunk
git-svn-id: branches/wasm@48185 -
2021-01-18 23:11:34 +00:00
nickysn
a478e15836 - removed some commented out code
git-svn-id: branches/wasm@48184 -
2021-01-18 23:11:02 +00:00
nickysn
7f31c03718 * update the flowcontrol set in the IF node pass_generate_code
git-svn-id: branches/wasm@48183 -
2021-01-18 23:08:25 +00:00
nickysn
c0e7035e50 + set node location to LOC_VOID in the WebAssembly if node pass_generate_code
git-svn-id: branches/wasm@48182 -
2021-01-18 23:05:11 +00:00
nickysn
69c407dff5 + added dummy int64p.inc file for WebAssembly
git-svn-id: branches/wasm@48181 -
2021-01-18 22:50:22 +00:00
nickysn
9fdc8c141c + implemented the boolean NOT node for WebAssembly
git-svn-id: branches/wasm@48180 -
2021-01-18 22:48:24 +00:00
nickysn
af41eee9d1 + support references with only index reg, and no base reg in thlcgwasm.prepare_stack_for_ref
git-svn-id: branches/wasm@48179 -
2021-01-18 22:35:56 +00:00
nickysn
c4e8f091ec * generate jumpless code for the IN node for WebAssembly. TODO: this needs to be
refactored, so the WebAssembly-specific code generation code goes in the wasm
  in node descendant class.

git-svn-id: branches/wasm@48178 -
2021-01-18 22:32:35 +00:00
nickysn
c8e130d525 + added WebAssembly invalid register check in op_reg when compiler is compiled with EXTDEBUG
git-svn-id: branches/wasm@48177 -
2021-01-18 22:29:45 +00:00
nickysn
ec7fbcb271 * override the IN node for WebAssembly and avoid generating jump tables for the
IN nodes on that target

git-svn-id: branches/wasm@48176 -
2021-01-18 21:37:39 +00:00
nickysn
374882455b - disallow (i.e. generate internal errors) the use of a_cmp_*_label functions
for the WebAssembly target, because it doesn't support jumps to labels
* the previous implementation of a_cmp_*_label was a hack, that ignored the
  label parameter. These functions are now moved to the newly introduced
  a_cmp_*_stack functions.

git-svn-id: branches/wasm@48175 -
2021-01-18 21:32:35 +00:00
florian
16f201292c + remove try ... finally statements if the finally block is empty
git-svn-id: trunk@48174 -
2021-01-18 21:29:52 +00:00
nickysn
c781e03edf + implemented WebAssembly code generation for case statements
git-svn-id: branches/wasm@48173 -
2021-01-18 20:57:05 +00:00
nickysn
039e2f20b7 + override the case node for WASM. The actual code generation isn't implemented yet.
git-svn-id: branches/wasm@48172 -
2021-01-18 17:43:01 +00:00
michael
92c3aedac4 * Fix typo
git-svn-id: trunk@48171 -
2021-01-18 15:30:19 +00:00
michael
005448f305 * Some restructuring by Andrey, add fallback link
git-svn-id: trunk@48170 -
2021-01-18 15:27:58 +00:00
michael
38b6bb7385 * Patch from Andrey Sobol to improve inheritance tree
git-svn-id: trunk@48169 -
2021-01-18 13:23:52 +00:00
florian
d4ad618a70 * similiar fix to r48167 for OptPass1SXTH
git-svn-id: trunk@48168 -
2021-01-17 19:01:14 +00:00
florian
14ddc59edb * arm*: fix SxtbAndImm2Sxtb (now SxtbAndImm2Uxtb) optimization as proposed by Pierre and Gareth
git-svn-id: trunk@48167 -
2021-01-17 10:12:55 +00:00
florian
ecc3ce64ea * x86: some fixes to enable 8 and 16 bit operations
git-svn-id: trunk@48166 -
2021-01-16 22:46:25 +00:00
michael
4c22d66aac * Fix compilation
git-svn-id: trunk@48165 -
2021-01-16 16:55:48 +00:00
florian
8618a3b21f * simplify tx8664shlshrnode.pass_generate_code, it should not mess with the result type, this
is a matter of the type check pass

git-svn-id: trunk@48164 -
2021-01-16 15:38:29 +00:00
michael
b30d54b064 * Patches from Andrey Sobol, more control over warnings, improve class tree and resolving
git-svn-id: trunk@48163 -
2021-01-16 15:05:44 +00:00