tinygo/compiler
Ayke van Laethem 79dae62c78 compiler,runtime: check for channel size limits
This patch is a combination of two related changes:

 1. The compiler now allows other types than `int` when specifying the
    size of a channel in a make(chan ..., size) call.
 2. The compiler now checks for maximum allowed channel sizes. Such
    checks are trivially optimized out in the vast majority of cases as
    channel sizes are usually constant.

I discovered this issue when trying out channels on AVR.
2020-03-13 16:15:36 -07:00
..
llvmutil compiler/llvmutil: move constant pointer packs into constant globals 2020-02-24 23:27:04 +01:00
asserts.go compiler,runtime: check for channel size limits 2020-03-13 16:15:36 -07:00
calls.go Improved blocking (#513) 2019-09-22 17:58:00 +02:00
channel.go compiler,runtime: check for channel size limits 2020-03-13 16:15:36 -07:00
check.go compiler: check for non-static allocas 2020-02-24 23:11:07 +01:00
compiler.go compiler: add debug info for local variables 2020-03-11 14:55:04 -07:00
defer.go compiler: fix deferred calls to exported functions 2020-02-27 16:35:31 +01:00
errors.go compiler: improve "function redeclared" error 2020-01-04 10:24:14 +01:00
func.go all: refactor compile options 2019-11-04 11:45:35 +01:00
gc.go compiler: move GC passes to the transform package 2019-11-25 09:14:31 +01:00
goroutine-lowering.go compiler: improve error locations in goroutine lowering 2019-12-23 08:33:04 +01:00
goroutine.go all: refactor compile options 2019-11-04 11:45:35 +01:00
inlineasm.go compiler,riscv: implement CSR operations as intrinsics 2020-01-10 08:04:13 +01:00
interface.go compiler: fix assertion on empty interface 2019-12-26 09:20:22 +01:00
interrupt.go all: add compiler support for interrupts 2020-01-20 21:19:12 +01:00
llvm.go compiler: refactor func lowering to the transform package 2019-12-04 22:19:49 +01:00
map.go compiler,runtime: support operations on nil map 2020-02-26 20:42:01 +01:00
optimizer.go all: add compiler support for interrupts 2020-01-20 21:19:12 +01:00
sizes.go compiler: don't crash when encountering types.Invalid 2019-12-30 13:40:37 +01:00
symbol.go compiler: do not emit debug info for extern globals 2020-01-20 20:30:42 +01:00
syscall.go Add initial FreeBSD support 2019-12-29 10:48:28 +01:00
volatile.go compiler: implement volatile operations as compiler builtins 2019-05-14 12:24:01 +02:00