Index: src/hydrogen-instructions.h |
diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h |
index c564872da622fb91dcd429336d5bd2d23fde0713..c1aaec0e18e2304969b557c524188a6fc3298abd 100644 |
--- a/src/hydrogen-instructions.h |
+++ b/src/hydrogen-instructions.h |
@@ -5954,9 +5954,7 @@ class HLoadNamedField V8_FINAL : public HTemplateInstruction<1> { |
SetOperandAt(0, object); |
Representation representation = access.representation(); |
- if (representation.IsByte()) { |
- set_representation(Representation::Integer32()); |
- } else if (representation.IsSmi()) { |
+ if (representation.IsSmi()) { |
set_type(HType::Smi()); |
set_representation(representation); |
} else if (representation.IsDouble() || |
@@ -6254,14 +6252,11 @@ class HStoreNamedField V8_FINAL : public HTemplateInstruction<3> { |
if (index == 0 && access().IsExternalMemory()) { |
// object must be external in case of external memory access |
return Representation::External(); |
- } else if (index == 1) { |
- if (field_representation().IsByte() || |
- field_representation().IsInteger32()) { |
- return Representation::Integer32(); |
- } else if (field_representation().IsDouble() || |
- field_representation().IsSmi()) { |
- return field_representation(); |
- } |
+ } else if (index == 1 && |
+ (field_representation().IsDouble() || |
+ field_representation().IsSmi() || |
+ field_representation().IsInteger32())) { |
+ return field_representation(); |
} |
return Representation::Tagged(); |
} |