StringToDouble rewritten not using String::Get and memory allocations.
authorserya@chromium.org <serya@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 24 Mar 2010 08:51:03 +0000 (08:51 +0000)
committerserya@chromium.org <serya@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 24 Mar 2010 08:51:03 +0000 (08:51 +0000)
commit2bd9919788e6dafd457d77d4cae0aee127397a58
tree017898c3b0212878b688302fbf351bcc88a0feee
parentea6221d4e6932619caf429780f886c70ca3a81ca
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.

Review URL: http://codereview.chromium.org/1096002

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4241 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/conversions.cc
test/cctest/test-conversions.cc
test/mjsunit/str-to-num.js