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