commit | 3584bce5b1f45e5741d3a6ca24884a36320ecb6b | [log] [tgz] |
---|---|---|
author | Mingyao Yang <mingyao@google.com> | Tue May 19 16:01:59 2015 -0700 |
committer | Mingyao Yang <mingyao@google.com> | Wed Jun 10 16:51:57 2015 -0700 |
tree | d9ccce473db996594e84135cb6d50d260063aabf | |
parent | cbc1e2ed4a7d3d43d59c20713888058097c8188f [diff] |
Fix premature deoptimization if the loop body isn't entered. Add a test between initial_ and end_ to see if the loop body is entered. If the loop body isn't entered at all, we jump to the loop header. Loop header is still executed and is going to test the condition again and loop body won't be entered. This makes sure no deoptimization is triggered if the loop body isn't even entered. Bug: 21034044 Change-Id: I2b6de1f22fbc4568ca419f76382ebd87806d9694