StringToDouble rewritten not using String::Get and memory allocations.
authorserya@chromium.org <serya@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 25 Mar 2010 14:39:39 +0000 (14:39 +0000)
committerserya@chromium.org <serya@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 25 Mar 2010 14:39:39 +0000 (14:39 +0000)
commit203ba181ad2a7131c1c285daab10fe4037dc5407
treebcf49ee0f35d81b26b372baf70df777ba1f5edbc
parent5e24ffaa224c3afd86a4a23803f474ff0b853ec2
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/1216005

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