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

Issue 1216005: StringToDouble rewritten not using String::Get and memory allocations.... (Closed)

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

Description

StringToDouble rewritten not using String::Get and memory allocations. It converts the number to "canonical" form removing insignificant digits, leading zerroes and spaces what guarantees to fit a fixed size buffer and does not changes result of strtod. Committed: http://code.google.com/p/v8/source/detail?r=4282

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 4

Patch Set 6 : '' #

Patch Set 7 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+501 lines, -114 lines) Patch
M src/conversions.cc View 1 2 3 4 5 6 3 chunks +392 lines, -114 lines 0 comments Download
M test/cctest/test-conversions.cc View 1 2 3 4 5 6 3 chunks +87 lines, -0 lines 0 comments Download
M test/mjsunit/str-to-num.js View 1 2 3 4 5 6 4 chunks +22 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
SeRya
Is is http://codereview.chromium.org/1096002/show with the following differences: - Fixed debug build error removing obsolete ASSERT. ...
10 years, 9 months ago (2010-03-24 15:19:30 UTC) #1
Kasper Lund
Drive by comment: http://codereview.chromium.org/1216005/diff/1/2 File test/cctest/test-conversions.cc (right): http://codereview.chromium.org/1216005/diff/1/2#newcode163 test/cctest/test-conversions.cc:163: #ifdef _WIN32 Why not use OS::SNPrintF ...
10 years, 9 months ago (2010-03-24 15:40:51 UTC) #2
SeRya
http://codereview.chromium.org/1216005/diff/1/2 File test/cctest/test-conversions.cc (right): http://codereview.chromium.org/1216005/diff/1/2#newcode163 test/cctest/test-conversions.cc:163: #ifdef _WIN32 On 2010/03/24 15:40:51, Kasper Lund wrote: > ...
10 years, 9 months ago (2010-03-24 15:45:44 UTC) #3
SeRya
Fixed issues from http://codereview.chromium.org/1096002/diff/3003/39003
10 years, 9 months ago (2010-03-25 13:03:45 UTC) #4
Erik Corry
LGTM http://codereview.chromium.org/1216005/diff/18001/19003 File src/conversions.cc (right): http://codereview.chromium.org/1216005/diff/18001/19003#newcode166 src/conversions.cc:166: // mean of 2 adjucent doubles (that could ...
10 years, 9 months ago (2010-03-25 13:43:05 UTC) #5
SeRya
10 years, 9 months ago (2010-03-25 14:29:49 UTC) #6
Changed the MaximumSignificantDigits test to avoid possible platform dependency.

http://codereview.chromium.org/1216005/diff/18001/19003
File src/conversions.cc (right):

http://codereview.chromium.org/1216005/diff/18001/19003#newcode166
src/conversions.cc:166: // mean of 2 adjucent doubles (that could have up to 769
digits) the result
On 2010/03/25 13:43:05, Erik Corry wrote:
> adjucent -> adjacent

Done.

http://codereview.chromium.org/1216005/diff/18001/19003#newcode496
src/conversions.cc:496: // Otherwise there is no digits in the string.
On 2010/03/25 13:43:05, Erik Corry wrote:
> is no -> are no

Done.

Powered by Google App Engine
This is Rietveld 408576698