Commit 20913187 authored by mmassi@chromium.org's avatar mmassi@chromium.org

Fix HCheckSmiOrInt32 fake observed representation.

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13694 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 147ab363
...@@ -2819,6 +2819,10 @@ class HCheckSmiOrInt32: public HUnaryOperation { ...@@ -2819,6 +2819,10 @@ class HCheckSmiOrInt32: public HUnaryOperation {
} }
virtual void InferRepresentation(HInferRepresentation* h_infer); virtual void InferRepresentation(HInferRepresentation* h_infer);
virtual Representation observed_input_representation(int index) {
return Representation::Integer32();
}
virtual HValue* Canonicalize() { virtual HValue* Canonicalize() {
if (representation().IsTagged() && !type().IsSmi()) { if (representation().IsTagged() && !type().IsSmi()) {
return this; return this;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment