Index: src/compiler/simplified-lowering.cc |
diff --git a/src/compiler/simplified-lowering.cc b/src/compiler/simplified-lowering.cc |
index e7aaf43535a54e0bf27a1361265758a28c9d7532..924a319f917bf2f86340db0db88c4e6f78717306 100644 |
--- a/src/compiler/simplified-lowering.cc |
+++ b/src/compiler/simplified-lowering.cc |
@@ -1990,6 +1990,15 @@ class RepresentationSelector { |
} |
return; |
} |
+ case IrOpcode::kCheckString: { |
+ if (InputIs(node, Type::String())) { |
+ VisitUnop(node, UseInfo::AnyTagged(), MachineRepresentation::kTagged); |
+ if (lower()) DeferReplacement(node, node->InputAt(0)); |
+ } else { |
+ VisitUnop(node, UseInfo::AnyTagged(), MachineRepresentation::kTagged); |
+ } |
+ return; |
+ } |
case IrOpcode::kCheckTaggedPointer: { |
if (InputCannotBe(node, Type::SignedSmall())) { |
VisitUnop(node, UseInfo::AnyTagged(), MachineRepresentation::kTagged); |