Index: src/hydrogen-instructions.cc |
diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc |
index 61da776e21eb18b89be428ca1c4fb8b2c2b81c4a..e16bb22957f8a6149c7075361ee2dbc0ee284eb9 100644 |
--- a/src/hydrogen-instructions.cc |
+++ b/src/hydrogen-instructions.cc |
@@ -2829,6 +2829,9 @@ Range* HShl::InferRange(Zone* zone) { |
Range* HLoadNamedField::InferRange(Zone* zone) { |
+ if (access().representation().IsByte()) { |
+ return new(zone) Range(0, 255); |
+ } |
if (access().IsStringLength()) { |
return new(zone) Range(0, String::kMaxLength); |
} |