summary refs log tree commit diff stats
path: root/compiler/ccgliterals.nim
Commit message (Collapse)AuthorAgeFilesLines
* Removed lib/system/allocators.nim. seqs_v2 and strs_v2 now uses ↵Ico Doornekamp2020-01-231-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | allocShared0. (#13190) * Cleanup, remove lib/system/allocators.nim. seqs_v2 and strs_v2 now use allocShared0 by default. * Fixed -d:useMalloc allocShared / reallocShared / deallocShared. These now use the alloc/dealloc/realloc implementation that also takes care of zeroing memory at realloc. * Removed debug printfs * Removed unpairedEnvAllocs() from tests/destructor/tnewruntime_misc * More mmdisp cleanups. The shared allocators do not need to zero memory or throw since the regular ones already do that * Introduced realloc0 and reallocShared0, these procs are now used by strs_v2 and seqs_v2. This also allowed the -d:useMalloc allocator to drop the extra header with allocation length. * Moved strs_v2/seqs_v2 'allocated' flag into 'cap' field * Added 'getAllocStats()' to get low level alloc/dealloc counters. Enable with -d:allocStats * *allocShared implementations for boehm and go allocators now depend on the proper *allocImpl procs
* better support for PROGMEM like annotations for lets/vars; fixes #12216 (#12799)Andreas Rumpf2019-12-051-14/+17
|
* Cosmetic compiler cleanup (#12718)Clyybber2019-11-281-9/+9
| | | | | | | | | | | | | | | | | | * 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
* int128 on firstOrd, lastOrd and lengthOrd (#11701)Arne Döring2019-08-071-1/+3
| | | | * fixes #11847
* fixes #11048Araq2019-04-171-4/+0
|
* Less ropes (#10979)Arne Döring2019-04-111-1/+1
| | | | | * convert ropecg to a macro * fewer intermediate ropes
* gc:destructors: make strutils compile (but still crashes)Andreas Rumpf2019-02-221-7/+12
|
* gc:destructors further progressAndreas Rumpf2018-11-291-1/+1
|
* --gc:destructors: hello world example compiles and runsAraq2018-11-161-1/+1
|
* --gc:destructors: next steps; WIPAndreas Rumpf2018-07-211-3/+15
|
* WIP: strings/seqs based on destructorsAndreas Rumpf2018-07-171-2/+6
|
* C code generator compiles againAndreas Rumpf2018-05-121-3/+3
|
* sem pass compiles againAndreas Rumpf2018-05-121-1/+1
|
* implemented v2 string literalsAraq2018-04-031-2/+12
|
* C codegen: preparations for different seq and string implementationsAndreas Rumpf2018-04-031-0/+81