Lines Matching defs:zone

24 #include "src/zone/zone-list-inl.h"
25 #include "src/zone/zone.h"
43 VariableMap::VariableMap(Zone* zone)
44 : ZoneHashMap(8, ZoneAllocationPolicy(zone)) {}
46 VariableMap::VariableMap(const VariableMap& other, Zone* zone)
47 : ZoneHashMap(other, ZoneAllocationPolicy(zone)) {}
49 Variable* VariableMap::Declare(Zone* zone, Scope* scope,
55 DCHECK_EQ(zone, allocator().zone());
66 zone->New<Variable>(scope, name, mode, kind, initialization_flag,
100 Scope::Scope(Zone* zone)
101 : outer_scope_(nullptr), variables_(zone), scope_type_(SCRIPT_SCOPE) {
105 Scope::Scope(Zone* zone, Scope* outer_scope, ScopeType scope_type)
106 : outer_scope_(outer_scope), variables_(zone), scope_type_(scope_type) {
119 zone(), ast_value_factory->dot_home_object_string(), VariableMode::kConst,
132 Declare(zone(), ast_value_factory->dot_static_home_object_string(),
142 DeclarationScope::DeclarationScope(Zone* zone,
145 : Scope(zone),
149 params_(4, zone) {
157 DeclarationScope::DeclarationScope(Zone* zone, Scope* outer_scope,
160 : Scope(zone, outer_scope, scope_type),
162 params_(4, zone) {
186 ClassScope::ClassScope(Zone* zone, Scope* outer_scope, bool is_anonymous)
187 : Scope(zone, outer_scope, CLASS_SCOPE),
194 ClassScope::ClassScope(IsolateT* isolate, Zone* zone,
197 : Scope(zone, CLASS_SCOPE, ast_value_factory, scope_info),
231 template ClassScope::ClassScope(Isolate* isolate, Zone* zone,
234 template ClassScope::ClassScope(LocalIsolate* isolate, Zone* zone,
238 Scope::Scope(Zone* zone, ScopeType scope_type,
241 variables_(zone),
271 DeclarationScope::DeclarationScope(Zone* zone, ScopeType scope_type,
274 : Scope(zone, scope_type, ast_value_factory, scope_info),
276 params_(0, zone) {
289 Scope::Scope(Zone* zone, const AstRawString* catch_variable_name,
292 variables_(zone),
304 Declare(zone, catch_variable_name, VariableMode::kVar, NORMAL_VARIABLE,
417 Scope* Scope::DeserializeScopeChain(IsolateT* isolate, Zone* zone,
431 zone->New<DeclarationScope>(zone, FUNCTION_SCOPE, ast_value_factory,
436 outer_scope = zone->New<Scope>(zone, WITH_SCOPE, ast_value_factory,
451 outer_scope = zone->New<DeclarationScope>(
452 zone, FUNCTION_SCOPE, ast_value_factory, handle(scope_info, isolate));
459 outer_scope = zone->New<DeclarationScope>(
460 zone, EVAL_SCOPE, ast_value_factory, handle(scope_info, isolate));
462 outer_scope = zone->New<ClassScope>(isolate, zone, ast_value_factory,
466 outer_scope = zone->New<DeclarationScope>(
467 zone, BLOCK_SCOPE, ast_value_factory, handle(scope_info, isolate));
469 outer_scope = zone->New<Scope>(zone, BLOCK_SCOPE, ast_value_factory,
473 outer_scope = zone->New<ModuleScope>(handle(scope_info, isolate),
485 zone->New<Scope>(zone,
540 Isolate* isolate, Zone* zone, ScopeInfo scope_info,
545 LocalIsolate* isolate, Zone* zone, ScopeInfo scope_info,
694 AstNodeFactory factory(info->ast_value_factory(), info->zone());
714 scope, info->ast_value_factory(), info->zone());
737 receiver_ = zone()->New<Variable>(
765 Declare(zone(), ast_value_factory->arguments_string(), VariableMode::kVar,
785 new_target_ = Declare(zone(), ast_value_factory->new_target_string(),
793 zone(), ast_value_factory->this_function_string(), VariableMode::kConst,
808 function_ = zone()->New<Variable>(this, name, VariableMode::kConst, kind,
1001 zone(), this, name, lookup_result.mode, NORMAL_VARIABLE,
1030 params_.Add(var, zone());
1068 Declare(zone(), name, mode, kind, init_flag, kNotAssigned, was_added);
1213 Variable* result = Declare(zone(), name, VariableMode::kVar, NORMAL_VARIABLE,
1231 zone(), this, name, VariableMode::kDynamicGlobal, kind,
1252 Variable* var = zone()->New<Variable>(scope, name, VariableMode::kTemporary,
1685 DCHECK_NE(zone(), ast_value_factory->single_parse_zone());
1686 // Make sure this scope and zone aren't used for allocation anymore.
1688 // Get the zone, while variables_ is still valid
1689 Zone* zone = this->zone();
1691 zone->Reset();
1695 // Prepare scope for use in the outer zone.
2043 DCHECK_NULL(scope->zone());
2056 Variable* var = variables_.Declare(zone(), this, name, mode, NORMAL_VARIABLE,
2628 scope_info_ = ScopeInfo::Create(isolate, zone(), this, outer_scope);
2716 ScopeInfo::Create(isolate, scope->zone(), scope, outer_scope);
2765 home_object = variables_.Declare(zone(), this, name, lookup_result.mode,
2837 zone(), this, name, mode, NORMAL_VARIABLE,
3056 Variable* brand = Declare(zone(), ast_value_factory->dot_brand_string(),
3075 Declare(zone(), name == nullptr ? ast_value_factory->dot_string() : name,