summary refs log tree commit diff stats
path: root/compiler/vmgen.nim
Commit message (Collapse)AuthorAgeFilesLines
* remove tyOpt, mOpt (#14636)Timothee Cour2020-06-121-2/+0
| | | | | * remove tyOpt, mOpt * fixup
* CT sizeof(+friends) for {.importc, completeStruct.} types, enable ABI static ↵Timothee Cour2020-04-231-3/+6
| | | | | | | | | | | checks (#13926) * -d:checkabi obsolete (ABI check now enforced); add `addTypeHeader` helper * cleanups * import sizeof at CT for {.completeType.} * address comments; revert default enabling of -d:checkAbi for now * mimportc_size_check.nim => msizeof5.nim; merge mabi_check.nim into msizeof5.nim; refactor * all pragmas in errmsgs should be written: '.importc' (un-ambiguous and less verbose than {.importc.})
* fix operators containing percent for VM usage (#13536)Arne Döring2020-03-111-2/+2
| | | | * fixes #13513 * merge tarithmetics in tarithm
* Remove dead magics (#13551)Arne Döring2020-03-031-32/+3
|
* EndsInNoReturn in expressions extension, fixes #13490 (#13520)cooldome2020-02-281-2/+0
| | | | * fix #13490
* VM: support importc var, ptr/pointer types, cast int <=> ptr/pointer (#12877)Timothee Cour2020-01-051-4/+30
| | | | | | | | | | | | | | * VM: allow certain hardcoded special var variables at CT * VM: allow all importc var, cast[int](ptr) * fix tests tests/vm/tstaticprintseq.nim, tests/cpp/t8241.nim * VM: == works for ptr/pointer nodes * bugfix: ==, cast now also works for pointer, not just ptr * VM supports cast PtrLikeKinds <=> PtrLikeKinds / int * improve cname handling * fixup + bug fix * VM: support cast from ref to int * address comment: opcLdGlobalDeref => opcLdGlobalDerefFFI * defensive check against typ == nil
* Refactored VM registerlayout. The size and location of the registers in (#12775)Ico Doornekamp2019-11-301-20/+20
| | | | the instructions are now all derived from a single definition, allowing the register layout to be changed.
* fixes #11727 [backport]Araq2019-11-281-2/+7
|
* fixes #12488 [backport]Araq2019-11-281-1/+4
|
* Cosmetic compiler cleanup (#12718)Clyybber2019-11-281-262/+256
| | | | | | | | | | | | | | | | | | * 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
* VM: improvements for var T/addr (#12667); fixes #12489Andreas Rumpf2019-11-281-8/+14
|
* fixes #12612 [backport] (#12681)Andreas Rumpf2019-11-191-6/+9
|
* ARC: solves phase ordering problems (#12654)Andreas Rumpf2019-11-141-2/+1
|
* fixes #12547 [backport]Araq2019-10-291-0/+7
|
* VM: fixes register leaks [backport] (#12510)Andreas Rumpf2019-10-251-0/+2
|
* VM: fixes most ran-out-registers problems [backport] (#12485)Andreas Rumpf2019-10-241-19/+38
|
* fixes #12310 [backport] (#12470)Andreas Rumpf2019-10-201-2/+6
|
* fixes #12294 [backport]Andreas Rumpf2019-09-301-1/+0
|
* Fix spellings (#12277) [backport]Federico Ceratto2019-09-271-1/+1
|
* fixes #10981; fixes #7261 (#12217)Andreas Rumpf2019-09-191-1/+4
|
* add nodeId proc to macros (#11456)Arne Döring2019-09-181-0/+2
| | | | | | | | * add nodeId proc to macros * add doc comment. * fix typo
* rename cast opcodes, fix for 32bit cast, fix python pretty printer (#12207)Arne Döring2019-09-181-5/+9
|
* fixes #12195Araq2019-09-171-18/+17
|
* Small ast.nim cleanup (#12156)Clyybber2019-09-091-9/+9
| | | | | * Remove sonsLen * Use Indexable
* Merge branch 'devel' into uint-range-checksAndreas Rumpf2019-09-021-1/+1
|\
| * fix min/max for float numbers (#12068)Arne Döring2019-09-021-1/+1
| |
* | Merge branch 'devel' into uint-range-checksAraq2019-09-021-2/+1
|\|
| * Fix to int to biggest int (#12066)Arne Döring2019-08-271-2/+1
| | | | | | | | | | * fix to(Biggest)Int * kill toFloat magics as well
* | minor stuffArne Döring2019-08-271-10/+4
|/
* int128 on firstOrd, lastOrd and lengthOrd (#11701)Arne Döring2019-08-071-3/+3
| | | | * fixes #11847
* fixes #9829 (#11849)Arne Döring2019-08-041-1/+1
|
* [refactoring] remove unused imports in the compiler and in some stdlib modulesAraq2019-07-181-4/+2
|
* [bugfix] VM: finally do inheritance properlyAraq2019-07-121-11/+12
|
* there is only one style -- my styleAraq2019-07-101-38/+38
|
* fixes #10901Araq2019-07-101-0/+2
|
* Offsetof fixes (#11690)Arne Döring2019-07-091-2/+6
| | | | | | | | * first fixes * more tests and fixes * code normalization
* fixes #11610 (#11659)Andreas Rumpf2019-07-051-4/+5
|
* fixes #8405: -d:useNimRtl now works even when {.rtl.} procs are used at ↵Timothee Cour2019-07-031-3/+7
| | | | compile time; CTFFI now works with {dynlib} (#11635)
* [refactoring] remove zeroExtend and friends from the compiler builtins. (#11531)Arne Döring2019-06-241-15/+0
| | | | | * remove zeroExtend and friends from the compiler builtins. * fix jssys
* VM can now cast integer type arbitrarily. (#11459) [feature]Arne Döring2019-06-101-31/+15
|
* Remove immediate pragma (#11308)Arne Döring2019-05-291-3/+1
| | | | | * remove immediate from tests * remove immediate from the compiler
* fixes #11268 (#11299)Andreas Rumpf2019-05-221-2/+3
|
* rename tyExpr/tyStmt to tyUntyped/tyTyped (#11227)Arne Döring2019-05-111-3/+3
|
* fixes #6855Araq2019-05-101-4/+7
|
* Replace countup(x, y) with x .. yClyybber2019-05-071-1/+1
|
* Replace countup(x, y-1) with x ..< yClyybber2019-05-071-6/+6
|
* introduce temporary <//> for 'owned' to get this compile with 0.19 (#11145)Andreas Rumpf2019-05-021-15/+26
| | | | | | | | * introduce temporary <//> for 'owned' to get this compile with 0.19 * make newTable[string, owned Node]() compile (but it crashes) * make sink/owned parameters consistent * make actiontable test compile again * VM: support sytem.move; makes tests green
* added system.unown to make 'owned' sane to use in practice; later on we ↵Araq2019-04-291-1/+1
| | | | might change the type inference rules to make it more convenient
* Fix #11111 nkIdentsDef left in vmgen (#11126)Mamy Ratsimbazafy2019-04-271-2/+2
| | | fixes #11111
* fixes #10886 [backport] (#10897)Andreas Rumpf2019-03-231-7/+16
|