http://codereview.chromium.org/4060001/diff/17001/18005
File src/strtod.cc (right):

http://codereview.chromium.org/4060001/diff/17001/18005#newcode365
src/strtod.cc:365: // or where the next double (i.e. the next closest
double) is the correct
On 2010/11/08 09:46:34, William Hesse wrote:
either the correct double or its lower neighbor (the nearest double
less than
the correct one).

Done.

http://codereview.chromium.org/4060001/diff/17001/18005#newcode402
src/strtod.cc:402: int comparison = Bignum::Compare(input, boundary);
On 2010/11/08 09:46:34, William Hesse wrote:
Beautifully simple code.

thanks :)

http://codereview.chromium.org/4060001/diff/17001/18005#newcode426
src/strtod.cc:426: return Strtod(Vector<const char>(significant_buffer,
On 2010/11/08 09:46:34, William Hesse wrote:
Instead of return Strtod(...) why not
trimmed = Vector<const
char>(significant_buffer,kMaxSignificantDecimalDigits);
exponent = significant_exponent;

The recursion is merely a tail call to the rest of the function body,
since the
previous stuff will have no impact.

Done.

http://codereview.chromium.org/4060001/diff/17001/18007
File test/cctest/test-bignum.cc (right):

http://codereview.chromium.org/4060001/diff/17001/18007#newcode1590
test/cctest/test-bignum.cc:1590: bignum.AssignPowerUInt16(10, 30);
On 2010/11/08 09:46:34, William Hesse wrote:
Couldn't you try a different base, like 17, once?

Done.

http://codereview.chromium.org/4060001/diff/28001/29008
File test/cctest/test-strtod.cc (right):

http://codereview.chromium.org/4060001/diff/28001/29008#newcode368
test/cctest/test-strtod.cc:368:
On 2010/11/08 09:46:34, William Hesse wrote:
Is this test reproducible?  Is there an option to make random() use
the same
seed?  What is random() - is it libc or one of our own functions?

It was a libc function. I have copied v8's Random function and adapted
it so it is deterministic.

http://codereview.chromium.org/4060001/show

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to