Commit graph

2901 commits

Author SHA1 Message Date
Folkert
02e161f839 add dict tests with string keys/values 2021-02-14 15:49:40 +01:00
Folkert
7f8ca150f5 always inline RocDict functions 2021-02-14 15:11:47 +01:00
Folkert
89821a83af use nicer casting method 2021-02-14 15:05:58 +01:00
Folkert
62d0bc62ce deallocate dict when it becomes empty 2021-02-14 14:49:01 +01:00
Folkert
cceb2a353d Merge remote-tracking branch 'origin/trunk' into dict-insert 2021-02-14 13:42:07 +01:00
Richard Feldman
0db8e2dbf2
Merge branch 'trunk' into gen_dev/funcs 2021-02-13 23:38:33 -05:00
Folkert
821df8bff8 Merge remote-tracking branch 'origin/trunk' into gen-equality 2021-02-14 03:44:31 +01:00
Folkert
67aaaf4623 remove some dead code 2021-02-14 03:44:00 +01:00
Folkert
b7ae151d6e clippy 2021-02-14 03:18:27 +01:00
Folkert
210bd18fe3 implement decref, fuse RC operations 2021-02-14 03:16:11 +01:00
Folkert
c9e2958947 add refcount check 2021-02-14 00:42:42 +01:00
Folkert
27c3a7c8f2 only refcount filled cells 2021-02-14 00:33:07 +01:00
Folkert
49bba11e06 refactor findIndex and insert 2021-02-14 00:25:44 +01:00
Folkert
b2e626ab0c Dict.insert WIP 2021-02-13 23:32:01 +01:00
Folkert
84e4cbc859 hook up compare with dict wrapper 2021-02-13 19:49:22 +01:00
Folkert
e7efcb74e6 Merge remote-tracking branch 'origin/gen-equality' into dict-insert 2021-02-13 19:45:33 +01:00
Folkert
63b4d1dd65 don't reset slots when making unique 2021-02-13 19:42:35 +01:00
Folkert
16143bc06e first steps for Dict.keys and Dict.values 2021-02-13 18:35:36 +01:00
Folkert
927ba11e64 implement inc/dec for dicts 2021-02-13 16:56:00 +01:00
Folkert
685ae620a1 Merge remote-tracking branch 'origin/trunk' into dict-insert 2021-02-13 16:41:23 +01:00
Folkert
e9f2d9d608 work on refcount 2021-02-13 16:41:13 +01:00
Folkert
ac5eb0f6f6 Dict.get 2021-02-13 16:12:45 +01:00
Brendan Hansknecht
d5d067be1f
Merge branch 'trunk' into gen_dev/funcs 2021-02-12 21:12:08 -08:00
Brendan Hansknecht
c609df2d74 gen_dev: generate all functions they may be need if a function pointer is used 2021-02-12 19:42:08 -08:00
Brendan Hansknecht
95be1a1b6d gen_dev: add ability to pass arguments to functions 2021-02-12 19:32:34 -08:00
Folkert
c04b3846c7 fix typo 2021-02-13 03:04:49 +01:00
Folkert
0f53665afa fix tests 2021-02-13 02:37:41 +01:00
Brendan Hansknecht
01a86aaa9c Merge branch 'trunk' into gen_dev/funcs 2021-02-12 17:04:49 -08:00
Folkert
b8ec7d1e69 Merge remote-tracking branch 'origin/trunk' into trunk 2021-02-13 02:03:45 +01:00
Folkert
bacc7a9c6b fuse RC operations on records/closures 2021-02-13 02:03:36 +01:00
Brendan Hansknecht
fc3bbb9fbc Merge remote-tracking branch 'origin' into gen_dev/funcs 2021-02-12 17:02:36 -08:00
Brendan Hansknecht
5a3ec0c0ac Switch to base pionter offset addressing.
This change will be needed to deal with passing function arguments.
Without this change, we would need to do multiple passes due to function
arguments being on top of the stack and conflicting with variables.
2021-02-12 17:02:25 -08:00
Richard Feldman
5b83ec719e
Merge branch 'trunk' into gen-equality 2021-02-12 19:37:09 -05:00
Richard Feldman
014d6d3186
Merge branch 'trunk' into type-annotation-parse-errors 2021-02-12 19:32:34 -05:00
Richard Feldman
959ac9b140
Fix typo 2021-02-12 19:31:18 -05:00
Richard Feldman
baaf621b88
drop commented-out dbg! 2021-02-12 19:22:38 -05:00
Richard Feldman
548c3c3f15
fix typo 2021-02-12 19:21:38 -05:00
Richard Feldman
76a9461cfe
Merge branch 'trunk' into gen-equality 2021-02-12 19:13:01 -05:00
Folkert
cba729a933 use inline always strategically 2021-02-13 01:10:37 +01:00
Folkert
afe2f51660 basic versions of contains and remove 2021-02-12 23:47:02 +01:00
Folkert
b4ab02f23a actually generate RC dec code for dict values 2021-02-12 21:39:20 +01:00
Folkert
574e472978 hide debug init stuff in a macro 2021-02-12 21:24:49 +01:00
Folkert
d9d31f6cb4 getting and setting of key/value/tag 2021-02-12 21:16:28 +01:00
Folkert
ac78ed9dfc add dict capacity to its stack size 2021-02-12 19:16:55 +01:00
Folkert
ee21f86f8f hooking everything up 2021-02-12 17:18:06 +01:00
Folkert de Vries
2d3bd43ad2
Merge branch 'trunk' into type-annotation-parse-errors 2021-02-12 15:34:31 +01:00
Folkert
c8b7596c8c clippy 2021-02-12 15:28:51 +01:00
Folkert
870fd88165 remove Syntax variant on TInParens 2021-02-12 15:23:29 +01:00
Folkert
b204154fec improve messages for tag names 2021-02-12 15:22:11 +01:00
Folkert
19d3e43f09 better indentation errors (use original location for error) 2021-02-12 13:47:56 +01:00