Lines Matching refs:cache_entry
443 EntryImpl* cache_entry = MatchEntry(key, hash, false, Addr(), &error);
444 if (cache_entry && ENTRY_NORMAL != cache_entry->entry()->Data()->state) {
446 cache_entry->Release();
447 cache_entry = NULL;
455 if (!cache_entry) {
464 eviction_.OnOpenEntry(cache_entry);
468 cache_entry->entry()->address().value());
475 return cache_entry;
535 scoped_refptr<EntryImpl> cache_entry(
539 if (!cache_entry->CreateEntry(node_address, key, hash)) {
547 cache_entry->BeginLogging(net_log_, true);
550 open_entries_[entry_address.value()] = cache_entry.get();
553 cache_entry->entry()->Store();
554 cache_entry->rankings()->Store();
566 eviction_.OnCreateEntry(cache_entry.get());
573 cache_entry->AddRef();
574 return cache_entry.get();
718 EntryImpl* cache_entry = MatchEntry(key, hash, false, Addr(), &error);
719 if (cache_entry) {
720 if (ENTRY_NORMAL == cache_entry->entry()->Data()->state) {
721 UpdateRank(cache_entry, cache_type() == net::SHADER_CACHE);
723 cache_entry->Release();
905 scoped_refptr<EntryImpl> cache_entry(
911 if (!cache_entry->entry()->Load())
918 if (!cache_entry->SanityCheck()) {
925 Addr(cache_entry->entry()->Data()->rankings_node)));
927 if (!cache_entry->LoadNodeAddress())
930 if (!rankings_.SanityCheck(cache_entry->rankings(), false)) {
932 cache_entry->SetDirtyFlag(0);
936 rankings_.SetContents(cache_entry->rankings(), 0);
937 } else if (!rankings_.DataSanityCheck(cache_entry->rankings(), false)) {
939 cache_entry->SetDirtyFlag(0);
940 rankings_.SetContents(cache_entry->rankings(), address.value());
943 if (!cache_entry->DataSanityCheck()) {
945 cache_entry->SetDirtyFlag(0);
946 cache_entry->FixForDelete();
950 cache_entry->SetDirtyFlag(GetCurrentEntryId());
952 if (cache_entry->dirty()) {
953 Trace("Dirty entry 0x%p 0x%x", reinterpret_cast<void*>(cache_entry.get()),
957 open_entries_[address.value()] = cache_entry.get();
959 cache_entry->BeginLogging(net_log_, false);
960 cache_entry.swap(entry);
1262 scoped_refptr<EntryImpl> cache_entry(
1266 if (!cache_entry->CreateEntry(node_address, key, hash)) {
1274 cache_entry->BeginLogging(net_log_, true);
1277 open_entries_[entry_address.value()] = cache_entry;
1280 cache_entry->entry()->Store();
1281 cache_entry->rankings()->Store();
1293 eviction_.OnCreateEntry(cache_entry);
1300 cache_entry->AddRef();
1301 return cache_entry.get();
1482 scoped_refptr<EntryImpl> cache_entry;
1483 cache_entry.swap(&tmp);
1485 if (cache_entry->dirty())
1487 else if (CheckEntry(cache_entry.get()))
1492 DCHECK_EQ(i, cache_entry->entry()->Data()->hash & mask_);
1493 address.set_value(cache_entry->GetNextAddress());
1510 bool BackendImplV3::CheckEntry(EntryImpl* cache_entry) {
1511 bool ok = block_files_.IsValid(cache_entry->entry()->address());
1512 ok = ok && block_files_.IsValid(cache_entry->rankings()->address());
1513 EntryStore* data = cache_entry->entry()->Data();
1522 return ok && cache_entry->rankings()->VerifyHash();