Index: src/type-info.cc |
diff --git a/src/type-info.cc b/src/type-info.cc |
index 75e915bb846d9b0e8c57f8c29102c2c7526c939f..fb0f45a416791fa8c5e27b93eedaa9e197261f6e 100644 |
--- a/src/type-info.cc |
+++ b/src/type-info.cc |
@@ -305,6 +305,15 @@ bool TypeFeedbackOracle::LoadIsBuiltin(Property* expr, Builtins::Name id) { |
} |
+bool TypeFeedbackOracle::LoadIsStub(Property* expr, ICStub* stub) { |
+ Handle<Object> object = GetInfo(expr->PropertyFeedbackId()); |
+ if (!object->IsCode()) return false; |
+ Handle<Code> code = Handle<Code>::cast(object); |
+ if (!code->is_load_stub()) return false; |
+ return stub->Describes(*code); |
+} |
+ |
+ |
static TypeInfo TypeFromCompareType(CompareIC::State state) { |
switch (state) { |
case CompareIC::UNINITIALIZED: |