Commit 0b9426ee authored by Toon Verwaest's avatar Toon Verwaest Committed by Commit Bot

[cleanup] Tiny simplification in Representation

- Remove unused IsSpecialization
- Simplify IsCompatibleForLoad

Change-Id: I555adf9869322b600072c5006ff71f6b846d4241
Reviewed-on: https://chromium-review.googlesource.com/c/1479958Reviewed-by: 's avatarBenedikt Meurer <bmeurer@chromium.org>
Commit-Queue: Toon Verwaest <verwaest@chromium.org>
Cr-Commit-Position: refs/heads/master@{#59760}
parent 9b1ab6f8
......@@ -109,8 +109,7 @@ class Representation {
}
bool IsCompatibleForLoad(const Representation& other) const {
return (IsDouble() && other.IsDouble()) ||
(!IsDouble() && !other.IsDouble());
return IsDouble() == other.IsDouble();
}
bool IsCompatibleForStore(const Representation& other) const {
......@@ -146,7 +145,6 @@ class Representation {
bool IsSmiOrTagged() const { return IsSmi() || IsTagged(); }
bool IsDouble() const { return kind_ == kDouble; }
bool IsHeapObject() const { return kind_ == kHeapObject; }
bool IsSpecialization() const { return IsSmi() || IsDouble(); }
const char* Mnemonic() const {
switch (kind_) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment