summary refs log tree commit diff stats
path: root/tests/vm
Commit message (Collapse)AuthorAgeFilesLines
* Unpack mSlice tupleconstr for static openarrays (#20615)Jason Beetham2022-10-221-0/+4
|
* closes #19969; add testcase for #19969 #15952 #16306 (#20610)ringabout2022-10-211-0/+27
| | | closes #19969; add testcase
* Implemented `mSlice` on the VM allowing `toOpenArray` to work at compile ↵Jason Beetham2022-10-201-0/+38
| | | | | | | | | | | | | | | | | | | | | | | | | time. (#20586) * Implemented opcSlice to make 'toOpenArray' work on the VM * Added nkOpenArray for VM to reduce bodgeness * Fixed range issues and erraneous comments * Range check correctly for openArrays in opcLdArr * Inverted logic for ldArr checking * vm now supports slicing strings * Added string tests * Removed usage of 'nkOpenArray' and redundant operations * Refactored vmSlice implementation, removing redundant and incorrect code * Made tuples go throw opcWrObj for field assignment * All strkinds should be considered for openarrays
* 'lock levels' are deprecated, now a noop (#20539)ringabout2022-10-111-1/+1
| | | | | * 'lock levels' are deprecated, now a noop * fixes tests
* closes #12994; add testcase (#20511)ringabout2022-10-081-0/+23
|
* moderate system cleanup & refactor (#20355)metagn2022-09-281-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * system refactor, move out 600 lines * compilation, slice, backwardsindex, misc_num moved out of system * some procs/types moved into arithmetics, basic_types * system no longer depends on syncio * some procs moved around to fit with their surroundings * make exceptions an import, old ops to misc_num * move instantiationInfo back * move back nim version, fix windows echo * include compilation * better docs for imported modules, fix unsigned ops also remove ze, ze64, toU8, toU16, toU32 with nimPreviewSlimSystem * fix terminal * workaround IC test & weird csize bug, changelog * move NimMajor etc back to compilation, rebase for CI * try ic fix * form single `indices`, slim out TaintedString, try fix IC * fix CI, update changelog, addQuitProc * fix CI * try fix CI * actually fix CI finally hopefully * Update lib/system/compilation.nim Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com> * update kochdocs * hopefully fix csize uses for slimsystem * fix tquit Co-authored-by: ringabout <43030857+ringabout@users.noreply.github.com>
* remove echo statements in tests (part 1) (#20178)ringabout2022-08-238-40/+6
| | | | | | | | | | | * remove echo statements * Update tests/vm/triangle_array.nim * Update tests/vm/tyaytypedesc.nim Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com> Co-authored-by: konsumlamm <44230978+konsumlamm@users.noreply.github.com>
* [vm]fixes #15974 #12551 #19464 #16020 #16780 #16613 #14553 #19909 #18641 ↵flywind2022-06-222-1/+245
| | | | | | | | | | | | | | | (#19902) [backport] * revert #12217 since the root problem seems to have been fixed; fix #15974;fix #12551; fix #19464 * fix #16020; fix #16780 * fix tests and #16613 * fix #14553 * fix #19909; skip skipRegisterAddr * fix #18641
* [semfold] fix #19199; properly fold uint to float conversion (#19890) [backport]flywind2022-06-131-0/+6
| | | fix #19199; properly fold float conversion
* add mm to compilesettings; deprecate gc (#19394)flywind2022-01-161-1/+2
|
* style usages part one (openarray => openArray) (#19321)flywind2022-01-041-1/+1
| | | | | * style usages (openArray) * revert doc changes
* fixes #19198 [backport:1.6] (#19209)Andreas Rumpf2021-12-041-2/+21
| | | | | * fixes #19198 [backport:1.6] * added a test case
* followup #18453 (#18582)Timothee Cour2021-07-251-15/+15
|
* Fixed template const tuple unpacking (#18562)Jason Beetham2021-07-231-0/+10
|
* fix #18310 system.== in vm for NimNode (#18313)Timothee Cour2021-06-211-0/+11
| | | | | | | * fix #18310 == in vm * fixup * fixup
* fix tests/vm/tcastint.nim which used non-sensical `when defined nimVM` (and ↵Timothee Cour2021-05-081-11/+21
| | | | contained wrong tests) (#17954)
* fix https://github.com/timotheecour/Nim/issues/718: CompileTime is not ↵Timothee Cour2021-05-051-2/+5
| | | | cached apparently (#17940)
* add logging to help investigate why tests/vm/tconst.nim is flaky (#17934)Timothee Cour2021-05-041-1/+1
|
* typo: nonexistant => nonexistent (#17918)Timothee Cour2021-05-021-2/+2
| | | | | * typo: nonexistant => nonexistent * fix test (ordering differs because of https://github.com/nim-lang/Nim/issues/17910)
* misc fixes: remove `forceConst` (obsolete by static), add more ↵Timothee Cour2021-05-013-43/+37
| | | | | | | | | | | | | runnableExamples to system (#17896) * misc fixes * add runnableExamples for compileOption * add runnableExamples for runnableExamples * move tconsteval => tconst * cleanup
* follow up #17518 (#17726)flywind2021-04-151-0/+8
|
* fix #16693: testament spec nimout too lax (#16698)flywind2021-04-042-4/+7
| | | Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* close #9622 add testcase (#17557)flywind2021-03-291-0/+30
| | | | | * fix nim js cmp fails at CT * close #9622 add testcase
* close #15696 (#17518)flywind2021-03-251-0/+25
|
* add overload `add(a: var string, b: openArray[char])` (#15951)Timothee Cour2021-03-011-13/+12
| | | Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Fixes #17039 - ldObj checks node/nodeAddr access (#17123)Saem Ghani2021-02-231-0/+10
| | | | | | Checked field expressions, such as an object variant field access results in occasionally broken address analysis crashing the VM. This guard added here mimics guarded access in ldObjAddr as well. This is to prevent a crash, while a fix is devised.
* make copySign for js consistent with other backends (#16609)Timothee Cour2021-02-221-11/+3
| | | | | | * make copySign work more robustly in js * improve tests * improve tests/vm/tcastint.nim
* compilesettings: add libpath (#16997)Timothee Cour2021-02-121-13/+10
| | | | | | | | | | | * compilesettings: add libpath * add test * changelog * fixup Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* close #8015: const array indexing zeroes data in object variants at runtime ↵Timothee Cour2021-01-211-0/+57
| | | | (#16782)
* fix #14340 (#16386)Timothee Cour2021-01-011-0/+17
|
* use doAssert in tests (#16486)flywind2020-12-2812-24/+24
|
* [backport => 1.0] fix #16428 vmops now works for generic procs (#16429)Timothee Cour2020-12-221-0/+4
| | | | | * fix #16428 vmops now works for generic procs * remove duplication
* fixes #16069; [backport:1.2] [backport:1.4] (#16115)Andreas Rumpf2020-11-241-1/+19
| | | | | * fixes #16069; refs https://github.com/nim-lang/RFCs/issues/257 [backport:1.2] [backport:1.4] * make tests green again
* fix #16025 repr now consistent: does not insert trailing newline (#16034)Timothee Cour2020-11-191-3/+2
|
* Revert "follow #16009 VM supports cast nil to ptr (#16012)"Andrey R (cooldome)2020-11-171-30/+0
| | | | This reverts commit fec19c980e36e62747eb119f0740cb785e858ac3.
* follow #16009 VM supports cast nil to ptr (#16012)flywind2020-11-171-0/+30
| | | | | * follow #16009 VM supports cast nil to ptr * more testcase
* close #11637(add testcase for #11637) (#15879)flywind2020-11-081-0/+52
| | | | | * close #11637(add testcase for #11637) * Update tests/vm/t11637.nim
* fix #15463 (#15831)flywind2020-11-051-1/+11
|
* Closure iterators are not supported by VM (#15818)flywind2020-11-021-0/+9
|
* fixes #15717flywind2020-11-021-0/+19
|
* [backport] fix #15595 procvar `==` works in VM (#15724)Timothee Cour2020-10-261-0/+24
|
* fix #15704 #15597 wrong VM register was freed (#15705)Timothee Cour2020-10-261-0/+130
| | | | | | | | | | | | | * fix #15704 #15597 wrong VM register was freed * same treatment for nkCheckedFieldExpr * note concerning HighRegisterPressure * bump NimPatch * Update lib/system.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* close #8007 (#15695)Timothee Cour2020-10-231-0/+51
|
* fix #15662 (#15678)cooldome2020-10-231-0/+5
| | | | | | | * fix #15662 * alternative fix * fix spacing
* Add tests to #15363 (#15633)Danil Yarantsev2020-10-191-0/+26
|
* followup after #15529 and #15534 (#15536)Timothee Cour2020-10-101-8/+3
|
* close #13081 (#15529)Timothee Cour2020-10-091-0/+31
| | | | | * close #13081 * fixup
* Remove deprecated stuff from stdlib (#14699)Miran2020-06-172-2/+2
| | | | | | | * update to the latest Jester * remove deprecated procs from some stdlib modules * 'criterion' is not maintained anymore and relies on obsolete stuff
* `nim doc --backend:js`, `nim doc --doccmd:-d:foo`, `nim r --backend:js`, ↵Timothee Cour2020-05-111-0/+1
| | | | | | | | | | `--doccmd:skip` + other improvements (#14278) * `nim doc --backend:js|cpp...` `nim doc --doccmd:'-d:foo --threads:on'` `nim r --backend:cpp...` (implies --run --usenimcache) * --usenimcache works with all targets * --docCmd:skip now skips compiling snippets; 50X speedup for doc/manual.rst
* tslow_tables: wait for an additional 2 seconds (#14266)alaviss2020-05-071-1/+1
| | | | | | | | This test runtime tends to hover around the 5s mark depending on how loaded the system currently is. This causes the test to fail a lot during CI, per analytics: https://dev.azure.com/nim-lang/Nim/_test/analytics?definitionId=1&contextType=build Give the test an extra 2 seconds to account for unrelated overhead.