Fix handling of -0 in the unary-op IC and avoid repeated patching/transitions.
authorfschneider@chromium.org <fschneider@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 18 May 2011 17:32:36 +0000 (17:32 +0000)
committerfschneider@chromium.org <fschneider@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 18 May 2011 17:32:36 +0000 (17:32 +0000)
commitf2cb08f1c2a01601c09fc75bcb768abf60f5a80d
treea3bee92afd17b6eef05ecd7bee2bb439bf158a18
parent85edb5f96bd9cfc8a479576bf70225110459fb49
Fix handling of -0 in the unary-op IC and avoid repeated patching/transitions.

When the stub return a heap number we do a state transition to
a version HEAP_NUMBER that can handle -0.

There is room for further improvement in the typefeedback for the
case of -0. This change however does not address this and only fixes
the acute issue.
Review URL: http://codereview.chromium.org/7037025

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@7944 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/arm/code-stubs-arm.cc
src/ia32/code-stubs-ia32.cc
src/ic.cc
src/ic.h
src/x64/code-stubs-x64.cc