Lines Matching refs:Variable
64 Variable* VariableMap::Declare( in Declare()
69 Variable::Kind kind, in Declare()
76 p->value = new Variable(scope, in Declare()
84 return reinterpret_cast<Variable*>(p->value); in Declare()
88 Variable* VariableMap::Lookup(Handle<String> name) { in Lookup()
93 return reinterpret_cast<Variable*>(p->value); in Lookup()
160 Variable* variable = variables_.Declare(this, in Scope()
164 Variable::NORMAL, in Scope()
323 Variable* var = in Initialize()
328 Variable::THIS, in Initialize()
330 var->AllocateTo(Variable::PARAMETER, -1); in Initialize()
345 Variable::ARGUMENTS, in Initialize()
380 Variable* Scope::LocalLookup(Handle<String> name) { in LocalLookup()
381 Variable* result = variables_.Lookup(name); in LocalLookup()
401 Variable* var = in LocalLookup()
406 Variable::NORMAL, in LocalLookup()
408 var->AllocateTo(Variable::CONTEXT, index); in LocalLookup()
413 Variable* Scope::LookupFunctionVar(Handle<String> name, in LookupFunctionVar()
422 Variable* var = DeclareFunctionVar(name, mode, factory); in LookupFunctionVar()
423 var->AllocateTo(Variable::CONTEXT, index); in LookupFunctionVar()
431 Variable* Scope::Lookup(Handle<String> name) { in Lookup()
435 Variable* var = scope->LocalLookup(name); in Lookup()
445 Variable* var = variables_.Declare( in DeclareParameter()
446 this, name, mode, true, Variable::NORMAL, kCreatedInitialized); in DeclareParameter()
451 Variable* Scope::DeclareLocal(Handle<String> name, in DeclareLocal()
465 this, name, mode, true, Variable::NORMAL, init_flag, interface); in DeclareLocal()
469 Variable* Scope::DeclareGlobal(Handle<String> name) { in DeclareGlobal()
475 Variable::NORMAL, in DeclareGlobal()
492 Variable* Scope::NewTemporary(Handle<String> name) { in NewTemporary()
494 Variable* var = new Variable(this, in NewTemporary()
498 Variable::NORMAL, in NewTemporary()
537 Variable* other_var = current->variables_.Lookup(name); in CheckConflictingVarDeclarations()
572 void Scope::CollectStackAndContextLocals(ZoneList<Variable*>* stack_locals, in CollectStackAndContextLocals()
573 ZoneList<Variable*>* context_locals) { in CollectStackAndContextLocals()
579 Variable* var = temps_[i]; in CollectStackAndContextLocals()
590 Variable* var = reinterpret_cast<Variable*>(p->value); in CollectStackAndContextLocals()
744 static void PrintLocation(Variable* var) { in PrintLocation()
746 case Variable::UNALLOCATED: in PrintLocation()
748 case Variable::PARAMETER: in PrintLocation()
751 case Variable::LOCAL: in PrintLocation()
754 case Variable::CONTEXT: in PrintLocation()
757 case Variable::LOOKUP: in PrintLocation()
764 static void PrintVar(int indent, Variable* var) { in PrintVar()
766 Indent(indent, Variable::Mode2String(var->mode())); in PrintVar()
782 Variable* var = reinterpret_cast<Variable*>(p->value); in PrintMap()
878 Variable* Scope::NonLocal(Handle<String> name, VariableMode mode) { in NonLocal()
881 Variable* var = map->Lookup(name); in NonLocal()
890 Variable::NORMAL, in NonLocal()
893 var->AllocateTo(Variable::LOOKUP, -1); in NonLocal()
899 Variable* Scope::LookupRecursive(Handle<String> name, in LookupRecursive()
904 Variable* var = LocalLookup(name); in LookupRecursive()
965 Variable* var = LookupRecursive(proxy->name(), &binding_kind, factory); in ResolveVariable()
977 Variable* invalidated = var; in ResolveVariable()
1082 bool Scope::MustAllocate(Variable* var) { in MustAllocate()
1100 bool Scope::MustAllocateInContext(Variable* var) { in MustAllocateInContext()
1129 void Scope::AllocateStackSlot(Variable* var) { in AllocateStackSlot()
1130 var->AllocateTo(Variable::LOCAL, num_stack_slots_++); in AllocateStackSlot()
1134 void Scope::AllocateHeapSlot(Variable* var) { in AllocateHeapSlot()
1135 var->AllocateTo(Variable::CONTEXT, num_heap_slots_++); in AllocateHeapSlot()
1141 Variable* arguments = LocalLookup(isolate_->factory()->arguments_symbol()); in AllocateParameterLocals()
1171 Variable* var = params_[i]; in AllocateParameterLocals()
1187 var->AllocateTo(Variable::PARAMETER, i); in AllocateParameterLocals()
1195 void Scope::AllocateNonParameterLocal(Variable* var) { in AllocateNonParameterLocal()
1218 Variable* var = reinterpret_cast<Variable*>(p->value); in AllocateNonParameterLocals()