Index: src/hydrogen-instructions.cc |
=================================================================== |
--- src/hydrogen-instructions.cc (revision 12582) |
+++ src/hydrogen-instructions.cc (working copy) |
@@ -1615,6 +1615,20 @@ |
} |
+Range* HRor::InferRange(Zone* zone) { |
+ if (right()->IsConstant()) { |
+ HConstant* c = HConstant::cast(right()); |
+ if (c->HasInteger32Value()) { |
+ Range* result = (left()->range() != NULL) |
+ ? left()->range()->Copy(zone) |
+ : new(zone) Range(); |
Erik Corry
2012/09/27 14:45:44
Don't you have to Ror the result here?
|
+ return result; |
+ } |
+ } |
+ return HValue::InferRange(zone); |
+} |
+ |
+ |
Range* HLoadKeyedSpecializedArrayElement::InferRange(Zone* zone) { |
switch (elements_kind()) { |
case EXTERNAL_PIXEL_ELEMENTS: |