Index: src/compiler/typer.cc |
diff --git a/src/compiler/typer.cc b/src/compiler/typer.cc |
index 51b8352b3126a012290ec3298e85162ced0bd3ec..c08e62cd3ac4e765b41aae0880c627dc1067ac4e 100644 |
--- a/src/compiler/typer.cc |
+++ b/src/compiler/typer.cc |
@@ -1731,6 +1731,11 @@ Type* Typer::Visitor::TypeCheckNumber(Node* node) { |
return Type::Intersect(arg, Type::Number(), zone()); |
} |
+Type* Typer::Visitor::TypeCheckReceiver(Node* node) { |
+ Type* arg = Operand(node, 0); |
+ return Type::Intersect(arg, Type::Receiver(), zone()); |
+} |
+ |
Type* Typer::Visitor::TypeCheckSmi(Node* node) { |
Type* arg = Operand(node, 0); |
return Type::Intersect(arg, Type::SignedSmall(), zone()); |