Index: src/type-info.cc |
diff --git a/src/type-info.cc b/src/type-info.cc |
index 2c033b020061bb8479d638d59aea41674075dc9f..9808e9a24ae2b54fecffd489a31f30526b8dd56b 100644 |
--- a/src/type-info.cc |
+++ b/src/type-info.cc |
@@ -89,6 +89,14 @@ bool TypeFeedbackOracle::StoreIsUninitialized(TypeFeedbackId ast_id) { |
} |
+bool TypeFeedbackOracle::CallIsUninitialized(FeedbackVectorICSlot slot) { |
+ Handle<Object> value = GetInfo(slot); |
+ return value->IsUndefined() || |
+ value.is_identical_to( |
+ TypeFeedbackVector::UninitializedSentinel(isolate())); |
+} |
+ |
+ |
bool TypeFeedbackOracle::CallIsMonomorphic(FeedbackVectorICSlot slot) { |
Handle<Object> value = GetInfo(slot); |
return value->IsAllocationSite() || value->IsJSFunction(); |