Index: src/hydrogen-instructions.h |
diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h |
index b7857244a5ac3c79aa62b71fb00e3a0a4499d691..7ddf8203159f23cc82eb19683d9a49a75f41005f 100644 |
--- a/src/hydrogen-instructions.h |
+++ b/src/hydrogen-instructions.h |
@@ -3342,7 +3342,7 @@ class HConstant: public HTemplateInstruction<0> { |
} |
virtual Representation KnownOptimalRepresentation() { |
- if (HasSmiValue() && kSmiValueSize == 31) return Representation::Smi(); |
+ if (HasSmiValue() && SmiValuesAre31Bits()) return Representation::Smi(); |
if (HasInteger32Value()) return Representation::Integer32(); |
if (HasNumberValue()) return Representation::Double(); |
if (HasExternalReferenceValue()) return Representation::External(); |