Index: src/compiler/instruction-selector.cc |
diff --git a/src/compiler/instruction-selector.cc b/src/compiler/instruction-selector.cc |
index 35a7e5c3b6569449b273a58aee7a3e01b2dcb58d..66355ffb6eced3917559b7ac57fbd304d295d982 100644 |
--- a/src/compiler/instruction-selector.cc |
+++ b/src/compiler/instruction-selector.cc |
@@ -232,8 +232,8 @@ void InstructionSelector::MarkAsReference(Node* node) { |
void InstructionSelector::MarkAsRepresentation(MachineType rep, Node* node) { |
DCHECK_NOT_NULL(node); |
- if (rep == kMachineFloat64) MarkAsDouble(node); |
- if (rep == kMachineTagged) MarkAsReference(node); |
+ if (RepresentationOf(rep) == kRepFloat64) MarkAsDouble(node); |
+ if (RepresentationOf(rep) == kRepTagged) MarkAsReference(node); |
} |