Revision: 9852
Author: [email protected]
Date: Mon Oct 31 10:26:59 2011
Log: Convert array index to integer when computing pause distribution
for spinning-balls.
BUG=
TEST=
Review URL: http://codereview.chromium.org/8430006
http://code.google.com/p/v8/source/detail?r=9852
Modified:
/branches/bleeding_edge/benchmarks/spinning-balls/v.js
=======================================
--- /branches/bleeding_edge/benchmarks/spinning-balls/v.js Mon Oct 31
10:05:37 2011
+++ /branches/bleeding_edge/benchmarks/spinning-balls/v.js Mon Oct 31
10:26:59 2011
@@ -353,8 +353,8 @@
if (pause > 20) {
sumOfSquaredPauses += (pause - 20) * (pause - 20);
}
- pauseDistribution[pause / 10] |= 0;
- pauseDistribution[pause / 10]++;
+ pauseDistribution[Math.floor(pause / 10)] |= 0;
+ pauseDistribution[Math.floor(pause / 10)]++;
}
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev