Index: src/hydrogen-load-elimination.cc |
diff --git a/src/hydrogen-load-elimination.cc b/src/hydrogen-load-elimination.cc |
index f37de90ff3d37311d0d3d4fa6916967bed036b87..3337188f9a46387591b51268453c2023dd291f0f 100644 |
--- a/src/hydrogen-load-elimination.cc |
+++ b/src/hydrogen-load-elimination.cc |
@@ -272,7 +272,9 @@ class HLoadEliminationTable : public ZoneObject { |
KillFieldInternal(object, field, NULL); |
// Kill the next field in case of overlap. |
- int size = access.representation().size(); |
+ int size = kPointerSize; |
+ if (access.representation().IsByte()) size = 1; |
+ else if (access.representation().IsInteger32()) size = 4; |
int next_field = (offset + size - 1) / kPointerSize; |
if (next_field != field) KillFieldInternal(object, next_field, NULL); |
} |