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

Issue 9113043: Implement Double.{toString, toStringAsExponential, toStringAsPrecision} (Closed)

Created:
8 years, 11 months ago by floitsch
Modified:
8 years, 9 months ago
Reviewers:
Ivan Posva
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Implement Double.{toString, toStringAsExponential, toStringAsPrecision} Also switch to -0.0. Committed: https://code.google.com/p/dart/source/detail?r=4681

Patch Set 1 #

Total comments: 1

Patch Set 2 : Revert mintmaker changes. #

Total comments: 8

Patch Set 3 : Address comments and updates to status files. #

Total comments: 7

Patch Set 4 : Address comment #

Total comments: 5

Patch Set 5 : Add forgotten test-file #

Patch Set 6 : Don't use NULL and rebase. #

Total comments: 8

Patch Set 7 : Address comments. #

Patch Set 8 : Use zone-allocated storage. #

Patch Set 9 : Updated status files. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+351 lines, -246 lines) Patch
M compiler/lib/implementation/number.js View 1 2 1 chunk +22 lines, -1 line 0 comments Download
M runtime/lib/double.cc View 1 2 3 4 5 6 1 chunk +40 lines, -7 lines 0 comments Download
M runtime/lib/double.dart View 1 2 3 4 5 2 chunks +14 lines, -1 line 0 comments Download
M runtime/vm/double_conversion.h View 1 2 3 4 5 6 1 chunk +4 lines, -4 lines 0 comments Download
M runtime/vm/double_conversion.cc View 1 2 3 4 5 6 7 7 chunks +66 lines, -42 lines 0 comments Download
M runtime/vm/object.cc View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -16 lines 0 comments Download
M tests/co19/co19-leg.status View 1 2 3 4 5 6 7 8 3 chunks +0 lines, -47 lines 0 comments Download
M tests/co19/co19-runtime.status View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M tests/language/language.status View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -1 line 0 comments Download
M tests/language/language-leg.status View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
A tests/language/src/DoubleToString.dart View 1 2 3 4 1 chunk +65 lines, -0 lines 0 comments Download
A tests/language/src/DoubleToStringAsExponentialTest.dart View 1 chunk +82 lines, -0 lines 0 comments Download
A + tests/language/src/DoubleToStringAsFixedTest.dart View 4 chunks +5 lines, -10 lines 0 comments Download
A tests/language/src/DoubleToStringAsPrecisionTest.dart View 1 chunk +40 lines, -0 lines 0 comments Download
D tests/language/src/ToStringAsFixedTest.dart View 1 chunk +0 lines, -117 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
floitsch
I will file a bug against co19 for "-0.0" and make sure that all components ...
8 years, 11 months ago (2012-01-25 00:27:10 UTC) #1
Ivan Posva
https://chromiumcodereview.appspot.com/9113043/diff/2001/runtime/lib/double.cc File runtime/lib/double.cc (right): https://chromiumcodereview.appspot.com/9113043/diff/2001/runtime/lib/double.cc#newcode192 runtime/lib/double.cc:192: int fraction_digits_value = fraction_digits.Value(); ditto from below! https://chromiumcodereview.appspot.com/9113043/diff/2001/runtime/lib/double.cc#newcode209 runtime/lib/double.cc:209: ...
8 years, 11 months ago (2012-01-26 00:35:39 UTC) #2
floitsch
PTAL. https://chromiumcodereview.appspot.com/9113043/diff/2001/runtime/lib/double.cc File runtime/lib/double.cc (right): https://chromiumcodereview.appspot.com/9113043/diff/2001/runtime/lib/double.cc#newcode192 runtime/lib/double.cc:192: int fraction_digits_value = fraction_digits.Value(); On 2012/01/26 00:35:39, Ivan ...
8 years, 11 months ago (2012-01-27 12:51:06 UTC) #3
Ivan Posva
https://chromiumcodereview.appspot.com/9113043/diff/5001/runtime/lib/double.cc File runtime/lib/double.cc (right): https://chromiumcodereview.appspot.com/9113043/diff/5001/runtime/lib/double.cc#newcode192 runtime/lib/double.cc:192: RawString* result = NULL; You should not keep raw ...
8 years, 10 months ago (2012-02-02 23:21:36 UTC) #4
floitsch
https://chromiumcodereview.appspot.com/9113043/diff/5001/runtime/lib/double.cc File runtime/lib/double.cc (right): https://chromiumcodereview.appspot.com/9113043/diff/5001/runtime/lib/double.cc#newcode192 runtime/lib/double.cc:192: RawString* result = NULL; On 2012/02/02 23:21:36, Ivan Posva ...
8 years, 10 months ago (2012-02-05 15:28:21 UTC) #5
Ivan Posva
https://chromiumcodereview.appspot.com/9113043/diff/5001/runtime/lib/double.cc File runtime/lib/double.cc (right): https://chromiumcodereview.appspot.com/9113043/diff/5001/runtime/lib/double.cc#newcode192 runtime/lib/double.cc:192: RawString* result = NULL; On 2012/02/05 15:28:21, floitsch wrote: ...
8 years, 10 months ago (2012-02-06 18:25:44 UTC) #6
floitsch
Normally all calls to the toString functions are properly guarded so we should not be ...
8 years, 10 months ago (2012-02-11 22:42:30 UTC) #7
floitsch
ping
8 years, 10 months ago (2012-02-22 09:20:33 UTC) #8
Ivan Posva
LGTM with comments. -Ivan https://chromiumcodereview.appspot.com/9113043/diff/13003/runtime/vm/double_conversion.cc File runtime/vm/double_conversion.cc (right): https://chromiumcodereview.appspot.com/9113043/diff/13003/runtime/vm/double_conversion.cc#newcode94 runtime/vm/double_conversion.cc:94: if (!status) return NULL; On ...
8 years, 10 months ago (2012-02-27 14:47:13 UTC) #9
floitsch
The changes look bigger than they are, because I rebased to test the changes. I ...
8 years, 10 months ago (2012-02-27 19:55:40 UTC) #10
Ivan Posva
8 years, 10 months ago (2012-02-27 22:20:35 UTC) #11
LGTM -ip

Powered by Google App Engine
This is Rietveld 408576698