Reviewers: sandholm,

Description:
Revert "Expand fast case of parseInt to include radix == 10 and radix == 0."

Causes Mozilla failures.

[email protected]

Please review this at http://codereview.chromium.org/6542056/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
  M src/v8natives.js


Index: src/v8natives.js
diff --git a/src/v8natives.js b/src/v8natives.js
index cb85dd4ede2bbf632afd5ac8fa5869da7d88e67d..884b6f414d60ec5725258c34b4f87aeeb7a4dc1f 100644
--- a/src/v8natives.js
+++ b/src/v8natives.js
@@ -92,7 +92,7 @@ function GlobalIsFinite(number) {

 // 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

Reply via email to