Commit Graph

59219 Commits

Author SHA1 Message Date
svenbarth
d05997db74 * fix compilation after r45461
git-svn-id: trunk@45464 -
2020-05-22 12:45:26 +00:00
svenbarth
90c1bf2e12 * add tests\test\unit\types directory to list of tested directories
git-svn-id: trunk@45463 -
2020-05-22 12:45:20 +00:00
michael
4247c8b1d0 * Test for otherwise without semicolon before it (laz sources)
git-svn-id: trunk@45462 -
2020-05-22 12:44:34 +00:00
michael
b1e78f1e75 * Add missing calling conventions
git-svn-id: trunk@45461 -
2020-05-22 12:10:06 +00:00
michael
4dcae91474 * Trim content of directives
git-svn-id: trunk@45459 -
2020-05-22 05:49:59 +00:00
florian
d2d2904d78 * make more use of is_typeparam
git-svn-id: trunk@45458 -
2020-05-21 18:40:59 +00:00
florian
51da470757 * constrained type parameters are not undefined defs, resolves #37107
git-svn-id: trunk@45457 -
2020-05-21 18:19:08 +00:00
Jonas Maebe
4caa471a24 * implemented a_load_undefined_cgpara for LLVM, fixes LLVM code generator
after the changes to optimize unused parentfp parameters

git-svn-id: trunk@45456 -
2020-05-21 10:56:39 +00:00
marcus
571095773a Amiga: optimized video unit drawing
git-svn-id: trunk@45455 -
2020-05-21 10:33:17 +00:00
yury
627fcb4354 * Do not use the LOC_VOID location to indicate unused parameters.
* Added the tprocdef.parentfpsym property. Set parentfpsym.varstate to vs_read instead of using the pio_needs_parentfp flag.
* Replaced tcgcallparanode.push_zero_sized_value_para by tparamanager.has_strict_proc_signature.

git-svn-id: trunk@45454 -
2020-05-21 09:36:40 +00:00
michael
a409f63a55 * Fix use of defines
git-svn-id: trunk@45453 -
2020-05-21 08:59:56 +00:00
nickysn
56632b720c + Z80: handle the flags register in TAoptBaseCpu.RegModifiedByInstruction
git-svn-id: trunk@45452 -
2020-05-20 21:21:26 +00:00
nickysn
88b6bbe6cc * compilation fixed after r45450
git-svn-id: trunk@45451 -
2020-05-20 21:02:46 +00:00
nickysn
cc47a49c81 + Z80: handle all instructions that modify registers, that are not an operand in TAoptBaseCpu.RegModifiedByInstruction
git-svn-id: trunk@45450 -
2020-05-20 20:57:59 +00:00
nickysn
2507c1ace6 * Reg1ReadDependsOnReg2 moved to TAoptBaseCpu
* use Reg1ReadDependsOnReg2 in TAoptBaseCpu.RegModifiedByInstruction to handle properly Z80 subregisters

git-svn-id: trunk@45449 -
2020-05-20 20:20:10 +00:00
florian
4f707c3d7e * patch by Karl-Michael Schindler to update the German help files, resolves #37122
git-svn-id: trunk@45448 -
2020-05-20 20:10:15 +00:00
michael
c3218e19c7 * Fix for samesite
git-svn-id: trunk@45447 -
2020-05-20 09:36:53 +00:00
michael
3c75ae82d2 * Add support for SameSite attribute of cookie (bug ID 0037115)
git-svn-id: trunk@45446 -
2020-05-20 09:34:44 +00:00
Mattias Gaertner
fa267f90a6 pas2js: doc about await
git-svn-id: trunk@45445 -
2020-05-20 08:11:52 +00:00
michael
74e65f77bc * Fix bug ID #37118
git-svn-id: trunk@45444 -
2020-05-20 07:32:09 +00:00
Mattias Gaertner
18fdc0675e pas2js: function await(atype; p:TJSPromise):atype
git-svn-id: trunk@45443 -
2020-05-20 07:28:42 +00:00
Mattias Gaertner
b92ffac29a pas2js: built-in function await(const expr: T): T
git-svn-id: trunk@45442 -
2020-05-19 21:53:46 +00:00
florian
15baa272fe * exceptions are side effects which must be considered in boolean expressions
git-svn-id: trunk@45441 -
2020-05-19 20:34:41 +00:00
michael
5cc7622161 * Uncomment SO_REUSEPORT
git-svn-id: trunk@45440 -
2020-05-19 16:56:57 +00:00
yury
9d1c814387 * Added the thlcgobj.a_load_undefined_cgpara() method to pass an undefined value as a parameter to a routine. The generic version passes the 0/nil value if the parameter's location is not a register.
* Use a_load_undefined_cgpara() to load values for unused parameters.

git-svn-id: trunk@45439 -
2020-05-19 14:14:16 +00:00
yury
30e61067a0 * It is needed to mark $parentfp as used for all targets.
git-svn-id: trunk@45438 -
2020-05-19 14:09:54 +00:00
yury
afc568cf93 * Fixed the jvm target after r45436.
git-svn-id: trunk@45437 -
2020-05-19 14:01:19 +00:00
yury
2808873d1b * Reworked the optimization of unused $parentfp for nested routines.
- Do not remove the $parentfp parameter as was done in the previous optimization approach. Instead when $parentfp is unused to the following:
      - On the caller side: Omit passing the value for $parentfp for targets where tcgcallparanode.push_zero_sized_value_para=false (classic CPU targets). 
          Pass 0/nil as $parentfp for targets where tcgcallparanode.push_zero_sized_value_para=true;
      - On the callee side: Prevent allocation of registers/resources for $parentfp.
  - When possible keep $parentfp in a register.
  - Set the pio_nested_access flag in tprocinfo.set_needs_parentfp() to properly handle deep nesting levels;

git-svn-id: trunk@45436 -
2020-05-19 13:17:47 +00:00
Mattias Gaertner
a501be1b2b pas2js: async procedure modifier
git-svn-id: trunk@45435 -
2020-05-19 12:44:11 +00:00
Mattias Gaertner
d9734aa533 fcl-passrc: fixed parsing case statement without semicolon before else, added comments
git-svn-id: trunk@45434 -
2020-05-19 12:43:44 +00:00
Mattias Gaertner
375cfbf25c undo
git-svn-id: trunk@45433 -
2020-05-19 12:43:30 +00:00
Mattias Gaertner
23e7ced100 fcl-passrc: fixed parsing case statement without semicolon before else, added comments
git-svn-id: trunk@45432 -
2020-05-19 12:42:25 +00:00
Mattias Gaertner
a2342c710e fcl-passrc: resolver: check procedure modifiers of proc body and declration, procedure modifier async
git-svn-id: trunk@45431 -
2020-05-19 09:02:11 +00:00
florian
9b54588d75 + PXorPXor2PXor optimization
git-svn-id: trunk@45430 -
2020-05-18 21:28:45 +00:00
michael
c3e10be898 * Test case (currently failing) for else else in case statement
git-svn-id: trunk@45427 -
2020-05-18 18:18:52 +00:00
michael
9db7a9e8c9 * Fix include file, trim file
git-svn-id: trunk@45426 -
2020-05-18 17:30:38 +00:00
michael
ac208ab689 * clarify dubious case statements
git-svn-id: trunk@45425 -
2020-05-18 17:29:48 +00:00
Jonas Maebe
8d18c1792e * fixed {$unitpath xxx} directive with absolute paths
git-svn-id: trunk@45424 -
2020-05-18 17:20:13 +00:00
Mattias Gaertner
a7ecde8bb2 fcl-js: write async function and await expression
git-svn-id: trunk@45423 -
2020-05-18 15:49:31 +00:00
michael
8e8bbf4411 * Support generating API
git-svn-id: trunk@45422 -
2020-05-18 15:08:49 +00:00
michael
feb861e73a * Patch from Fabio Girardi to support ifNoneChanged header using enumerated
git-svn-id: trunk@45421 -
2020-05-18 15:07:13 +00:00
michael
2639e8af7e * Fix warning about visibility change
git-svn-id: trunk@45420 -
2020-05-18 15:06:13 +00:00
michael
45d08916f2 * test for method aliases (function)
git-svn-id: trunk@45419 -
2020-05-18 13:12:29 +00:00
michael
7649e205aa * test for method aliases
git-svn-id: trunk@45418 -
2020-05-18 12:59:05 +00:00
Mattias Gaertner
f74eb4692f pas2js: safecall for procedure
git-svn-id: trunk@45417 -
2020-05-18 11:00:06 +00:00
Mattias Gaertner
fef402f6e6 pas2js: safecall for procedure
git-svn-id: trunk@45416 -
2020-05-18 10:46:54 +00:00
michael
ce6789bdbf * Add OnComment
git-svn-id: trunk@45415 -
2020-05-18 08:28:14 +00:00
michael
0fd06ded8d * Reverse onUncaughtException result
git-svn-id: trunk@45414 -
2020-05-18 07:40:09 +00:00
nickysn
edcc14a5ce * Z80: JR can be both conditional and uncoditional jump, just like JP
git-svn-id: trunk@45411 -
2020-05-17 23:38:23 +00:00
Jonas Maebe
a88eee4080 * fixed unitdir directive for relative paths in case the current module's
path is not set, broken by r43312 (mantis #37095)

git-svn-id: trunk@45410 -
2020-05-17 21:27:00 +00:00