Lines Matching refs:cache_entry
460 EntryImpl* cache_entry = MatchEntry(key, hash, false, Addr(), &error);
461 if (cache_entry) {
462 if (ENTRY_NORMAL == cache_entry->entry()->Data()->state) {
463 UpdateRank(cache_entry, cache_type() == net::SHADER_CACHE);
465 cache_entry->Release();
478 EntryImpl* cache_entry = MatchEntry(key, hash, false, Addr(), &error);
479 if (cache_entry && ENTRY_NORMAL != cache_entry->entry()->Data()->state) {
481 cache_entry->Release();
482 cache_entry = NULL;
484 } else if (!cache_entry) {
493 if (!cache_entry) {
502 eviction_.OnOpenEntry(cache_entry);
506 cache_entry->entry()->address().value());
512 web_fonts_histogram::RecordCacheHit(cache_entry);
514 return cache_entry;
574 scoped_refptr<EntryImpl> cache_entry(
578 if (!cache_entry->CreateEntry(node_address, key, hash)) {
586 cache_entry->BeginLogging(net_log_, true);
589 open_entries_[entry_address.value()] = cache_entry.get();
592 cache_entry->entry()->Store();
593 cache_entry->rankings()->Store();
605 eviction_.OnCreateEntry(cache_entry.get());
612 cache_entry->AddRef();
613 return cache_entry.get();
723 EntryImpl* cache_entry = NULL;
724 if (NewEntry(address, &cache_entry)) {
729 uint32 hash = cache_entry->GetHash();
730 cache_entry->Release();
1458 scoped_refptr<EntryImpl> cache_entry(
1464 if (!cache_entry->entry()->Load())
1471 if (!cache_entry->SanityCheck()) {
1478 Addr(cache_entry->entry()->Data()->rankings_node)));
1480 if (!cache_entry->LoadNodeAddress())
1483 if (!rankings_.SanityCheck(cache_entry->rankings(), false)) {
1485 cache_entry->SetDirtyFlag(0);
1489 rankings_.SetContents(cache_entry->rankings(), 0);
1490 } else if (!rankings_.DataSanityCheck(cache_entry->rankings(), false)) {
1492 cache_entry->SetDirtyFlag(0);
1493 rankings_.SetContents(cache_entry->rankings(), address.value());
1496 if (!cache_entry->DataSanityCheck()) {
1498 cache_entry->SetDirtyFlag(0);
1499 cache_entry->FixForDelete();
1503 cache_entry->SetDirtyFlag(GetCurrentEntryId());
1505 if (cache_entry->dirty()) {
1506 Trace("Dirty entry 0x%p 0x%x", reinterpret_cast<void*>(cache_entry.get()),
1510 open_entries_[address.value()] = cache_entry.get();
1512 cache_entry->BeginLogging(net_log_, false);
1513 cache_entry.swap(entry);
1521 scoped_refptr<EntryImpl> cache_entry, parent_entry;
1547 cache_entry.swap(&tmp);
1549 if (error || cache_entry->dirty()) {
1554 child.set_value(cache_entry->GetNextAddress());
1569 DestroyInvalidEntry(cache_entry.get());
1570 cache_entry = NULL;
1581 DCHECK_EQ(hash & mask_, cache_entry->entry()->Data()->hash & mask_);
1582 if (cache_entry->IsSameEntry(key, hash)) {
1583 if (!cache_entry->Update())
1584 cache_entry = NULL;
1593 if (!cache_entry->Update())
1594 cache_entry = NULL;
1595 parent_entry = cache_entry;
1596 cache_entry = NULL;
1606 if (find_parent && entry_addr.is_initialized() && !cache_entry.get()) {
1611 if (cache_entry.get() && (find_parent || !found))
1612 cache_entry = NULL;
1614 find_parent ? parent_entry.swap(&tmp) : cache_entry.swap(&tmp);
2040 scoped_refptr<EntryImpl> cache_entry;
2041 cache_entry.swap(&tmp);
2043 if (cache_entry->dirty())
2045 else if (CheckEntry(cache_entry.get()))
2050 DCHECK_EQ(i, cache_entry->entry()->Data()->hash & mask_);
2051 address.set_value(cache_entry->GetNextAddress());
2068 bool BackendImpl::CheckEntry(EntryImpl* cache_entry) {
2069 bool ok = block_files_.IsValid(cache_entry->entry()->address());
2070 ok = ok && block_files_.IsValid(cache_entry->rankings()->address());
2071 EntryStore* data = cache_entry->entry()->Data();
2080 return ok && cache_entry->rankings()->VerifyHash();