Index: src/property-details.h |
diff --git a/src/property-details.h b/src/property-details.h |
index f025f152b7f02c46d641ba53f1b9f6a59d8336b0..dd8a7773ee566a8a83ed07a8dc5d196637ee0eb9 100644 |
--- a/src/property-details.h |
+++ b/src/property-details.h |
@@ -103,6 +103,11 @@ class Representation { |
return kind_ == other.kind_; |
} |
+ bool IsCompatibleForLoad(const Representation& other) const { |
+ return (IsDouble() && other.IsDouble()) || |
+ (!IsDouble() && !other.IsDouble()); |
+ } |
+ |
bool is_more_general_than(const Representation& other) const { |
ASSERT(kind_ != kExternal); |
ASSERT(other.kind_ != kExternal); |