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

Issue 1367004: Optimization for parsing integers of limited length (in digits). (Closed)

Created:
10 years, 9 months ago by SeRya
Modified:
9 years, 7 months ago
Reviewers:
Erik Corry
CC:
v8-dev
Visibility:
Public.

Description

Optimization for parsing integers of limited length (in digits). Committed: http://code.google.com/p/v8/source/detail?r=4304

Patch Set 1 #

Total comments: 7

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -2 lines) Patch
M src/conversions.cc View 1 5 chunks +20 lines, -2 lines 0 comments Download
M test/mjsunit/parse-int-float.js View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
SeRya
http://compute3.aar:9013/golem/r4286-v8-serya-FasterParsingInt-vs-4286-v8.html
10 years, 9 months ago (2010-03-26 08:49:10 UTC) #1
Erik Corry
LGTM The long comment is more an idea for what to look at next, you ...
10 years, 9 months ago (2010-03-29 10:43:10 UTC) #2
SeRya
10 years, 9 months ago (2010-03-29 11:05:55 UTC) #3
http://codereview.chromium.org/1367004/diff/1/3
File src/conversions.cc (right):

http://codereview.chromium.org/1367004/diff/1/3#newcode458
src/conversions.cc:458: ++current;
On 2010/03/29 10:43:10, Erik Corry wrote:
> This is changing the implementation for strings that end in '.'.  Do we have
> good test coverage for that?

We do. For instance:
str-to-num.js:91:
assertEquals(5,  toNumber("5."));
assertEquals(5,  toNumber("+5."));
assertEquals(-5, toNumber("-5."));

http://codereview.chromium.org/1367004/diff/1/3#newcode587
src/conversions.cc:587: // fractional part it could be parsed fatser (without
check for
On 2010/03/29 10:43:10, Erik Corry wrote:
> fatser -> faster
> check -> checks

Done.

http://codereview.chromium.org/1367004/diff/1/3#newcode588
src/conversions.cc:588: // spaces, overflow, etc).
On 2010/03/29 10:43:10, Erik Corry wrote:
> etc -> etc.

Done.

Powered by Google App Engine
This is Rietveld 408576698