commit | b1ae35965cadac235d7d218e689944286cccdd90 | [log] [tgz] |
---|---|---|
author | Ian Lance Taylor <iant@golang.org> | Fri Jun 07 11:22:37 2019 -0700 |
committer | Ian Lance Taylor <iant@golang.org> | Mon Jun 10 21:33:41 2019 +0000 |
tree | 6ee114cc7fef75ca18d8c658dc40b68df8d19d71 | |
parent | 764fe6702f2bb8650622d4102de31058e484ecb5 [diff] |
compiler: support inlining functions that use index expressions Also move the determine_types pass on an inlined function body to one place, rather than doing it ad hoc as needed. This adds 79 new inlinable functions in the standard library, such as bytes.HasPrefix and bytes.LastIndexByte. Change-Id: I7d37cd5539d839274123eaeb1b00d735efe0bd96 Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/181261 Reviewed-by: Cherry Zhang <cherryyz@google.com>