Index: src/type-info.cc |
diff --git a/src/type-info.cc b/src/type-info.cc |
index 32aef1cc5ef4472a8d2cb842240882f4a608cbdf..c0b6056d9a5a17ebbb07bae6fd4b72ad14fe2e6e 100644 |
--- a/src/type-info.cc |
+++ b/src/type-info.cc |
@@ -138,6 +138,15 @@ bool TypeFeedbackOracle::LoadIsPolymorphic(Property* expr) { |
} |
+bool TypeFeedbackOracle::StoreIsUninitialized(TypeFeedbackId ast_id) { |
+ Handle<Object> map_or_code = GetInfo(ast_id); |
+ if (map_or_code->IsMap()) return false; |
+ if (!map_or_code->IsCode()) return true; |
+ Handle<Code> code = Handle<Code>::cast(map_or_code); |
+ return code->ic_state() == UNINITIALIZED; |
+} |
+ |
+ |
bool TypeFeedbackOracle::StoreIsMonomorphicNormal(TypeFeedbackId ast_id) { |
Handle<Object> map_or_code = GetInfo(ast_id); |
if (map_or_code->IsMap()) return true; |