summary refs log tree commit diff stats
path: root/tests/vm
Commit message (Collapse)AuthorAgeFilesLines
* int128 on firstOrd, lastOrd and lengthOrd (#11701)Arne Döring2019-08-071-1/+1
| | | | * fixes #11847
* fixes #9829 (#11849)Arne Döring2019-08-041-0/+15
|
* VM exception fixes (#11868)Oscar Nihlgård2019-08-021-0/+14
|
* Fix VM conversion to var type [bugfix] (#11866)Oscar Nihlgård2019-08-011-0/+5
|
* fixes tcompiletimerange [bugfix] (#11720)Andreas Rumpf2019-07-121-5/+4
|
* [bugfix] VM: finally do inheritance properlyAraq2019-07-121-10/+24
|
* fixes #11610 (#11659)Andreas Rumpf2019-07-051-2/+14
|
* VM can now cast integer type arbitrarily. (#11459) [feature]Arne Döring2019-06-101-0/+128
|
* make megatest work with 'koch boot -d:release' tooAraq2019-06-051-0/+4
|
* make fullpaths the default in error messages and stack traces for mor… ↵Andreas Rumpf2019-06-051-1/+1
| | | | | | | | | | | | (#11385) * make fullpaths the default in error messages and stack traces for more convenient development * split up -d:release into -d:release and -d:danger flags * workaround a Nim config parser bug * fixes an old nim config parser bug * make megatest green again * make nimpretty tests work again * make nimsuggest green
* close #8199 by adding a testnarimiran2019-05-291-0/+25
|
* make tests greennarimiran2019-05-281-0/+1
|
* tableinstatic test: make it arch-independednarimiran2019-05-271-2/+1
|
* Allow void macro result (#11286)Arne Döring2019-05-213-5/+5
| | | | | * allow void macro result * add test for void macro result type
* Fixes #11045. Assigning a proc to const and invoking. (#11076)Aditya Siram2019-05-041-0/+18
|
* Compiler plugin for implementing incremental computation in user space (#10819)cooldome2019-04-112-0/+47
| | | | | | | | | | This plugin provides essential building block for implementing incremental computations in your programs. The idea behind incremental computations is that if you do the same calculation multiple times but with slightly different inputs you don't have to recompute everything from scratch. Also you don't want to adopt special algorithms either, you would like to write your code in standard from scratch manner and get incrementality for free when it is possible. The plugin computes the digest of the proc bodies, recursively hashing all called procs as well . Such digest with the digest of the argument values gives a good "name" for the result. Terminology loosely follows paper "Incremental Computation with Names" link below. It works well if you have no side effects in your computations. If you have global state in your computations then you will need problem specific workarounds to represent global state in set of "names" . SideEffect tracking in Nim also useful in this topic. Classical examples: Dashboard with ticking data. New data arrives non stop and you would like to update the dashboard recomputing only changed outputs. Excel spreadsheet where user changes one cell and you would like to recompute all cells that are affected by the change, but do not want to recompute every cell in the spreadsheet.
* fixes #10886 [backport] (#10897)Andreas Rumpf2019-03-231-0/+18
|
* added system.default in order to prevent the abstraction inversion that ↵Andreas Rumpf2019-03-051-1/+26
| | | | 'template default(T): untyped = (var x: T; x)' causes
* disable compile-time FFI supportAndreas Rumpf2019-02-231-1/+1
|
* FFI at CT (#10150)Timothee Cour2019-02-231-0/+81
| | | | | | * enable FFI at CT * rename useFFI=>nimHasLibFFI; improve formatting rawExecute traceCode * disable libffi on windows (works for win32, not yet win64)
* 32 bit fixes (#10608)Arne Döring2019-02-132-6/+11
|
* Rework exception handling in the VM (#10544)LemonBoy2019-02-081-0/+20
| | | | | | | | | | | | | | | | | * Rework exception handling in the VM Make the safepoint handling more precise and less forgiving. The new code is clearer and more commented. Perform cleanup on `return`. The no-exception-thrown case in a try block should be slightly faster since we don't parse the whole set of exceptions every time. More tests. * Fix silly error that broke a few tests * Testament doesn't like files having the same name * Remove test case that failed compilation to js
* Fix vm signed xor (#10519)Arne Döring2019-02-011-5/+11
| | | | | | | | | | * fix #10482 * undo changes * fix for bitwise not * remove dead opcode
* vm fix for bitwise signed ints (#10507)cooldome2019-01-311-0/+39
| | | | | | | | * fixes #10482 * add missing file * bug fix
* Harmonize the var/let and const handling (#10410)LemonBoy2019-01-231-0/+11
| | | Fixes #10333
* Fix compileTime pragma applying to whole var/let section (#10389)Neelesh Chandola2019-01-221-0/+15
|
* Object downconversion in VM should not copy (#10378)LemonBoy2019-01-221-0/+17
| | | | | | Hopefully the type-check phase already rejected all the invalid conversions by the time we execute the VM bytecode. Problem reported by chrisheller on the Nim Forum
* Support system.reset in vm (#10400)Oscar Nihlgård2019-01-211-0/+28
|
* add `isNamedTuple`; make $(1, 2) be (1, 2) instead of (Field0: 1, Field1: 2) ↵Timothee Cour2019-01-081-8/+6
| | | | | | | | | | | | | which leaked implementation detail (#10070) * add `isNamedTuple`; make $(1, 2) be (1, 2) instead of leaking implementation detail (Field0: 1, Field1: 2) fixes this: #8670 (comment) /cc @alehander42 @Vindaar @mratsim * Note: isNamedTuple is useful in other places, eg #10010 (comment) * move isNamedTuple to helpers.nim to avoid exposing new symbol to system.nim * remove workaround in tests/vm/tissues.nim failing test now that #10218 was makes it work
* Check there are no side effects before optimizing away compile time ↵deech2018-12-311-0/+42
| | | | expressions. (#9934)
* add `getCurrentCompilerExe` to vmops (eg allows to get nim compiler at CT); ↵Timothee Cour2018-12-182-0/+49
| | | | add tests for vmops (#9925)
* Testament: refactoring; makes the test joiner greenAraq2018-12-111-2/+3
|
* lots of small changesArne Döring2018-12-111-1/+1
|
* megatest can be executedArne Döring2018-12-113-5/+20
|
* require errormsg to be specified before file.Arne Döring2018-12-112-4/+3
|
* fix #9872: setLen now works properly at CT [backport]Timothee Cour2018-12-081-0/+30
|
* cleanup tests; don't use non-working 'msg' spec fieldAraq2018-11-238-8/+8
|
* more eyewashArne Döring2018-11-231-0/+7
|
* updated tests to be executedArne Döring2018-11-233-7/+12
|
* make run the default action of a test in testerArne Döring2018-11-232-0/+0
|
* Fixes #9671 (#9750)Randy Smith2018-11-191-1/+0
|
* Of operator in vm fixes [backport] (#9717)cooldome2018-11-151-0/+51
| | | | | | * fixes #9701 * fixes #9702 * optimize of statement to bool
* #9348 Merge some small test files (#9561)Ian2018-10-303-27/+30
| | | | * Consolidated types issue tests * Consolidated vm issue tests
* Remove install.txt and readme.txt (#9521)Utwo2018-10-281-2/+2
| | | | | | | | * Remove install.txt and readme.txt * Refactor tests that use readme.txt * Tests open own source code
* Merge pull request #9496 from cooldome/vm_float_castsArne Döring2018-10-281-0/+47
|\ | | | | VM: add int <-> float casts of the same size
| * Add testAndrii Riabushenko2018-10-241-0/+47
| |
* | Improve dumpLisp macro (#9515)Kaushal Modi2018-10-271-7/+7
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Improve dumpLisp macro - Remove commas from the lisp representation of the AST. - Make the dumpLisp output "pretty" and indented. - Improve docs of `dumpTree` and `dumpLisp` macros. With: dumpLisp: echo "Hello, World!" Output before this commit: StmtList(Command(Ident("echo"), StrLit("Hello, World!"))) Output after this commit: (StmtList (Command (Ident "echo") (StrLit "Hello, World!"))) * Re-use the traverse proc inside treeRepr for lispRepr too - Add module-local `treeTraverse` proc. - Also fix treeRepr/dumpTree not printing nnkCommentStmt node contents. * More doc string updates * Allow unindented lispRepr output for tests * Update a test affected by the lispRepr change * Fix dumpTree * Add note about lispRepr and dumpLisp to changelog [ci skip]
* Merge tests into a larger file (part 5 of ∞) (#9368)Miran2018-10-162-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * merge magics * merge metatype tests * merge method tests * merge objects tests * change `import future` to `import sugar` Nim in Action tests are left with `import future`, to ensure compatibility. * merge overload tests * merge proc tests * merge procvar tests * merge range tests * merge seq tests * merge sets tests * remove wrong assert from `tsets3` * fix `jsTests` * better fix
* Field checks for everybody (#8957)LemonBoy2018-10-091-0/+3
| | | | | | | | | | | | | | | | | | | | | * Field checks for JS backend * Clean nkCall nodes with no arguments Generating a nkEmpty in place of no arguments makes no sense form the AST point of view and also trips up the VM codegen. * Field checks for VM backend * Test case for #6612 This patchset fixes #6612 * Add test case for LHS double evaluation * Prevent LHS double-eval for JS backend * Prevent double evaluation in VM backend
* Fix for VM codegen with static[T] typesLemonBoy2018-09-231-0/+10
| | | | Fixes #9043