diff options
Diffstat (limited to 'deps/v8/src/ic/stub-cache.cc')
-rw-r--r-- | deps/v8/src/ic/stub-cache.cc | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/deps/v8/src/ic/stub-cache.cc b/deps/v8/src/ic/stub-cache.cc index d62aceec96..6396c57061 100644 --- a/deps/v8/src/ic/stub-cache.cc +++ b/deps/v8/src/ic/stub-cache.cc @@ -111,43 +111,5 @@ void StubCache::Clear() { } } - -void StubCache::CollectMatchingMaps(SmallMapList* types, Handle<Name> name, - Handle<Context> native_context, - Zone* zone) { - for (int i = 0; i < kPrimaryTableSize; i++) { - if (primary_[i].key == *name) { - Map* map = primary_[i].map; - // Map can be nullptr, if the stub is constant function call - // with a primitive receiver. - if (map == nullptr) continue; - - int offset = PrimaryOffset(*name, map); - if (entry(primary_, offset) == &primary_[i] && - TypeFeedbackOracle::IsRelevantFeedback(map, *native_context)) { - types->AddMapIfMissing(Handle<Map>(map), zone); - } - } - } - - for (int i = 0; i < kSecondaryTableSize; i++) { - if (secondary_[i].key == *name) { - Map* map = secondary_[i].map; - // Map can be nullptr, if the stub is constant function call - // with a primitive receiver. - if (map == nullptr) continue; - - // Lookup in primary table and skip duplicates. - int primary_offset = PrimaryOffset(*name, map); - - // Lookup in secondary table and add matches. - int offset = SecondaryOffset(*name, primary_offset); - if (entry(secondary_, offset) == &secondary_[i] && - TypeFeedbackOracle::IsRelevantFeedback(map, *native_context)) { - types->AddMapIfMissing(Handle<Map>(map), zone); - } - } - } -} } // namespace internal } // namespace v8 |