tinygo/compiler
Ayke van Laethem ec73bd6a26
compiler: optimize runtime.stringToBytes calls
This optimization makes sure the following pattern doesn't do a heap
allocation (assuming Write doesn't modify the slice):

    var w *machine.UART = ...
    w.Write([]byte("foo"))

As long as Write doesn't modify the slice and LLVM can detect this, a
call to runtime.stringToBytes with the necessary allocation + copy is
avoided.
2018-10-09 14:18:12 +02:00
..
calls.go compiler: use a fresh context for every compilation 2018-10-08 20:18:12 +02:00
compiler.go compiler: use a fresh context for every compilation 2018-10-08 20:18:12 +02:00
optimizer.go compiler: optimize runtime.stringToBytes calls 2018-10-09 14:18:12 +02:00
sizes.go compiler: refactor compiler into separate package 2018-09-22 20:32:28 +02:00
util.go compiler: refactor compiler into separate package 2018-09-22 20:32:28 +02:00