Revision: 6880
Author: [email protected]
Date: Tue Feb 22 01:14:47 2011
Log: Revert "Expand fast case of parseInt to include radix == 10 and radix
== 0."
Causes Mozilla failures.
[email protected]
Review URL: http://codereview.chromium.org/6542056
http://code.google.com/p/v8/source/detail?r=6880
Modified:
/branches/bleeding_edge/src/v8natives.js
=======================================
--- /branches/bleeding_edge/src/v8natives.js Tue Feb 22 01:01:06 2011
+++ /branches/bleeding_edge/src/v8natives.js Tue Feb 22 01:14:47 2011
@@ -92,7 +92,7 @@
// ECMA-262 - 15.1.2.2
function GlobalParseInt(string, radix) {
- if (IS_UNDEFINED(radix) || radix === 10 || radix === 0) {
+ if (IS_UNDEFINED(radix)) {
// Some people use parseInt instead of Math.floor. This
// optimization makes parseInt on a Smi 12 times faster (60ns
// vs 800ns). The following optimization makes parseInt on a
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev