Lines Matching refs:scope
41 Handle<ScopeInfo> ScopeInfo::Create(Scope* scope) {
43 ZoneList<Variable*> stack_locals(scope->StackLocalCount());
44 ZoneList<Variable*> context_locals(scope->ContextLocalCount());
45 scope->CollectStackAndContextLocals(&stack_locals, &context_locals);
49 ASSERT(scope->StackLocalCount() == stack_local_count);
50 ASSERT(scope->ContextLocalCount() == context_local_count);
55 if (scope->is_function_scope() && scope->function() != NULL) {
56 Variable* var = scope->function()->var();
72 const int parameter_count = scope->num_parameters();
80 int flags = TypeField::encode(scope->type()) |
81 CallsEvalField::encode(scope->calls_eval()) |
82 LanguageModeField::encode(scope->language_mode()) |
94 scope_info->set(index++, *scope->parameter(i)->name());
132 int var_index = scope->function()->var()->index();
133 scope_info->set(index++, *scope->function()->name());
143 ASSERT(scope->num_parameters() == scope_info->ParameterCount());
144 ASSERT(scope->num_stack_slots() == scope_info->StackSlotCount());
145 ASSERT(scope->num_heap_slots() == scope_info->ContextLength());