tinygo/transform
Ayke van Laethem 3edcdb5f0d compiler: do not emit nil checks for loading closure variables
Closure variables are allocated in a parent function and are thus never
nil. Don't do a nil check before reading or modifying the value.

This commit results in a slight reduction in code size in some test
cases: calls.go, channel.go, goroutines.go, json.go, sort.go -
presumably wherever closures are used.
2021-05-26 20:21:08 +02:00
..
testdata
allocs.go
allocs_test.go
coroutines.go
errors.go
func-lowering.go
func-lowering_test.go
gc.go
gc_test.go
globals.go
globals_test.go
goroutine_test.go
interface-lowering.go
interface-lowering_test.go
interrupt.go
interrupt_test.go
llvm.go
maps.go
maps_test.go
optimizer.go
panic.go
panic_test.go
reflect.go
reflect_test.go
rtcalls.go
rtcalls_test.go
stacksize.go
stacksize_test.go
transform.go
transform_test.go
util.go
wasm-abi.go
wasm-abi_test.go