Files
tinygo/compiler/testdata
Ayke van Laethem c93ddb630b compiler: skip context parameter when starting regular goroutine
Do not store the context parameter (which is used for closures and
function pointers) in the goroutine start parameter bundle for direct
functions that don't need a context parameter. This avoids storing the
(undef) context parameter and thus makes the IR to start a new goroutine
simpler in most cases.

This reduces code size in the channel.go and goroutines.go tests.
Surprisingly, all test cases (when compiled with -target=microbit) have
a changed binary, I haven't investigated why but I suppose the codegen
is slightly different for the runtime.run function (which starts the
main goroutine).
2021-05-26 20:21:08 +02:00
..
2021-01-15 14:43:43 +01:00
2021-05-09 17:40:13 +02:00
2021-05-09 17:40:13 +02:00
2021-04-12 12:07:42 +02:00
2021-05-09 17:40:13 +02:00
2021-03-28 14:00:37 +02:00
2021-05-09 17:40:13 +02:00
2021-01-15 14:43:43 +01:00
2021-05-09 17:40:13 +02:00
2021-03-22 11:35:06 +01:00
2021-05-09 17:40:13 +02:00
2021-05-09 17:40:13 +02:00