Index: src/type-info.cc |
diff --git a/src/type-info.cc b/src/type-info.cc |
index 952b27c19ab248a89fe7d3a376ae5d969523fd5f..eca5eccda46bc65d7c8136de3d5b54096d0296ca 100644 |
--- a/src/type-info.cc |
+++ b/src/type-info.cc |
@@ -214,6 +214,10 @@ |
*left_type = CompareICState::StateToType(zone(), stub.left()); |
*right_type = CompareICState::StateToType(zone(), stub.right()); |
*combined_type = CompareICState::StateToType(zone(), stub.state(), map); |
+ } else if (code->is_compare_nil_ic_stub()) { |
+ CompareNilICStub stub(isolate(), code->extra_ic_state()); |
+ *combined_type = stub.GetType(zone(), map); |
+ *left_type = *right_type = stub.GetInputType(zone(), map); |
} |
} |
@@ -453,6 +457,7 @@ |
case Code::BINARY_OP_IC: |
case Code::COMPARE_IC: |
case Code::TO_BOOLEAN_IC: |
+ case Code::COMPARE_NIL_IC: |
SetInfo(ast_id, target); |
break; |