Improve Math.round(). Fix the bug in r4146. Further improve performance by checking...
authoroleg@chromium.org <oleg@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 18 Mar 2010 13:00:57 +0000 (13:00 +0000)
committeroleg@chromium.org <oleg@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 18 Mar 2010 13:00:57 +0000 (13:00 +0000)
commit825a5d741ff7e916d8c514a36a2f015e838e2385
tree085eb53490cfd003f7123b21c860b510857b54ec
parentc8a2735762b42e346b758ea04df8999beec17311
Improve Math.round(). Fix the bug in r4146. Further improve performance by checking the exponent instead of comparing doubles. Add several tests for numbers near the limits of SMI and several tests from WebKit.

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4180 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/math.js
src/objects-inl.h
src/objects.h
src/runtime.cc
src/runtime.h
test/mjsunit/math-round.js