Lines Matching defs:cache
16 #include "src/codegen/compilation-cache.h"
241 // Flush the instruction cache before changing the permissions.
244 // cache flush instructions to trigger access error on non-writable memory.
880 // string table and stub cache on scavenges.
3214 V8_INLINE int NumberToStringCacheHash(Handle<FixedArray> cache, Smi number) {
3215 int mask = (cache->length() >> 1) - 1;
3219 V8_INLINE int NumberToStringCacheHash(Handle<FixedArray> cache, double number) {
3220 int mask = (cache->length() >> 1) - 1;
3228 // number-string cache which lives in the old space.
3250 FixedArray cache = *number_string_cache();
3251 cache.set(hash * 2, *number);
3252 cache.set(hash * 2 + 1, *js_string);
3257 FixedArray cache = *number_string_cache();
3258 Object key = cache.get(hash * 2);
3261 return Handle<String>(String::cast(cache.get(hash * 2 + 1)), isolate());
3333 // that the "cache hit" case above doesn't have to bother with it.
3357 // TODO(jkummerow): Refactor the cache to not require Objects as keys.
3372 // No way to cache this; we'd need an {Object} to use as key.
3504 Handle<WeakFixedArray> cache(WeakFixedArray::cast(context->map_cache()),
3507 // Check to see whether there is a matching element in the cache.
3508 MaybeObject result = cache->Get(number_of_properties);
3516 // Create a new map and add it to the cache.
3519 cache->Set(number_of_properties, HeapObjectReference::Weak(*map));