tools/go/ssa
Alan Donovan 8463610142 go/ssa/interp: enable support for Example tests
1. Added intrinsic for os.Pipe to avoid use of "unsafe".  This makes
   Example tests work in the interpreter, fixing the broken "unicode"
   package (which recently sprouted some Examples) and allowing us to
   enable tests for:

      encoding/csv
      flag
      path
      text/scanner
      unicode/utf8

   The implementation of os.Pipe may require tweaking for non-Linux platforms.

2. Added intrinsic for strings.Index to avoid assembly dependency.

3. Added dumb intrinsic for testing۰runExample to work around a bug in
   go/ssa/testmain.go that requires an invasive fix
   (Until then, the output of Example functions will not be checked.)

Change-Id: I6374c9c47aa802275b7cdc98525e057f5db0615a
Reviewed-on: https://go-review.googlesource.com/18191
Reviewed-by: Alan Donovan <adonovan@google.com>
2015-12-28 21:19:28 +00:00
..
interp go/ssa/interp: enable support for Example tests 2015-12-28 21:19:28 +00:00
ssautil go/ssa: rename some API features (incompatible change) 2015-08-31 22:20:12 +00:00
testdata go/ssa: emit DebugRefs for x, y = z() assignments 2015-10-23 10:25:05 +00:00
blockopt.go go.tools/go/ssa: don't attempt fusion on single-pred blocks with φ-nodes 2014-04-24 09:08:21 -04:00
builder.go go/ssa: fix crash when building map[*struct{}]bool{{}: true} 2015-11-23 19:08:17 +00:00
builder_test.go go/ssa: rename some API features (incompatible change) 2015-08-31 22:20:12 +00:00
const.go go.tools: use golang.org/x/... import paths 2014-11-10 08:50:40 +11:00
create.go go/ssa: rename some API features (incompatible change) 2015-08-31 22:20:12 +00:00
doc.go go/ssa: update package doc to mention ssautil.CreateProgram 2015-07-27 18:48:45 +00:00
dom.go go.tools/go/ssa: use bytes.Buffer instead of io.Writer. 2014-01-28 17:48:10 -05:00
emit.go go/ssa: fix incorrect SSA code for composite literals 2015-03-17 14:26:39 +00:00
example_test.go go/ssa: rename some API features (incompatible change) 2015-08-31 22:20:12 +00:00
func.go go/ssa: rename some API features (incompatible change) 2015-08-31 22:20:12 +00:00
lift.go go.tools: use golang.org/x/... import paths 2014-11-10 08:50:40 +11:00
lvalue.go go/ssa: fix incorrect SSA code for composite literals 2015-03-17 14:26:39 +00:00
methods.go go/ssa: rename some API features (incompatible change) 2015-08-31 22:20:12 +00:00
mode.go go/ssa: standardize parsing of BuilderMode flags. 2015-02-18 18:34:24 +00:00
print.go go/ssa: rename some API features (incompatible change) 2015-08-31 22:20:12 +00:00
sanity.go go/ssa: rename some API features (incompatible change) 2015-08-31 22:20:12 +00:00
source.go go/ssa/ssautil: break ssa->loader dependency 2015-04-14 18:01:36 +00:00
source_test.go x/tools: disable tests not supported on Android 2015-08-06 00:36:03 +00:00
ssa.go go/ssa: use sync.Once instead of sync.atomic 2015-09-18 15:11:51 +00:00
stdlib_test.go go/ssa: rename some API features (incompatible change) 2015-08-31 22:20:12 +00:00
testmain.go go/ssa/interp: enable support for Example tests 2015-12-28 21:19:28 +00:00
testmain_test.go go/loader: eliminate ImportFromBinary option and PackageCreated hook 2015-04-17 18:58:17 +00:00
util.go go/ssa: fix build (remove unused params to types.NewSignature) 2015-06-13 00:57:15 +00:00
wrappers.go go/ssa: fix build (remove unused params to types.NewSignature) 2015-06-13 00:57:15 +00:00