Lines Matching defs:shared

10 #include "src/objects/shared-function-info.h"
24 Handle<SharedFunctionInfo> shared,
34 if (shared->osr_code_cache_state() == kNotCached) {
35 DCHECK_EQ(osr_cache->FindEntry(*shared, osr_offset), -1);
36 } else if (osr_cache->FindEntry(*shared, osr_offset) != -1) {
64 osr_cache->InitializeEntry(entry, *shared, *code, osr_offset);
107 CodeT OSROptimizedCodeCache::TryGet(SharedFunctionInfo shared,
111 int index = FindEntry(shared, osr_offset);
142 SharedFunctionInfo shared) {
145 const OSRCodeCacheStateOfSFI state = shared.osr_code_cache_state();
150 if (GetSFIFromEntry(index) != shared) continue;
159 SharedFunctionInfo shared) {
162 const OSRCodeCacheStateOfSFI state = shared.osr_code_cache_state();
166 if (GetSFIFromEntry(index) != shared) continue;
216 int OSROptimizedCodeCache::FindEntry(SharedFunctionInfo shared,
221 if (GetSFIFromEntry(index) != shared) continue;
229 SharedFunctionInfo shared = GetSFIFromEntry(index);
230 DCHECK_GT(shared.osr_code_cache_state(), kNotCached);
231 if (V8_LIKELY(shared.osr_code_cache_state() == kCachedOnce)) {
232 shared.set_osr_code_cache_state(kNotCached);
233 } else if (shared.osr_code_cache_state() == kCachedMultiple) {
236 if (GetSFIFromEntry(index) == shared) {
241 shared.set_osr_code_cache_state(kCachedOnce);
252 SharedFunctionInfo shared,
256 HeapObjectReference::Weak(shared));
261 if (V8_LIKELY(shared.osr_code_cache_state() == kNotCached)) {
262 shared.set_osr_code_cache_state(kCachedOnce);
263 } else if (shared.osr_code_cache_state() == kCachedOnce) {
264 shared.set_osr_code_cache_state(kCachedMultiple);