Araq
87f0d534d6
fixes #12488 [backport]
2019-11-28 23:00:34 +01:00
Araq
2dea920379
ARC: implemented a simple cycle detector
2019-11-28 23:00:34 +01:00
Clyybber
7e747d11c6
Cosmetic compiler cleanup ( #12718 )
...
* Cleanup compiler code base
* Unify add calls
* Unify len invocations
* Unify range operators
* Fix oversight
* Remove {.procvar.} pragma
* initCandidate -> newCandidate where reasonable
* Unify safeLen calls
2019-11-28 17:13:04 +01:00
genotrance
010067f3cc
Substitute $nimbleDir in --path flags ( #12750 )
2019-11-28 13:58:38 +01:00
Andreas Rumpf
abe07eb75d
VM: improvements for var T/addr ( #12667 ); fixes #12489
2019-11-28 09:56:02 +01:00
Brian Wignall
a7aeabb9d2
[backport] Fix spelling typos ( #12755 )
2019-11-28 08:30:55 +01:00
Araq
72237e2bcf
ARC: ported the GC tests over to --gc:arc
2019-11-26 16:04:28 +01:00
Timothee Cour
dfe5d115fb
fixes #12663 staticRead now creates a dependency for rebuilds ( #12731 ) [backport]
...
* fix #12663 staticRead
* address comments
2019-11-25 14:44:13 +01:00
narimiran
015bec6254
Revert "ARC: another critical bugfix; temporary tuples we introduce for tuple unpackaging are not owning the data"
...
This reverts commit 8b2f8f5430 .
2019-11-24 09:50:52 +01:00
Araq
8b2f8f5430
ARC: another critical bugfix; temporary tuples we introduce for tuple unpackaging are not owning the data
2019-11-22 21:41:45 +01:00
Araq
c85e266d1d
ARC: yet another silly bugfix
2019-11-22 17:18:11 +01:00
Andreas Rumpf
64e8f050e1
implemented a new localPassc pragma ( #12706 )
2019-11-22 14:20:15 +01:00
Juan Carlos
c0eeea4f3c
Improve head comment on JS ( #12548 )
...
* Improve comment on JSGen, replace 12+ concatenations by 1 multiline string
* Peer review feedbacks https://github.com/nim-lang/Nim/pull/12548#discussion_r340051147
2019-11-22 11:37:30 +01:00
Andreas Rumpf
f7ba7c711a
added the --asm command line option for inspection of the produced assember code ( #12699 )
2019-11-21 22:53:51 +01:00
Andreas Rumpf
78e02d174d
fixes #12670 [backport] ( #12693 )
2019-11-20 19:08:16 +01:00
Andreas Rumpf
c98e0e22ad
conversions to unsigned numbers are not checked anymore; implements /… ( #12688 ) [backport]
...
* conversions to unsigned numbers are not checked anymore; implements / fixes https://github.com/nim-lang/RFCs/issues/175
* change the spec yet again to be less consistent but to make more sense; updated the changelog
2019-11-20 17:08:43 +01:00
Andreas Rumpf
85ffcd80c0
more arc improvements ( #12690 )
...
* ARC: bugfix for =destroy for inherited objects
* added code useful for debugging
2019-11-20 14:34:05 +01:00
Andreas Rumpf
56a00da34a
fixes #12612 [backport] ( #12681 )
2019-11-19 12:09:36 +01:00
Arne Döring
03fa9a9041
fix regression in align ( #12680 )
...
* fix regression in align
* add test typesym without type
2019-11-19 09:58:47 +01:00
Andreas Rumpf
5278cf80eb
ARC: closure bugfixes ( #12677 )
...
* ARC: closure bugfixes
* progress
* ARC closures: create =hooks for captured parameters
* ARC: always destroy constructions like tuples, arrays properly, even in edge cases
* fixes a regression
2019-11-18 12:33:44 +01:00
Andreas Rumpf
58f3e07b1a
fixes and changes the recently introduced 'alignas' to be 'align' ( #12666 )
...
* fixes and changes the recently introduced 'alignas' to be 'align'
* more improvements
2019-11-15 20:24:14 +01:00
Andreas Rumpf
76179cbec2
ARC: fixes leaking new() statement ( #12665 )
2019-11-15 12:38:11 +01:00
Miran
107b40f097
remove two asserts in int128.nim ( #12648 ) [backport]
...
Before this PR, `tests/misc/tconv.nim` fails when the compiler
is compiled without `-d:danger` flag.
Bear in mind that even without the asserts, the values outside of
a given range are still checked and a meaningful error message
(from `compiler/semexprs.nim`) is printed.
2019-11-15 12:37:43 +01:00
Andreas Rumpf
a14abc5708
ARC: solves phase ordering problems ( #12654 )
2019-11-14 23:19:18 +01:00
Araq
f22d3c75aa
ARC: closure inside object constructor now works
2019-11-13 23:29:21 +01:00
Araq
bcab3ed06c
ARC: handle closures like tuples consistently
2019-11-13 23:29:21 +01:00
Araq
3020e49b75
ARC: use the new .cursor annotation for 'up' pointers
2019-11-13 23:29:21 +01:00
Arne Döring
0496a666e2
implemented alignas pragma ( #12643 )
...
* implemented alignas pragma
* fix bootstrap
* generate c++ compatible syntax for alignas
* Make it work.
* Multiple alignof expressions. Implement top level alignof.
2019-11-13 08:22:41 +00:00
Andreas Rumpf
dfb020b174
.cursor implementation ( #12637 )
...
* cursors: first implementation
* added currently failing test
* .cursor works for doubly linked lists
* make -d:useMalloc work again
* added code to nil out refs in a destructor
* it's now called --gc:arc
* renderer.nim: render nkBreakState properly
* make simple closure iterators work without leaking
2019-11-12 15:05:36 +01:00
Araq
a4d43d7d0c
--gc:destructors: bugfixes
2019-11-09 20:34:51 +01:00
Araq
e835377d3f
inhibit silly warning about moving closure environments for performance
2019-11-09 20:33:23 +01:00
Andreas Rumpf
82e0765fc9
--gc:destructors improvements ( #12626 )
...
* do not cache the noDestructors transformation
* liftdestructor: improvements
* undo bugfix
2019-11-09 13:21:55 +01:00
cooldome
e1b1759439
fixes #5050 ; fixes #11826 ( #12606 ) [backport]
2019-11-07 14:47:26 +01:00
Arne Döring
94675c2378
backtick and export marker handling in eqIdent ( #12574 )
2019-11-07 14:40:44 +01:00
Andreas Rumpf
f69ee294c8
bugfix that enables the 'since' template [backport]
2019-11-07 14:20:39 +01:00
Andreas Rumpf
14a0182ca6
pragmas.nim: tiny code formatting
2019-11-07 14:20:39 +01:00
Andreas Rumpf
230c618eb9
error message: Nim calls it 'proc'
2019-11-07 09:41:04 +01:00
Dominik Picheta
675189c77f
Merge pull request #12613 from nim-lang/miran-unused-imports
...
Remove unused imports
2019-11-06 22:08:43 +00:00
Andy Davidoff
5544a13236
restore --define 🔑 val in nim.cfg and fix #12367 ( #12611 )
2019-11-06 21:26:03 +01:00
Andy Davidoff
738c957e94
add --clearNimblePath; fixes #12601 ( #12609 )
2019-11-06 20:40:22 +01:00
narimiran
cc3e9ca164
remove unused imports
2019-11-06 12:01:00 +01:00
Andy Davidoff
61889c604a
export nim.cfg parser ( #12602 )
2019-11-06 09:59:23 +01:00
Andreas Rumpf
46af8164c0
implement the --useVersion emulation feature
2019-11-04 21:58:26 +01:00
Clyybber
cf5c3f2400
Fixes #12379 ( #12591 ) [backport]
2019-11-04 20:57:14 +01:00
alaviss
558ecd1ca6
compiler/suggest: add variable support to con ( #12569 )
...
This allows for the type of a variable to be retrieved.
2019-11-04 18:29:26 +01:00
Andreas Rumpf
62fc3db9d7
--os:ios needs to imply defined(macosx) [backport] ( #12585 )
2019-11-04 13:05:03 +01:00
Juan Carlos
4c9a7e6f00
JS improve indent ( #12581 )
...
* JSgen make indent be all spaces, instead of mixed spaces and tabs, for generated JS
2019-11-03 08:03:03 +01:00
Andreas Rumpf
ceda586d88
fixes #12577 [backport] ( #12584 )
2019-11-03 07:55:55 +01:00
Tomohiro
4e0f12092e
Fixes #12536 ( #12568 ) [backport]
2019-11-02 08:21:49 +01:00
Andreas Rumpf
44a27ccfe1
--gc:destructors: simple closures work
2019-11-02 00:39:04 +01:00