tools/ssa/interp
Alan Donovan 7e7d99b4c9 go.tools/ssa/interp: fixes to enable running tests of package "encoding".
Running the interpreter on (most of) the tests package in
"encoding" unearthed a couple of ssa.builder bugs, already
fixed.  This CL contains the interpreter fixes that were
required.  (The "encoding" tests aren't added to the suite
since they're slow.)

Added intrinsics for:
        math.Exp
        math.Min
        hash/crc32.haveSSE42
        (reflect.Type).Field
        (reflect.Type).NumField
        (reflect.Type).NumMethod
        reflect.New
        (reflect.Value).NumMethod
        syscall.RawSyscall (returns ENOSYS)
        reflect.Set (a no-op)

Treat unsafe.Pointer -> *T conversions by returning new(T).
This is incorrect but at least preserves type-safety,
which is sufficient for these tests.

hashmap: treat nil *hashmap as an empty map.

R=gri
CC=golang-dev
https://golang.org/cl/12901046
2013-09-12 11:00:31 -04:00
..
testdata go.tools/ssa: fix a bug building SSA code for ast.CompositeLit. 2013-08-22 10:13:51 -04:00
external.go go.tools/ssa/interp: fixes to enable running tests of package "encoding". 2013-09-12 11:00:31 -04:00
external_plan9.go go.tools: add go/types, ssa, and cmd/vet 2013-05-17 13:20:39 -07:00
external_unix.go go.tools: add go/types, ssa, and cmd/vet 2013-05-17 13:20:39 -07:00
external_windows.go go.tools: add go/types, ssa, and cmd/vet 2013-05-17 13:20:39 -07:00
interp.go go.tools/ssa/interp: implement unary negation of complex numbers. 2013-09-10 12:08:55 -04:00
interp_test.go go.tools/importer: generalize command-line syntax. 2013-09-06 18:13:57 -04:00
map.go go.tools/ssa/interp: fixes to enable running tests of package "encoding". 2013-09-12 11:00:31 -04:00
ops.go go.tools/ssa/interp: fixes to enable running tests of package "encoding". 2013-09-12 11:00:31 -04:00
reflect.go go.tools/ssa/interp: fixes to enable running tests of package "encoding". 2013-09-12 11:00:31 -04:00
value.go go.tools: add copyright messages to source files. 2013-08-27 18:49:13 -04:00