Index: src/compiler/instruction-selector.cc |
diff --git a/src/compiler/instruction-selector.cc b/src/compiler/instruction-selector.cc |
index 143bd696311781bdda8666e5d614e324feba4738..e950b4a16ca5649dcc5caa5f307f868862c86c03 100644 |
--- a/src/compiler/instruction-selector.cc |
+++ b/src/compiler/instruction-selector.cc |
@@ -244,8 +244,17 @@ void InstructionSelector::MarkAsReference(Node* node) { |
void InstructionSelector::MarkAsRepresentation(MachineType rep, Node* node) { |
DCHECK_NOT_NULL(node); |
- if (RepresentationOf(rep) == kRepFloat64) MarkAsDouble(node); |
- if (RepresentationOf(rep) == kRepTagged) MarkAsReference(node); |
+ switch (RepresentationOf(rep)) { |
+ case kRepFloat32: |
+ case kRepFloat64: |
+ MarkAsDouble(node); |
+ break; |
+ case kRepTagged: |
+ MarkAsReference(node); |
+ break; |
+ default: |
+ break; |
+ } |
} |