Commit Graph

69668 Commits

Author SHA1 Message Date
florian
f29ff58ab9 + get_int_value 2024-04-16 23:11:16 +02:00
florian
48eeaf00a4 + fold also divisons involving pointer constants (those nodes are internally generated only) 2024-04-15 23:02:28 +02:00
florian
2e9556f2eb + fold also constant pointer operations on nil nodes 2024-04-15 22:52:32 +02:00
florian
b3c1f294ba + propagate also widechar/pointer constants 2024-04-14 10:34:37 +02:00
florian
0aa851b7f7 * run constant propagation multiple times if needed and if slow optimizations are turned on 2024-04-14 10:00:20 +02:00
florian
5c46b5116d + also fold nil nodes when used as pointer constants 2024-04-13 22:52:46 +02:00
florian
1222456c13 * allow [] for constant set constraints, resolves #37020 2024-04-13 22:28:54 +02:00
Rika Ichinose
0fe3633044 Simplify shortstr_concat(_multi). 2024-04-12 19:41:35 +00:00
florian
13fc4075f5 + propagate pointer constants 2024-04-12 21:40:04 +02:00
Michaël Van Canneyt
3f8bbd3b00 * Various small fixes 2024-04-12 21:27:14 +02:00
Michaël Van Canneyt
799b90ca3f * Use writehelp to display error 2024-04-12 18:00:07 +02:00
Michaël Van Canneyt
4cdabbb4c6 * Fix writing of union types 2024-04-12 17:59:16 +02:00
Sven/Sarah Barth
b0d61558e3 * fix #40725: pass along whole array constructor to the Insert() so that it's converted with the correct checks
+ added test
2024-04-12 17:34:58 +02:00
Sven/Sarah Barth
e76c5d96d8 * Fix #40716: only add helpers if the type doesn't belong to the current object/class/record hierarchy
+ added test
2024-04-12 17:34:58 +02:00
Sven/Sarah Barth
7a1ef994b4 * fix #40721: correctly set up the generic defs when parsing fields, especially important when dealing with anonymous fields
+ added tests
2024-04-12 17:34:58 +02:00
Sven/Sarah Barth
0e9efd07ef * extend read_anon_type() so that it can take a genericdef as well 2024-04-12 17:34:58 +02:00
Sven/Sarah Barth
eaf24269bc * check that the corresponding genericdef of the adjusted def is indeed valid 2024-04-12 17:34:58 +02:00
Sven/Sarah Barth
550397b982 * fix #40708: when creating the sub-arraydefs for comma separated arrays, ensure that the new sub array also has the generic related information set up correctly
+ added test
2024-04-12 17:34:58 +02:00
Michaël Van Canneyt
326d92589a * Add some callback types 2024-04-12 16:46:10 +02:00
Michaël Van Canneyt
e044aae4dc * Handle "object" as argument type 2024-04-12 15:02:47 +02:00
Michaël Van Canneyt
51ffa2220e * Better callback and type handling 2024-04-12 13:36:01 +02:00
Michaël Van Canneyt
388a55904a * Handle complex nested types in arguments 2024-04-11 19:15:41 +02:00
Michaël Van Canneyt
dfafb1f777 * Remove some debug statements 2024-04-11 17:07:42 +02:00
Michaël Van Canneyt
5bc1cfa9bc * -r/chrome option 2024-04-11 17:05:41 +02:00
Michaël Van Canneyt
90cac5536f * Some corrections in GetInvokeNameFromTypeName 2024-04-11 17:05:19 +02:00
Michaël Van Canneyt
bd08aa6197 * Correct InvokenameFromAlias 2024-04-11 16:16:34 +02:00
Michaël Van Canneyt
ea64142bac * Better support for Alias types 2024-04-11 15:35:01 +02:00
Michaël Van Canneyt
c720e30fac * Add dictionary-typed result support 2024-04-11 12:12:25 +02:00
Michaël Van Canneyt
70b2f29b92 * Do not generate code for types that are used in a ignored definiton 2024-04-11 11:51:48 +02:00
Michaël Van Canneyt
2a9eccec65 * Definitions marked [ChromeOnly] are not available in regular Javascript 2024-04-11 10:45:10 +02:00
florian
74bed63e28 + test for fc3d71bba3 2024-04-10 23:01:25 +02:00
Rika Ichinose
fc3d71bba3 Check bounds in SetLength(shortstring). 2024-04-10 21:06:14 +03:00
Michaël Van Canneyt
dc7130d078 * Sequence result support 2024-04-10 18:54:01 +02:00
Michaël Van Canneyt
05118c077f * Test for sequence result 2024-04-10 17:49:46 +02:00
Michaël Van Canneyt
a08b15831b * Add sequence support 2024-04-10 16:31:35 +02:00
Michaël Van Canneyt
b40c20b53b * Do not generate definition for aliased types 2024-04-10 11:19:18 +02:00
Michaël Van Canneyt
41f2dd9c26 * Support ArrayBuffer(View) 2024-04-10 10:55:46 +02:00
Michaël Van Canneyt
9f72de4276 * Remove some useless warnings 2024-04-10 10:55:46 +02:00
J. Gareth "Curious Kit" Moreton
3cae3e7e48 * x86: Registers are now allocated properly during a FuncMov2Func
optimisation
2024-04-09 20:51:24 +00:00
J. Gareth "Curious Kit" Moreton
18eec3055e * x86: More accurate register tracking in CheckJumpMovTransferOpt 2024-04-09 20:51:24 +00:00
Michaël Van Canneyt
513a461911 * Guard against argument names that are keywords 2024-04-09 18:08:36 +02:00
marcoonthegit
972703ab45 * update copyright year with 5 years. 2024-04-09 17:47:43 +02:00
Michaël Van Canneyt
23bcb38138 * Correctly create constructor definitions 2024-04-09 17:13:43 +02:00
Michaël Van Canneyt
3075a820a1 * Correctly create constructor definitions 2024-04-09 17:04:09 +02:00
Michaël Van Canneyt
38dac868e0 * Fix stringifier 2024-04-09 15:13:05 +02:00
Michaël Van Canneyt
43487dac24 * Support for enum return type 2024-04-09 10:34:15 +02:00
florian
fd68d3bfbb * ensure that left and right have a result type set in tx86addnode.pass_1, resolves #40727 2024-04-08 22:53:34 +02:00
Rika Ichinose
bad42011ab Better i386.inc:fpc_ansistr_unique. 2024-04-08 18:47:18 +00:00
Michaël Van Canneyt
2703d96741 * Handle maplike interface definition 2024-04-08 18:15:57 +02:00
marcoonthegit
5120a3a0c3 * dc_pen and dc_brush in getstockobject section, reported on forum 2024-04-08 11:56:26 +02:00