Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Issue 6532087: Expand fast case of parseInt to include radix == 10 and radix == 0. (Closed)

Created:
9 years, 10 months ago by sandholm
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Expand fast case of parseInt to include radix == 10 and radix == 0.

Patch Set 1 #

Total comments: 4

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M src/v8natives.js View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
sandholm
9 years, 10 months ago (2011-02-22 08:43:44 UTC) #1
Erik Corry
http://codereview.chromium.org/6532087/diff/1/src/v8natives.js File src/v8natives.js (right): http://codereview.chromium.org/6532087/diff/1/src/v8natives.js#newcode95 src/v8natives.js:95: if (IS_UNDEFINED(radix) || radix == 10 || radix == ...
9 years, 10 months ago (2011-02-22 08:53:05 UTC) #2
Mads Ager (chromium)
LGTM http://codereview.chromium.org/6532087/diff/1/src/v8natives.js File src/v8natives.js (right): http://codereview.chromium.org/6532087/diff/1/src/v8natives.js#newcode95 src/v8natives.js:95: if (IS_UNDEFINED(radix) || radix == 10 || radix ...
9 years, 10 months ago (2011-02-22 08:53:55 UTC) #3
sandholm
9 years, 10 months ago (2011-02-22 08:59:57 UTC) #4
OK. I get the point :-)

http://codereview.chromium.org/6532087/diff/1/src/v8natives.js
File src/v8natives.js (right):

http://codereview.chromium.org/6532087/diff/1/src/v8natives.js#newcode95
src/v8natives.js:95: if (IS_UNDEFINED(radix) || radix == 10 || radix == 0) {
On 2011/02/22 08:53:05, Erik Corry wrote:
> I think you want === here.

Done.

http://codereview.chromium.org/6532087/diff/1/src/v8natives.js#newcode95
src/v8natives.js:95: if (IS_UNDEFINED(radix) || radix == 10 || radix == 0) {
On 2011/02/22 08:53:55, Mads Ager wrote:
> Erik suggests using === here. I agree with that and we should do so below as
> well (the checks before %_GetCachedArrayIndex).

Done.

Powered by Google App Engine
This is Rietveld 408576698