Lines Matching defs:cache
634 // Don't use a generic cache scope, as the cache scope would be the outer
800 Scope* cache) {
803 if (cache == nullptr) cache = this;
804 DCHECK(this->IsOuterScopeOf(cache));
805 DCHECK_NULL(cache->variables_.Lookup(name));
811 cache->NonLocal(name, VariableMode::kDynamic);
813 cache->variables_.Add(function_);
949 Variable* Scope::LookupInScopeInfo(const AstRawString* name, Scope* cache) {
951 DCHECK(this->IsOuterScopeOf(cache));
952 DCHECK(!cache->deserialized_scope_uses_external_cache());
953 // The case where where the cache can be another scope is when the cache scope
954 // is the last scope that doesn't use an external cache.
956 cache != this,
957 cache->outer_scope()->deserialized_scope_uses_external_cache());
958 DCHECK_NULL(cache->variables_.Lookup(name));
989 Variable* var = AsDeclarationScope()->DeclareFunctionVar(name, cache);
992 return cache->variables_.Lookup(name);
1000 Variable* var = cache->variables_.Declare(
1227 Scope* cache) {
1230 return cache->variables_.Declare(
1305 // Use the current scope as the cache, since the general cache would be
2069 // If we have already passed the cache scope in earlier recursions, we should
2070 // first quickly check if the current scope uses the cache scope before
2102 // Check the cache on each deserialized scope, up to the main cache
2104 // in-between the initial and cache scopes so we can't just check the
2105 // cache before the loop).
2228 // ScopeInfo-backed scope. We use the next declaration scope as the cache for
2242 // We may not want to use the cache scope, change it back to the given scope