summary refs log tree commit diff stats
path: root/compiler
Commit message (Collapse)AuthorAgeFilesLines
* better strict funcs, WIP (#15199)Andreas Rumpf2020-08-182-6/+22
| | | | | * better strict funcs, WIP * progress
* fix overloading issue with generic invocation (#15135)jcosborn2020-08-181-14/+1
| | | | | * fix overloading issue with generic alias * add test for inheritance depth
* Allow pragmas on parameters (#15178)Clyybber2020-08-111-2/+2
|
* Fix #8473 (#15169)Andreas Rumpf2020-08-1112-24/+30
|\ | | | | | | | | | | | | | | | | | | | | * Make explicit {.nimcall.} a seperate calling convention * Add testcase for #5688 * Fix bootstrapping * Remove little lies :) * Use typeflag instead
| * Use typeflag insteadClyybber2020-08-1010-18/+19
| |
| * Remove little lies :)Clyybber2020-08-081-5/+6
| |
| * Fix bootstrappingClyybber2020-08-081-3/+4
| |
| * Make explicit {.nimcall.} a seperate calling conventionClyybber2020-08-0810-16/+19
| |
* | fixes #15101 [backport] (#15171)Andreas Rumpf2020-08-081-3/+2
|/
* implement (#15153)cooldome2020-08-041-1/+1
|
* fixes a collect() bug reported on the forum (#15156) [backport:1.2]Andreas Rumpf2020-08-042-2/+2
|
* fixes #15129 [backport:1.2] (#15144)Andreas Rumpf2020-08-011-1/+1
|
* fixes #15130 (#15141)Andreas Rumpf2020-08-012-2/+6
| | | | | * fixes #15130 * you really have to copy from cursors
* fixes #15122 [backport:1.2] (#15139)Andreas Rumpf2020-08-011-0/+1
|
* fixes #15111 (#15136)Andreas Rumpf2020-08-015-24/+32
|
* fixes #15071 [backport] (#15131)Andreas Rumpf2020-07-311-3/+3
|
* fixes #15112 (#15124)Andreas Rumpf2020-07-301-8/+12
|
* cursor and mutation tracking fixes (#15113)Andreas Rumpf2020-07-306-363/+252
| | | | | | | | * fixes #15110 * fixes #15096 * prepare varpartitions for cursor inference * new cursor inference begins to work * make tests green
* fix overloading case with generic alias (#15116)jcosborn2020-07-301-1/+1
| | | | | * fix overloading case with generic alias * revert reorganization of tests
* Fix forward declaration issues in template/macro context (#15091)Clyybber2020-07-2913-93/+27
| | | | | | | | | | | | | | | | | | | | | | | * Fix forward declaration issues in template/macro context * Correct forward declaration resolving for overloads * Remove old dead code * WIP consistent gensym ids * Minimize diff * Remove obsoleted hack * Add templInstCounter to give unique IDs to template instantiations * Remove obsoleted code * Eh, init in myOpen, not myProcess... * Remove optNimV019 * Add testcase for #13484
* fixes #14616 [backport:1.2] (#15109)Andreas Rumpf2020-07-291-0/+4
|
* disable sink inference, only enable it for the stdlib. Reason: better source ↵Andreas Rumpf2020-07-281-1/+1
| | | | code compatibility (#15105)
* fixes #15076 (#15095)Andreas Rumpf2020-07-273-28/+36
|
* fix #14698 nkRecWhen caused internalAssert in semConstructFields when ↵Timothee Cour2020-07-271-1/+4
| | | | | | | | | | | generic type not mentioned in fields (#14709) * fix #14698 nkRecWhen caused internalAssert in semConstructFields when generic type not mentioned in fields * address comment * Update compiler/semtypinst.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* fix #11354 jsgen not carefully handle genAddr with nkHiddenAddr,nkStm… ↵Bung2020-07-271-1/+10
| | | | | | | | | | | | | | | | | | | (#15078) * fix #11354 jsgen not carefully handle genAddr with nkHiddenAddr,nkStmtListExpr; genAsgn with lvalue tyVar and rvalue tyPtr * correct logic * add test for #11354 * handle nkHiddenAddr when n.len == 1 * Update compiler/jsgen.nim * Update compiler/jsgen.nim * Apply suggestions from code review Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* fixes #14189 (#15080) [backport]Bung2020-07-271-2/+2
|
* fixes a closure iterator memory leaks, progress on #15076Araq2020-07-271-1/+1
|
* compiler: minor code cleanupsAraq2020-07-274-5/+4
|
* fixes #15038 [backport:1.2]Andreas Rumpf2020-07-262-46/+3
|
* fixes #15052Andreas Rumpf2020-07-261-0/+11
|
* strict func: much better error messages (#15068)Andreas Rumpf2020-07-252-35/+76
| | | | | * strict func: much better error messages * documented the 'strict funcs' mode
* writing to a location counts as "side effect"; implements ↵Andreas Rumpf2020-07-254-5/+252
| | | | https://github.com/nim-lang/RFCs/issues/234 (#15030)
* fix #14684 (#15059)Bung2020-07-251-0/+2
|
* fix #14534 (#15060) [backport]Bung2020-07-251-1/+1
|
* fix assignment to converted concept type (#15051)jcosborn2020-07-241-0/+4
| | | | | | | * fix assignment to converted concept type * check for resolved concepts * add extra test
* fixes #15056 [backport]Araq2020-07-241-2/+6
|
* fixes #15036Andreas Rumpf2020-07-232-3/+2
|
* fixes #15044 [backport:1.2]Andreas Rumpf2020-07-231-3/+5
|
* fixes #15026 [backport] (#15040)Andreas Rumpf2020-07-221-1/+1
| | | no test case since only a special case was affected and the special case got removed
* ARC: optimize the code better when --panics:off (#15031)Andreas Rumpf2020-07-211-18/+24
|
* cursor inference bugfixAndreas Rumpf2020-07-201-2/+3
|
* hotfix: firstOrd/lastOrd for 'tyLent' as it shows up in strange places, as usualAndreas Rumpf2020-07-201-2/+2
|
* fixes #14194 (#15023)Andreas Rumpf2020-07-201-1/+2
|
* 'isolate' builtin; refs https://github.com/nim-lang/RFCs/issues/244 (#15011)Andreas Rumpf2020-07-207-6/+127
|
* arc: cursors for simple for loop variables (#15008)Andreas Rumpf2020-07-172-3/+23
| | | | | * arc: cursors for simple for loop variables * merged devel
* Show that a variable is cursor in --expandArc (#15002)Clyybber2020-07-173-11/+11
|
* cursor inference: hotfix (#14999)Andreas Rumpf2020-07-161-8/+13
|
* disable debug outputAndreas Rumpf2020-07-151-1/+1
|
* An optimizer for ARC (#14962)Andreas Rumpf2020-07-157-30/+632
| | | | | | | | | | | | | | | | | | | | * WIP: an optimizer for ARC * do not optimize away destructors in 'finally' if unstructured control flow is involved * optimized the optimizer * minor code cleanup * first steps to .cursor inference * cursor inference: big steps to a working solution * baby steps * better .cursor inference * new feature: expandArc for easy inspection of the AST after ARC transformations * added topt_cursor test * adapt tests * cleanups, make tests green * optimize common traversal patterns * moved test case * fixes .cursor inference so that npeg compiles once again * cursor inference: more bugfixes Co-authored-by: Clyybber <darkmine956@gmail.com>
* Fix #14990 (#14991)Clyybber2020-07-151-2/+2
| | | | | * Fix #14990 * Add testcase