Fix bug with input representation of HValueOf.
authorfschneider@chromium.org <fschneider@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 22 Feb 2011 12:14:53 +0000 (12:14 +0000)
committerfschneider@chromium.org <fschneider@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 22 Feb 2011 12:14:53 +0000 (12:14 +0000)
commit031062d246e97d2947c303dd9a11baf5241e5160
tree21273fb8487ce596a3714c3330b77174c53e32ae
parentb5c3b18f29e5c8ed47360d3ce3cfedd3569f84a3
Fix bug with input representation of HValueOf.

The class did not correctly implement the RequiredInputRepresentation.
I changed this functions to be abstract so that all hydrogen classes
must implement it.

As a convention instructions with zero input operands return None as input
representation.

Instructions that can handle all input representations without converting before
also have None as required input representation (e.g. HTest)

All other instructions need a proper required input representation.

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@6891 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/hydrogen-instructions.h
test/mjsunit/compiler/regress-valueof.js [new file with mode: 0644]