Status: New
Owner: ----
New issue 2451 by [email protected]: Math.round with negative numbers
causes a method to de/re-optimize repeatedly and finally disabled
http://code.google.com/p/v8/issues/detail?id=2451
We have some hot methods which do Math.round and we're seeing them get
deoptimized if we end up trying to round negative numbers. Eventually
optimization is disabled for these methods. If I run the attached repro in
d8 I get:
rounding positive numbers...
elapsed ms: 30
elapsed ms: 14
elapsed ms: 12
elapsed ms: 16
elapsed ms: 12
rounding negative numbers...
elapsed ms: 56
elapsed ms: 39
elapsed ms: 40
elapsed ms: 39
elapsed ms: 39
Attachments:
round.js 1.5 KB
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev