]> Cypherpunks repositories - gostls13.git/commit
runtime: unify cases in mapiternext
authorJosh Bleecher Snyder <josharian@gmail.com>
Fri, 11 Aug 2017 15:48:10 +0000 (08:48 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Tue, 15 Aug 2017 00:19:36 +0000 (00:19 +0000)
commit02ad116bf1fa7c324390f03974f5879a2f06495e
treec89c100ea403e3ff6698595b48bb128751e2b6a2
parentc50a9718a6749c693ce13faaa0e1c4038bfb6c5e
runtime: unify cases in mapiternext

The preceding cleanup made it clear that two cases
(have golden data, unreachable key) are handled identically.
Simplify the control flow to reflect that.

Simplifies the code and generates shorter machine code.

Change-Id: Id612e0da6679813e855506f47222c58ea6497d70
Reviewed-on: https://go-review.googlesource.com/55093
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/runtime/hashmap.go