tinygo/compiler/testdata
Ayke van Laethem bcce296ca3 transform: optimize reflect.Type Implements() method
This commit adds a new transform that converts reflect Implements()
calls to runtime.interfaceImplements. At the moment, the Implements()
method is not yet implemented (how ironic) but if the value passed to
Implements is known at compile time the method call can be optimized to
runtime.interfaceImplements to make it a regular interface assert.

This commit is the last change necessary to add basic support for the
encoding/json package. The json package is certainly not yet fully
supported, but some trivial objects can be converted to JSON.
2021-03-28 14:00:37 +02:00
..
basic.go compiler: refactor and add tests 2021-01-15 14:43:43 +01:00
basic.ll builder, compiler: compile and cache packages in parallel 2021-03-21 11:51:35 +01:00
float.go compiler: test float to int conversions and fix upper-bound calculation 2021-01-19 14:02:32 +01:00
float.ll builder, compiler: compile and cache packages in parallel 2021-03-21 11:51:35 +01:00
interface.go compiler: add interface IR test 2021-03-28 14:00:37 +02:00
interface.ll transform: optimize reflect.Type Implements() method 2021-03-28 14:00:37 +02:00
pointer.go compiler: refactor and add tests 2021-01-15 14:43:43 +01:00
pointer.ll builder, compiler: compile and cache packages in parallel 2021-03-21 11:51:35 +01:00
slice.go compiler: add some more slice tests 2021-03-22 11:35:06 +01:00
slice.ll compiler: do not emit nil checks for *ssa.Alloc instructions 2021-03-22 11:35:06 +01:00
string.go compiler: add tests for strings 2021-03-22 11:35:06 +01:00
string.ll compiler: add tests for strings 2021-03-22 11:35:06 +01:00