Index: src/hydrogen-instructions.cc |
diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc |
index 8006b7810095ba75f222d0a3141c3771e6d96088..2db3c43c68ea08686ee324cef5a3d3089db0acc4 100644 |
--- a/src/hydrogen-instructions.cc |
+++ b/src/hydrogen-instructions.cc |
@@ -3198,13 +3198,18 @@ Range* HLoadNamedField::InferRange(Zone* zone) { |
Range* HLoadKeyed::InferRange(Zone* zone) { |
switch (elements_kind()) { |
case EXTERNAL_INT8_ELEMENTS: |
+ case INT8_ELEMENTS: |
return new(zone) Range(kMinInt8, kMaxInt8); |
case EXTERNAL_UINT8_ELEMENTS: |
case EXTERNAL_UINT8_CLAMPED_ELEMENTS: |
+ case UINT8_ELEMENTS: |
+ case UINT8_CLAMPED_ELEMENTS: |
return new(zone) Range(kMinUInt8, kMaxUInt8); |
case EXTERNAL_INT16_ELEMENTS: |
+ case INT16_ELEMENTS: |
return new(zone) Range(kMinInt16, kMaxInt16); |
case EXTERNAL_UINT16_ELEMENTS: |
+ case UINT16_ELEMENTS: |
return new(zone) Range(kMinUInt16, kMaxUInt16); |
default: |
return HValue::InferRange(zone); |