Optimize ToNumber and NonNumberToNumber.
authorbbudge <bbudge@chromium.org>
Thu, 30 Jul 2015 08:16:08 +0000 (01:16 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 30 Jul 2015 08:16:15 +0000 (08:16 +0000)
commite31da45e0fb2fc56c4f4351732ebfb32e0daf02a
tree9ce049a7816d840667037ddc50689910ba11bc8e
parente2487b805d2e221bb171722fedd32960706e0fc9
Optimize ToNumber and NonNumberToNumber.

Moves some uncommon type checking from ToNumber and
NonNumberToNumber into DefaultNumber. This should
speed up numeric operations especially as more "value types
are added.

LOG=N
BUG=513196, v8:4124

Review URL: https://codereview.chromium.org/1260273002

Cr-Commit-Position: refs/heads/master@{#29908}
src/runtime.js