Andreas Rumpf
347a04606b
fixes #12885 [backport] ( #12895 )
2019-12-13 19:20:29 +01:00
cooldome
12d2b980e8
Fixes #12883 ( #12894 )
...
* fixes #12883
* fix comment
* add normalize
* fix
2019-12-13 13:30:27 +00:00
cooldome
1e1fd73530
fixes #12882 ( #12889 )
...
* fixes #12882
2019-12-13 11:24:05 +00:00
Andreas Rumpf
22b2684608
fixes #12148 [backport] ( #12888 )
2019-12-12 11:05:18 +01:00
cooldome
94289161f9
invoke createTypeBoundOps for constructors ( #12878 )
2019-12-11 10:46:20 +00:00
Andreas Rumpf
3524944e21
ARC: fixes cycle detection and move the .cursor attribute into closures ( #12872 )
2019-12-11 06:57:00 +01:00
Ico Doornekamp
e61d702206
Increased TInstr field sizes: allow long jumps and 65535 VM registers ( #12777 )
...
* Increased regBx size from 16 to 24 bits to increase jump range in the VM
from 32K to 8M instructions. Fixes #12727
* Increased VM TInst register field sizes to 16 bits to allow up to 65535 VM registers per proc
* Added test case for >255 VM registers
2019-12-10 19:04:02 +01:00
Andreas Rumpf
b8152b29e8
ARC: yet another bugfix ( #12871 )
2019-12-10 16:44:54 +01:00
Andreas Rumpf
61d89aae11
completes #12799 , fixes #12216 ( #12870 )
2019-12-10 12:09:48 +01:00
cooldome
13d232ec56
fixes #12827 ( #12829 ) [backport]
2019-12-10 07:08:46 +01:00
cooldome
5929c3da21
fixes #12820 ( #12828 )
2019-12-09 20:03:23 +01:00
Neelesh Chandola
e4f7656772
Support cross compiling from host to host ( #12859 )
2019-12-09 13:39:25 +01:00
Neelesh Chandola
7ebb2baa6c
Assigning template to var/let/const gives a proper error ( #12851 )
...
* Assigning template to var/let/const gives a proper error
* Fix style
2019-12-09 08:19:40 +00:00
Neelesh Chandola
ff5ef95414
Fixes #12832 ( #12842 ) [backport]
...
* Fix #12832
* nimVm -> nimvm in json.nim
* Use suggestSym() instead of markUsed(); Also use styleCheckUse() for finding style violations
2019-12-08 23:27:25 +01:00
Timothee Cour
23fc93fc2d
VM: allow ptr setting ptr fields ( #12825 )
2019-12-06 22:38:53 +01:00
cooldome
7213969901
fixes #12821 ( #12822 )
2019-12-06 09:56:54 +01:00
Neelesh Chandola
1db21721ec
Fixed objects being erroneously zeroed out before object construction ( #12814 ) [backport]
2019-12-05 17:31:51 +01:00
Andreas Rumpf
3fbb3bfd3f
ARC related bugfixes and refactorings ( #12781 )
2019-12-05 16:59:06 +01:00
cooldome
9b0e874687
fixes #12783 [backport] ( #12810 )
...
* fixes #12783
* Trigger build
2019-12-05 15:17:45 +01:00
Andreas Rumpf
0e7338d65c
better support for PROGMEM like annotations for lets/vars; fixes #12216 ( #12799 )
2019-12-05 13:45:16 +01:00
cooldome
0987872675
fixes #12804 ( #12809 )
2019-12-05 07:38:12 +01:00
Arne Döring
b0c06aa711
fix #12740 ( #12774 )
...
* fix #12740
* A different kind of a hack
* proper fix
* fix typo
2019-12-04 07:33:01 +00:00
cooldome
01c7409924
Fix external file recompilation ( #12802 )
2019-12-03 16:54:42 +01:00
genotrance
eed328856f
Path substitution for --out and --outdir ( #12796 )
...
* Enable pathSubs for --out and --outDir
* Cleanup
2019-12-03 09:26:18 +01:00
Tomohiro
378289c6a8
Fixes #12734 ( #12784 )
2019-12-01 23:21:36 +01:00
Ico Doornekamp
6aade97fe8
Refactored VM registerlayout. The size and location of the registers in ( #12775 )
...
the instructions are now all derived from a single definition, allowing
the register layout to be changed.
2019-11-30 13:38:36 +01:00
Jasper Jenkins
b6b8d540e3
[backport] always set fileInfoIdx.isKnownFile ( #12773 )
2019-11-29 22:36:01 +01:00
Araq
7e6e399d10
fixes #12669
2019-11-29 19:46:21 +01:00
Araq
b688250202
fixes #12766
2019-11-29 19:46:21 +01:00
genotrance
49db2a08ba
Fixes #12767 ( #12768 )
2019-11-29 10:18:44 +01:00
Araq
0996eb174f
fixes #11727 [backport]
2019-11-28 23:00:34 +01:00
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