From 20913187c00615580d8510c121fe5ba7f69ec436 Mon Sep 17 00:00:00 2001 From: "mmassi@chromium.org" Date: Tue, 19 Feb 2013 14:24:25 +0000 Subject: [PATCH] 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 --- src/hydrogen-instructions.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h index 2767560..2e7e374 100644 --- a/src/hydrogen-instructions.h +++ b/src/hydrogen-instructions.h @@ -2819,6 +2819,10 @@ class HCheckSmiOrInt32: public HUnaryOperation { } virtual void InferRepresentation(HInferRepresentation* h_infer); + virtual Representation observed_input_representation(int index) { + return Representation::Integer32(); + } + virtual HValue* Canonicalize() { if (representation().IsTagged() && !type().IsSmi()) { return this; -- 2.7.4