tinygo/testdata
Ayke van Laethem bbb2909283 compiler: merge runtime.typecodeID and runtime.typeInInterface
This distinction was useful before when reflect wasn't properly
supported. Back then it made sense to only include method sets that were
actually used in an interface. But now that it is possible to get to
other values (for example, by extracting fields from structs) and it is
possible to turn them back into interfaces, it is necessary to preserve
all method sets that can possibly be used in the program in a type
assert, interface assert or interface method call.

In the future, this logic will need to be revisited again when
reflect.New or reflect.Zero gets implemented.

Code size increases a bit in some cases, but usually in a very limited
way (except for one outlier in the drivers smoke tests). The next commit
will improve the situation significantly.
2021-03-23 14:32:33 +01:00
..
cgo cgo: add support for variadic functions 2021-02-11 09:51:15 +01:00
libc WASI & darwin: support env variables based on libc 2021-02-24 14:22:17 +01:00
alias.go fix bug in IR regarding type aliases 2019-09-20 10:35:49 +02:00
alias.txt fix bug in IR regarding type aliases 2019-09-20 10:35:49 +02:00
atomic.go compiler: add support for atomic operations 2020-05-28 15:11:46 +02:00
atomic.txt compiler: add support for atomic operations 2020-05-28 15:11:46 +02:00
binop.go compiler: fix non-int integer constants 2020-12-27 16:13:36 +01:00
binop.txt compiler: fix non-int integer constants 2020-12-27 16:13:36 +01:00
calls.go compiler: support all kinds of deferred builtins 2021-01-24 09:28:09 +01:00
calls.txt compiler: implement func value and builtin defers 2020-07-31 01:48:57 +02:00
channel.go compiler: fix a few crashes due to named types 2020-05-27 16:14:41 +02:00
channel.txt runtime: add cap and len support for chans 2020-05-12 01:17:27 +02:00
coroutines.go runtime: add cheap atomic condition variable 2020-10-14 13:35:00 +02:00
coroutines.txt testdata, sync: add sync.Mutex test to testdata/coroutines.go 2020-05-09 01:08:56 +02:00
float.go compiler: test float to int conversions and fix upper-bound calculation 2021-01-19 14:02:32 +01:00
float.txt compiler: test float to int conversions and fix upper-bound calculation 2021-01-19 14:02:32 +01:00
gc.go avr: use a garbage collector 2020-01-27 19:01:55 +01:00
gc.txt runtime: implement a simple mark/sweep garbage collector 2018-11-18 19:18:39 +01:00
init.go testdata: fix formatting 2020-05-12 01:17:27 +02:00
init.txt interp: implement runtime.sliceCopy 2019-09-24 18:16:43 +02:00
init_multi.go testdata: add more test cases in testdata 2018-10-25 20:37:35 +02:00
init_multi.txt testdata: add more test cases in testdata 2018-10-25 20:37:35 +02:00
interface.go compiler: add support for anonymous type asserts 2020-03-29 08:39:07 +02:00
interface.txt compiler: add support for anonymous type asserts 2020-03-29 08:39:07 +02:00
map.go runtime: allow ranging over a nil map 2020-10-29 21:53:41 +01:00
map.txt compiler,runtime: support operations on nil map 2020-02-26 20:42:01 +01:00
math.go runtime: add support for math package 2019-02-05 19:37:21 +01:00
math.txt runtime: add support for math package 2019-02-05 19:37:21 +01:00
print.go runtime: use dedicated printfloat32 2020-10-02 11:26:22 +02:00
print.txt runtime: use dedicated printfloat32 2020-10-02 11:26:22 +02:00
reflect.go compiler: merge runtime.typecodeID and runtime.typeInInterface 2021-03-23 14:32:33 +01:00
reflect.txt extend stdlib to allow import of more packages (#1099) 2020-06-23 11:56:28 +02:00
slice.go compiler: fix a few crashes due to named types 2020-05-27 16:14:41 +02:00
slice.txt compiler: compare slice against nil 2018-10-20 17:22:51 +02:00
sort.go implement reflect.Swapper 2020-10-23 21:37:35 +02:00
sort.txt implement reflect.Swapper 2020-10-23 21:37:35 +02:00
stdlib.go os: implement virtual filesystem support 2020-05-13 08:08:57 +02:00
stdlib.txt os: implement virtual filesystem support 2020-05-13 08:08:57 +02:00
string.go compiler: fix named string to []byte slice conversion 2020-07-29 12:13:37 +02:00
string.txt compiler,runtime: implement []rune to string conversion 2019-08-11 15:45:35 +02:00
structs.go compiler: support recursive types 2019-10-13 23:07:47 +02:00
structs.txt compiler: support recursive types 2019-10-13 23:07:47 +02:00
zeroalloc.go testdata: fix formatting 2020-05-12 01:17:27 +02:00
zeroalloc.txt add code to handle programs which use heap allocations but never hit the GC 2019-11-17 15:14:51 +01:00