Index: src/compiler/simplified-lowering.cc |
diff --git a/src/compiler/simplified-lowering.cc b/src/compiler/simplified-lowering.cc |
index 9f0b5f681e4f08f5b146f187b7146de8f0a0df64..94a078a5976ba129b93d9c5f52f1b9aedd4cf33f 100644 |
--- a/src/compiler/simplified-lowering.cc |
+++ b/src/compiler/simplified-lowering.cc |
@@ -2515,8 +2515,11 @@ class RepresentationSelector { |
return; |
} |
case IrOpcode::kObjectIsCallable: { |
- // TODO(turbofan): Add Type::Callable to optimize this? |
- VisitUnop(node, UseInfo::AnyTagged(), MachineRepresentation::kBit); |
+ VisitObjectIs(node, Type::Callable(), lowering); |
+ return; |
+ } |
+ case IrOpcode::kObjectIsNonCallable: { |
+ VisitObjectIs(node, Type::NonCallable(), lowering); |
return; |
} |
case IrOpcode::kObjectIsNumber: { |